Class: Hawkular::Metrics::Client::Strings
- Defined in:
- lib/hawkular/metrics/metric_api.rb
Overview
Class that interacts with “string” metric types
Instance Method Summary collapse
-
#get_data(id, starts: nil, ends: nil, distinct: nil, limit: nil, order: nil) ⇒ Array[Hash]
Retrieve metric datapoints.
-
#initialize(client) ⇒ Strings
constructor
A new instance of Strings.
Methods inherited from Metrics
#create, #encode_params, #get, #get_data_by_tags, #push_data, #query, #raw_data, #update_tags
Constructor Details
#initialize(client) ⇒ Strings
Returns a new instance of Strings
295 296 297 |
# File 'lib/hawkular/metrics/metric_api.rb', line 295 def initialize(client) super(client, 'string', 'strings') end |
Instance Method Details
#get_data(id, starts: nil, ends: nil, distinct: nil, limit: nil, order: nil) ⇒ Array[Hash]
Retrieve metric datapoints
308 309 310 311 |
# File 'lib/hawkular/metrics/metric_api.rb', line 308 def get_data(id, starts: nil, ends: nil, distinct: nil, limit: nil, order: nil) params = { start: starts, end: ends, distinct: distinct, limit: limit, order: order } get_data_helper(id, params) end |