Class: Evil::Metrics::Gauge

Inherits:
Metric
  • Object
show all
Defined in:
lib/evil/metrics/gauge.rb

Overview

Arbitrary value

Instance Attribute Summary

Attributes inherited from Metric

#comment, #group, #name, #per, #unit

Instance Method Summary collapse

Methods inherited from Metric

#get, #initialize, #values

Constructor Details

This class inherits a constructor from Evil::Metrics::Metric

Instance Method Details

#set(tags, value) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/evil/metrics/gauge.rb', line 7

def set(tags, value)
  values[tags] = value
  ::Evil::Metrics.adapters.each do |_, adapter|
    adapter.perform_gauge_set!(self, tags, value)
  end
  value
end