Class: LogStash::Instrument::MetricType::Gauge

Inherits:
LazyDelegatingGauge
  • Object
show all
Defined in:
lib/logstash/instrument/metric_type/gauge.rb

Instance Method Summary collapse

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