public class CloudWatch extends Object
Constructor and Description |
---|
CloudWatch() |
Modifier and Type | Method and Description |
---|---|
static Iterable<Metric> |
listMetrics(CloudWatchClient cloudWatchClient,
String region,
ListMetricsOptions options)
List metrics based on the criteria in the
ListMetricsOptions passed in. |
static Iterable<Metric> |
listMetrics(MetricClient metricClient,
ListMetricsOptions options)
List metrics based on the criteria in the
ListMetricsOptions passed in. |
static void |
putMetricData(CloudWatchClient cloudWatchClient,
String region,
Iterable<MetricDatum> metrics,
String namespace)
Pushes metrics to CloudWatch.
|
public static Iterable<Metric> listMetrics(MetricClient metricClient, ListMetricsOptions options)
ListMetricsOptions
passed in.metricClient
- the MetricClient
to use for the requestoptions
- the ListMetricsOptions
describing the ListMetrics requestpublic static Iterable<Metric> listMetrics(CloudWatchClient cloudWatchClient, String region, ListMetricsOptions options)
ListMetricsOptions
passed in.cloudWatchClient
- the CloudWatchClient
to use for the requestregion
- the region to list metrics inoptions
- the options describing the ListMetrics requestpublic static void putMetricData(CloudWatchClient cloudWatchClient, String region, Iterable<MetricDatum> metrics, String namespace)
cloudWatchClient
- the CloudWatchClient
to use for the requestregion
- the region to put the metrics inmetrics
- the metrics to publishnamespace
- the namespace to publish the metrics inCopyright © 2009-2012 jclouds. All Rights Reserved.