Method: UState::Graphite#initialize
- Defined in:
- lib/ustate/graphite.rb
#initialize(index, opts = {}) ⇒ Graphite
Returns a new instance of Graphite.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ustate/graphite.rb', line 13 def initialize(index, opts = {}) @index = index @query = opts[:query] @host = opts[:host] || HOST @port = opts[:port] || PORT @server = opts[:server] @interval = opts[:interval] || INTERVAL @locket = Mutex.new start end |