Package org.jclouds.cloudwatch.features
Interface MetricApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetMetricStatisticsResponsegetMetricStatistics(GetMetricStatistics statistics)GetMetricStatisticsResponsegetMetricStatistics(GetMetricStatistics statistics, GetMetricStatisticsOptions options)Gets statistics for the specified metric.PagedIterable<Metric>list()IterableWithMarker<Metric>list(ListMetricsOptions options)Returns a list of valid metrics stored for the AWS account owner.voidputMetricsInNamespace(Iterable<MetricDatum> metrics, String namespace)Publishes metric data points to Amazon CloudWatch.
-
-
-
Method Detail
-
list
@Named("ListMetrics") @POST @Path("/") IterableWithMarker<Metric> list(ListMetricsOptions options)Returns a list of valid metrics stored for the AWS account owner.Note
Up to 500 results are returned for any one call. To retrieve further results, use returned NextToken (ListMetricsResponse.getNextToken()) value with subsequent calls .To retrieve all available metrics with one call, useCloudWatch.listMetrics(MetricApi, org.jclouds.cloudwatch.options.ListMetricsOptions)- Parameters:
options- the options describing the metrics query- Returns:
- the response object
-
list
@Named("ListMetrics") @POST @Path("/") PagedIterable<Metric> list()
-
getMetricStatistics
@Named("GetMetricStatistics") @POST @Path("/") GetMetricStatisticsResponse getMetricStatistics(GetMetricStatistics statistics, GetMetricStatisticsOptions options)Gets statistics for the specified metric.- Parameters:
statistics- the statistics to gatheroptions- the options describing the metric statistics query- Returns:
- the response object
-
getMetricStatistics
@Named("GetMetricStatistics") @POST @Path("/") GetMetricStatisticsResponse getMetricStatistics(GetMetricStatistics statistics)
-
putMetricsInNamespace
@Named("PutMetricData") @POST @Path("/") void putMetricsInNamespace(Iterable<MetricDatum> metrics, @FormParam("Namespace") String namespace)Publishes metric data points to Amazon CloudWatch.- Parameters:
metrics- the metrics to publishnamespace- the namespace to publish the metrics to
-
-