Interface MetricApi


  • public interface MetricApi
    Provides access to Amazon CloudWatch via the Query API

    See Also:
    • Method Detail

      • list

        @Named("ListMetrics")
        @POST
        @Path("/")
        org.jclouds.collect.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 gather
        options - the options describing the metric statistics query
        Returns:
        the response object
      • 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 publish
        namespace - the namespace to publish the metrics to