Method: StatsD::Instrument::AggregationKey#initialize

Defined in:
lib/statsd/instrument/aggregator.rb

#initialize(name, tags, no_prefix, type, sample_rate: 1.0) ⇒ AggregationKey

Returns a new instance of AggregationKey.



8
9
10
11
12
13
14
15
# File 'lib/statsd/instrument/aggregator.rb', line 8

def initialize(name, tags, no_prefix, type, sample_rate: 1.0)
  @name = name
  @tags = tags
  @no_prefix = no_prefix
  @type = type
  @sample_rate = sample_rate
  @hash = [@name, @tags, @no_prefix, @type].hash
end