Class: LogStash::Instrument::MetricType::Gauge
- Inherits:
-
LazyDelegatingGauge
- Object
- LazyDelegatingGauge
- LogStash::Instrument::MetricType::Gauge
- Defined in:
- lib/logstash/instrument/metric_type/gauge.rb
Instance Method Summary collapse
- #execute(action, value = nil) ⇒ Object
-
#initialize(namespaces, key) ⇒ Gauge
constructor
A new instance of Gauge.
Constructor Details
#initialize(namespaces, key) ⇒ Gauge
Returns a new instance of Gauge.
6 7 8 |
# File 'lib/logstash/instrument/metric_type/gauge.rb', line 6 def initialize(namespaces, key) super(key.to_s) end |
Instance Method Details
#execute(action, value = nil) ⇒ Object
10 11 12 |
# File 'lib/logstash/instrument/metric_type/gauge.rb', line 10 def execute(action, value = nil) send(action, value) end |