Class: LeelaClient::Counter
- Inherits:
-
Object
- Object
- LeelaClient::Counter
- 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) ⇒ Counter
constructor
A new instance of Counter.
Methods included from Metric
#serialize, #serialize_json, #size
Constructor Details
#initialize(key, value) ⇒ Counter
Returns a new instance of Counter.
66 67 68 69 70 71 |
# File 'lib/leela_client/metrics.rb', line 66 def initialize(key, value) @type = "counter" @key = key @value = value @timestamp = Time.now end |