Class: Hawkular::Metrics::Client::Availability
- Defined in:
- lib/hawkular/metrics/metric_api.rb
Overview
Class that interacts with “availability” metric types
Instance Method Summary collapse
-
#get_data(id, starts: nil, ends: nil, bucketDuration: nil, buckets: nil, distinct: nil, limit: nil, order: nil) ⇒ Array[Hash]
Retrieve metric datapoints.
-
#initialize(client) ⇒ Availability
constructor
A new instance of Availability.
Methods inherited from Metrics
#create, #encode_params, #get, #get_data_by_tags, #push_data, #query, #raw_data, #update_tags
Constructor Details
#initialize(client) ⇒ Availability
Returns a new instance of Availability
317 318 319 |
# File 'lib/hawkular/metrics/metric_api.rb', line 317 def initialize(client) super(client, 'availability', 'availability') end |
Instance Method Details
#get_data(id, starts: nil, ends: nil, bucketDuration: nil, buckets: nil, distinct: nil, limit: nil, order: nil) ⇒ Array[Hash]
Retrieve metric datapoints
332 333 334 335 336 337 |
# File 'lib/hawkular/metrics/metric_api.rb', line 332 def get_data(id, starts: nil, ends: nil, bucketDuration: nil, buckets: nil, distinct: nil, limit: nil, order: nil) params = { start: starts, end: ends, bucketDuration: bucketDuration, buckets: buckets, distinct: distinct, limit: limit, order: order } get_data_helper(id, params) end |