Class: Evil::Metrics::Prometheus::CounterWrapper

Inherits:
MetricWrapper
  • Object
show all
Defined in:
lib/evil/metrics/prometheus/counter_wrapper.rb

Instance Attribute Summary

Attributes inherited from MetricWrapper

#metric

Instance Method Summary collapse

Methods inherited from MetricWrapper

#docstring, #get, #initialize, #name, #values

Constructor Details

This class inherits a constructor from Evil::Metrics::Prometheus::MetricWrapper

Instance Method Details

#increment(labels = {}, by = 1) ⇒ Object



12
13
14
# File 'lib/evil/metrics/prometheus/counter_wrapper.rb', line 12

def increment(labels = {}, by = 1)
  metric.increment(labels, by: by)
end

#typeObject



8
9
10
# File 'lib/evil/metrics/prometheus/counter_wrapper.rb', line 8

def type
  :counter
end