WebService::DataDog::Graph - Interface to Graph functions in DataDog's API.
Version 1.0.3
This module allows you interact with the graph endpoint of the DataDog API.
Per DataDog: "You can take graph snapshots using the API"
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.
To install WebService::DataDog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::DataDog
CPAN shell
perl -MCPAN -e shell install WebService::DataDog
For more information on module installation, please visit the detailed CPAN module installation guide.