org.jclouds.cloudwatch
Class CloudWatch

java.lang.Object
  extended by org.jclouds.cloudwatch.CloudWatch

public class CloudWatch
extends Object

Utilities for using CloudWatch.


Constructor Summary
CloudWatch()
           
 
Method Summary
static Iterable<Metric> listMetrics(CloudWatchApi cloudWatchApi, String region, ListMetricsOptions options)
          List metrics based on the criteria in the ListMetricsOptions passed in.
static Iterable<Metric> listMetrics(MetricApi metricApi, ListMetricsOptions options)
          List metrics based on the criteria in the ListMetricsOptions passed in.
static void putMetricData(CloudWatchApi cloudWatchApi, String region, Iterable<MetricDatum> metrics, String namespace)
          Pushes metrics to CloudWatch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloudWatch

public CloudWatch()
Method Detail

listMetrics

public static Iterable<Metric> listMetrics(MetricApi metricApi,
                                           ListMetricsOptions options)
List metrics based on the criteria in the ListMetricsOptions passed in.

Parameters:
metricApi - the MetricApi to use for the request
options - the ListMetricsOptions 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 the ListMetricsOptions passed in.

Parameters:
cloudWatchApi - the CloudWatchApi to use for the request
region - the region to list metrics in
options - 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 - the CloudWatchApi to use for the request
region - the region to put the metrics in
metrics - the metrics to publish
namespace - the namespace to publish the metrics in


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.