Class: StatsD::Instrument::CompiledMetric::Counter

Inherits:
StatsD::Instrument::CompiledMetric show all
Defined in:
lib/statsd/instrument/compiled_metric.rb

Overview

Counter metric type

Constant Summary

Constants inherited from StatsD::Instrument::CompiledMetric

DEFAULT_MAX_TAG_COMBINATION_CACHE_SIZE

Class Method Summary collapse

Methods inherited from StatsD::Instrument::CompiledMetric

allow_measuring_latency, define, define_metric_method, sample?, sample_rate

Class Method Details

.default_valueObject



408
409
410
# File 'lib/statsd/instrument/compiled_metric.rb', line 408

def default_value
  1
end

.increment(__value__ = 1, **tags) ⇒ Object



412
413
414
# File 'lib/statsd/instrument/compiled_metric.rb', line 412

def increment(__value__ = 1, **tags)
  require_define_to_be_called
end

.method_nameObject



404
405
406
# File 'lib/statsd/instrument/compiled_metric.rb', line 404

def method_name
  :increment
end

.typeObject



400
401
402
# File 'lib/statsd/instrument/compiled_metric.rb', line 400

def type
  "c"
end