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 theListMetricsOptions
passed in.static Iterable<Metric>
listMetrics(MetricApi metricApi, ListMetricsOptions options)
List metrics based on the criteria in theListMetricsOptions
passed in.static void
putMetricData(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 theListMetricsOptions
passed in.- Parameters:
metricApi
- theMetricApi
to use for the requestoptions
- theListMetricsOptions
describing 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 theListMetricsOptions
passed in.- Parameters:
cloudWatchApi
- theCloudWatchApi
to 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
- theCloudWatchApi
to use for the requestregion
- the region to put the metrics inmetrics
- the metrics to publishnamespace
- the namespace to publish the metrics in
-
-