Class: ActiveStatsD::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_statsd/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



6
7
8
9
10
11
12
13
# File 'lib/active_statsd/configuration.rb', line 6

def initialize
  @host = '127.0.0.1'
  @port = 8125
  @namespace = 'rails_app'
  @aggregation = true  # Aggregation enabled by default
  @forward_host = nil  # Set if forwarding
  @forward_port = nil
end

Instance Attribute Details

#aggregationObject

Returns the value of attribute aggregation.



4
5
6
# File 'lib/active_statsd/configuration.rb', line 4

def aggregation
  @aggregation
end

#forward_hostObject

Returns the value of attribute forward_host.



4
5
6
# File 'lib/active_statsd/configuration.rb', line 4

def forward_host
  @forward_host
end

#forward_portObject

Returns the value of attribute forward_port.



4
5
6
# File 'lib/active_statsd/configuration.rb', line 4

def forward_port
  @forward_port
end

#hostObject

Returns the value of attribute host.



4
5
6
# File 'lib/active_statsd/configuration.rb', line 4

def host
  @host
end

#namespaceObject

Returns the value of attribute namespace.



4
5
6
# File 'lib/active_statsd/configuration.rb', line 4

def namespace
  @namespace
end

#portObject

Returns the value of attribute port.



4
5
6
# File 'lib/active_statsd/configuration.rb', line 4

def port
  @port
end