Class: LeelaClient::Gauge
- Inherits:
-
Object
- Object
- LeelaClient::Gauge
- Includes:
- Metric
- Defined in:
- lib/leela_client/metrics.rb
Instance Attribute Summary
Attributes included from Metric
#key, #timestamp, #type, #value
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Gauge
constructor
A new instance of Gauge.
Methods included from Metric
#serialize, #serialize_json, #size
Constructor Details
#initialize(key, value) ⇒ Gauge
Returns a new instance of Gauge.
55 56 57 58 59 60 |
# File 'lib/leela_client/metrics.rb', line 55 def initialize(key, value) @type = "gauge" @key = key @value = value @timestamp = Time.now end |