class Dogapi::Client

Defined in:

dogapi/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]

Instance Method Detail

def batch_metrics(&) #

[View source]
def comment(message, options = {} of String => String) #

[View source]
def datadog_host : String? #

[View source]
def datadog_host=(datadog_host : Nil | String) #

[View source]
def emit_event(event, options = {} of String => String) #

[View source]
def 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


[View source]
def emit_points(metric, points, options = {} of String => String) #

Record a set of points of metric data

+points+ is an array of [Time, value] 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


[View source]
def get_points(query, from, to) #

[View source]