org.jclouds.cloudwatch.domain
Class GetMetricStatistics

java.lang.Object
  extended by org.jclouds.cloudwatch.domain.GetMetricStatistics

@Beta
public class GetMetricStatistics
extends Object

Options use to get statistics for the specified metric.

See Also:

Nested Class Summary
static class GetMetricStatistics.Builder
           
 
Constructor Summary
protected GetMetricStatistics(Set<Dimension> dimensions, Date endTime, String metricName, String namespace, int period, Date startTime, Set<Statistics> statistics, Unit unit)
          Private constructor to enforce using GetMetricStatistics.Builder.
 
Method Summary
static GetMetricStatistics.Builder builder()
          Returns a new builder.
 Set<Dimension> getDimensions()
          return the set of dimensions for this request
 com.google.common.base.Optional<Date> getEndTime()
          return the end time for this request
 String getMetricName()
          return the metric name for this request
 String getNamespace()
          return the namespace for this request
 int getPeriod()
          return the period for this request
 com.google.common.base.Optional<Date> getStartTime()
          return the start time for this request
 Set<Statistics> getStatistics()
          return the statistics for this request
 com.google.common.base.Optional<Unit> getUnit()
          return the unit for this request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetMetricStatistics

protected GetMetricStatistics(Set<Dimension> dimensions,
                              Date endTime,
                              String metricName,
                              String namespace,
                              int period,
                              Date startTime,
                              Set<Statistics> statistics,
                              Unit unit)
Private constructor to enforce using GetMetricStatistics.Builder.

Method Detail

getDimensions

public Set<Dimension> getDimensions()
return the set of dimensions for this request


getEndTime

public com.google.common.base.Optional<Date> getEndTime()
return the end time for this request


getMetricName

public String getMetricName()
return the metric name for this request


getNamespace

public String getNamespace()
return the namespace for this request


getPeriod

public int getPeriod()
return the period for this request


getStartTime

public com.google.common.base.Optional<Date> getStartTime()
return the start time for this request


getStatistics

public Set<Statistics> getStatistics()
return the statistics for this request


getUnit

public com.google.common.base.Optional<Unit> getUnit()
return the unit for this request


builder

public static GetMetricStatistics.Builder builder()
Returns a new builder. The generated builder is equivalent to the builder created by the GetMetricStatistics.Builder constructor.



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