NAME
Net::Graphite::Reader::Response::Metric - The data for a single metric
SYNOPSIS
my($metric) = $repsonse->all_metrics;
print 'Average is ' . $metric->average . "\n";
print 'Sum is ' . $metric->sum . "\n";
print 'Everything is " . Dumper($metric->datapoints) . "\n";
ATTRIBUTES
target
The target of the metric
datapoints
The raw data for this metric returned from Graphite. Returns an array ref of [value, timestamp] data points where timestamp is an integer in epoch time.
METHODS
non_null_datapoints
Return the data points for which Graphite has a value.
average
Returns the average of the non-null data points in the response for this metric.
sum
Returns the sum of the non-null data points in the response for this metric.