Class: LeelaClient::Derive

Inherits:
Object
  • Object
show all
Includes:
Metric
Defined in:
lib/leela_client/metrics.rb

Instance Attribute Summary

Attributes included from Metric

#key, #timestamp, #type, #value

Instance Method Summary collapse

Methods included from Metric

#serialize, #serialize_json, #size

Constructor Details

#initialize(key, value) ⇒ Derive

Returns a new instance of Derive.



77
78
79
80
81
82
# File 'lib/leela_client/metrics.rb', line 77

def initialize(key, value)
  @type      = "derive"
  @key       = key
  @value     = value
  @timestamp = Time.now
end