Package org.jclouds.cloudwatch.domain
Class GetMetricStatistics
- java.lang.Object
-
- org.jclouds.cloudwatch.domain.GetMetricStatistics
-
@Beta public class GetMetricStatistics extends Object
Options use to get statistics for the specified metric.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GetMetricStatistics.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
GetMetricStatistics(Set<Dimension> dimensions, Date endTime, String metricName, String namespace, int period, Date startTime, Set<Statistics> statistics, Unit unit)
Private constructor to enforce usingGetMetricStatistics.Builder
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetMetricStatistics.Builder
builder()
Returns a new builder.Set<Dimension>
getDimensions()
return the set of dimensions for this requestcom.google.common.base.Optional<Date>
getEndTime()
return the end time for this requestString
getMetricName()
return the metric name for this requestString
getNamespace()
return the namespace for this requestint
getPeriod()
return the period for this requestcom.google.common.base.Optional<Date>
getStartTime()
return the start time for this requestSet<Statistics>
getStatistics()
return the statistics for this requestcom.google.common.base.Optional<Unit>
getUnit()
return the unit for this request
-
-
-
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 usingGetMetricStatistics.Builder
.
-
-
Method Detail
-
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 theGetMetricStatistics.Builder
constructor.
-
-