NAME
WebService::DataDog::Graph - Interface to Graph functions in DataDog's API.
VERSION
Version 1.0.3
SYNOPSIS
This module allows you interact with the graph endpoint of the DataDog API.
Per DataDog: "You can take graph snapshots using the API"
METHODS
snapshot()
Take a graph snapshot.
my $graph = $datadog->build('Graph');
my $snapshot_url = $graph->snapshot(
metric_query => $metric_query,
start => $start_timestamp,
end => $end_timestamp,
event_query => $event_query, # optional -- default=None
);
Example:
my $snapshot_url = $graph->snapshot(
metric_query => "system.load.1{*}",
start => 1388632282
end => 1388718682
);
Parameters:
metric_query
Metric query to capture in the graph.
start
The POSIX timestamp of the start of the query.
end
The POSIX timestamp of the end of the query.
event_query
A query that will add event bands to the graph.