Class: StatsD::Instrument::CompiledMetric::Gauge

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

Overview

Gauge 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



429
430
431
# File 'lib/statsd/instrument/compiled_metric.rb', line 429

def default_value
  nil
end

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



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

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

.method_nameObject



425
426
427
# File 'lib/statsd/instrument/compiled_metric.rb', line 425

def method_name
  :gauge
end

.typeObject



421
422
423
# File 'lib/statsd/instrument/compiled_metric.rb', line 421

def type
  "g"
end