Package org.jclouds.cloudwatch.domain
Class MetricDatum
- java.lang.Object
-
- org.jclouds.cloudwatch.domain.MetricDatum
-
public class MetricDatum extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricDatum.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protectedMetricDatum(Iterable<Dimension> dimensions, String metricName, com.google.common.base.Optional<StatisticValues> statisticValues, com.google.common.base.Optional<Date> timestamp, Unit unit, com.google.common.base.Optional<Double> value)Private constructor to enforce usingMetricDatum.Builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricDatum.Builderbuilder()Returns a new builder.booleanequals(Object o)Set<Dimension>getDimensions()return the list of dimensions describing the the metric.StringgetMetricName()return the metric name for the metric.com.google.common.base.Optional<StatisticValues>getStatisticValues()return the object describing the set of statistical values for the metriccom.google.common.base.Optional<Date>getTimestamp()return the time stamp used for the metricUnitgetUnit()return Standard unit used for the metric.com.google.common.base.Optional<Double>getValue()return the actual value of the metricinthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()StringtoString()
-
-
-
Constructor Detail
-
MetricDatum
protected MetricDatum(Iterable<Dimension> dimensions, String metricName, com.google.common.base.Optional<StatisticValues> statisticValues, com.google.common.base.Optional<Date> timestamp, Unit unit, com.google.common.base.Optional<Double> value)
Private constructor to enforce usingMetricDatum.Builder.
-
-
Method Detail
-
getDimensions
public Set<Dimension> getDimensions()
return the list of dimensions describing the the metric.
-
getMetricName
public String getMetricName()
return the metric name for the metric.
-
getStatisticValues
public com.google.common.base.Optional<StatisticValues> getStatisticValues()
return the object describing the set of statistical values for the metric
-
getTimestamp
public com.google.common.base.Optional<Date> getTimestamp()
return the time stamp used for the metric
-
getUnit
public Unit getUnit()
return Standard unit used for the metric.
-
getValue
public com.google.common.base.Optional<Double> getValue()
return the actual value of the metric
-
builder
public static MetricDatum.Builder builder()
Returns a new builder. The generated builder is equivalent to the builder created by theMetricDatum.Builderconstructor.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-