Modifier and Type | Method and Description |
---|---|
Set<Datapoint> |
getMetricStatisticsInRegion(String region,
String metricName,
String namespace,
Date startTime,
Date endTime,
int period,
Statistics statistics,
GetMetricStatisticsOptions... options)
This call returns data for one or more statistics of given a metric.
|
Set<Datapoint> getMetricStatisticsInRegion(@Nullable String region, String metricName, String namespace, Date startTime, Date endTime, int period, Statistics statistics, GetMetricStatisticsOptions... options)
region
- region to gather metrics inmetricName
- The measure name that corresponds to the measure for the gathered metric.
note
Must be a valid collected metric with the corresponding measure name, please see
Available Amazon CloudWatch Metricsnamespace
- The namespace of the metric (e.g. AWS/EC2)startTime
- The timestamp of the first datapoint to return, inclusive. We round your value down
to the nearest minute. You can set your start time for more than two weeks in the
past. However, you will only get data for the past two weeks.endTime
- The timestamp to use for determining the last datapoint to return. This is the last
datapoint to fetch, exclusive.period
- The granularity (in seconds) of the returned datapoints.statistics
- The statistics to be returned for the given metric. ex. Averageoptions
- more filtering options (e.g. instance ID)Copyright © 2009-2012 jclouds. All Rights Reserved.