Package org.jclouds.cloudwatch
Class CloudWatch
- java.lang.Object
-
- org.jclouds.cloudwatch.CloudWatch
-
public class CloudWatch extends Object
Utilities for using CloudWatch.
-
-
Constructor Summary
Constructors Constructor Description CloudWatch()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Iterable<Metric>listMetrics(CloudWatchApi cloudWatchApi, String region, ListMetricsOptions options)List metrics based on the criteria in theListMetricsOptionspassed in.static Iterable<Metric>listMetrics(MetricApi metricApi, ListMetricsOptions options)List metrics based on the criteria in theListMetricsOptionspassed in.static voidputMetricData(CloudWatchApi cloudWatchApi, String region, Iterable<MetricDatum> metrics, String namespace)Pushes metrics to CloudWatch.
-
-
-
Method Detail
-
listMetrics
public static Iterable<Metric> listMetrics(MetricApi metricApi, ListMetricsOptions options)
List metrics based on the criteria in theListMetricsOptionspassed in.- Parameters:
metricApi- theMetricApito use for the requestoptions- theListMetricsOptionsdescribing the ListMetrics request- Returns:
- iterable of metrics fitting the criteria
-
listMetrics
public static Iterable<Metric> listMetrics(CloudWatchApi cloudWatchApi, String region, ListMetricsOptions options)
List metrics based on the criteria in theListMetricsOptionspassed in.- Parameters:
cloudWatchApi- theCloudWatchApito use for the requestregion- the region to list metrics inoptions- the options describing the ListMetrics request- Returns:
- iterable of metrics fitting the criteria
-
putMetricData
public static void putMetricData(CloudWatchApi cloudWatchApi, String region, Iterable<MetricDatum> metrics, String namespace)
Pushes metrics to CloudWatch.- Parameters:
cloudWatchApi- theCloudWatchApito use for the requestregion- the region to put the metrics inmetrics- the metrics to publishnamespace- the namespace to publish the metrics in
-
-