Class: ElasticAPM::Metrics::Gauge Private

Inherits:
Metric
  • Object
show all
Defined in:
lib/elastic_apm/metrics/metric.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary

Attributes inherited from Metric

#initial_value, #key, #tags, #value

Instance Method Summary collapse

Methods inherited from Metric

#collect, #reset!, #reset_on_collect?, #tags?

Constructor Details

#initialize(key, **args) ⇒ Gauge

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Gauge.



113
114
115
# File 'lib/elastic_apm/metrics/metric.rb', line 113

def initialize(key, **args)
  super(key, initial_value: 0, **args)
end