Class: Chillout::CustomAdvancedMetric
- Inherits:
-
Object
- Object
- Chillout::CustomAdvancedMetric
- Defined in:
- lib/chillout/custom_advanced_metric.rb
Instance Method Summary collapse
- #as_measurements ⇒ Object
-
#initialize(series:, tags:, timestamp:, values:) ⇒ CustomAdvancedMetric
constructor
A new instance of CustomAdvancedMetric.
Constructor Details
#initialize(series:, tags:, timestamp:, values:) ⇒ CustomAdvancedMetric
Returns a new instance of CustomAdvancedMetric.
4 5 6 7 8 9 |
# File 'lib/chillout/custom_advanced_metric.rb', line 4 def initialize(series:, tags:, timestamp:, values:) @series = series.to_str = .to_h = .utc @values = values.to_h end |
Instance Method Details
#as_measurements ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/chillout/custom_advanced_metric.rb', line 11 def as_measurements() [{ series: @series, tags: , timestamp: , values: @values, }] end |