Package org.jclouds.cloudwatch
Class CloudWatch
java.lang.Object
org.jclouds.cloudwatch.CloudWatch
Utilities for using CloudWatch.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlistMetrics
(CloudWatchApi cloudWatchApi, String region, ListMetricsOptions options) List metrics based on the criteria in theListMetricsOptions
passed in.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.
-
Constructor Details
-
CloudWatch
public CloudWatch()
-
-
Method Details
-
listMetrics
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
-