class Hawkular::Metrics::Client::Strings

Class that interacts with “string” metric types

Public Class Methods

new(client) click to toggle source

@param client [Client]

Calls superclass method Hawkular::Metrics::Client::Metrics::new
    # File lib/hawkular/metrics/metric_api.rb
302 def initialize(client)
303   super(client, 'string', 'strings')
304 end

Public Instance Methods

get_data(id, starts: nil, ends: nil, distinct: nil, limit: nil, order: nil) click to toggle source

Retrieve metric datapoints @param id [String] metric definition id @param starts [Integer] optional timestamp (default now - 8h) @param ends [Integer] optional timestamp (default now) @param distinct [String] optional set to true to return only distinct, contiguous values @param limit [Integer] optional limit the number of data points returned @param order [String] optional Data point sort order, based on timestamp (ASC, DESC) @return [Array] datapoints @see push_data push_data for datapoint detail

    # File lib/hawkular/metrics/metric_api.rb
315 def get_data(id, starts: nil, ends: nil, distinct: nil, limit: nil, order: nil)
316   params = { start: starts, end: ends, distinct: distinct, limit: limit, order: order }
317   get_data_helper(id, params)
318 end