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, metric_name, sample?, sample_rate

Class Method Details

.default_valueObject



440
441
442
# File 'lib/statsd/instrument/compiled_metric.rb', line 440

def default_value
  1
end

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



444
445
446
# File 'lib/statsd/instrument/compiled_metric.rb', line 444

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

.method_nameObject



436
437
438
# File 'lib/statsd/instrument/compiled_metric.rb', line 436

def method_name
  :increment
end

.typeObject



432
433
434
# File 'lib/statsd/instrument/compiled_metric.rb', line 432

def type
  "c"
end