Class: Atatus::Metrics::Gauge Private
- Defined in:
- lib/atatus/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
-
#initialize(key, **args) ⇒ Gauge
constructor
private
A new instance of Gauge.
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/atatus/metrics/metric.rb', line 113 def initialize(key, **args) super(key, initial_value: 0, **args) end |