class

Dogapi::Client

Inherits Reference < Object

Constructors

new(api_key : String, application_key : Nil | String = nil, host : String | Time | Nil = nil, device : Nil | String = nil, silent : Bool = true, timeout : Nil | String = nil, endpoint : Nil | String = nil)
Source

Instance methods

batch_metrics
Source
comment(message, options = {} of String => String)
Source
datadog_host
Source
datadog_host=(datadog_host : Nil | String)
Source
emit_event(event, options = {} of String => String)
Source
emit_point(metric, value, options = {} of String => String)

Record a single point of metric data

Optional arguments: :timestamp => Ruby stdlib Time` :host => String :device => String :options => Map

options[:type] = "counter" to specify a counter metric options[:tags] = ["tag1", "tag2"] to tag the point

Source
emit_points(metric, points, options = {} of String => String)

Record a set of points of metric data

+points+ is an array of <tt>[Time, value]</tt> doubles

Optional arguments: :host => String :device => String :options => Map

options[:type] = "counter" to specify a counter metric options[:tags] = ["tag1", "tag2"] to tag the point

Source
get_points(query, from, to)
Source