Class: Praxis::Stats::Statsd

Inherits:
Statsd
  • Object
show all
Defined in:
lib/praxis/stats.rb

Instance Method Summary collapse

Constructor Details

#initialize(host: '127.0.0.1', port: 8125, prefix: nil, postfix: nil) ⇒ Statsd

Returns a new instance of Statsd.



11
12
13
14
15
16
17
# File 'lib/praxis/stats.rb', line 11

def initialize(host: '127.0.0.1', port: 8125, prefix: nil, postfix: nil)
  self.host = host
  self.port = port
  self.namespace = prefix if prefix
  self.postfix = postfix
  @batch_size = 10
end