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 class
MetricDatum.Builder
-
Constructor Summary
Constructors Modifier Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricDatum.Builder
builder()
Returns a new builder.boolean
equals(Object o)
Set<Dimension>
getDimensions()
return the list of dimensions describing the the metric.String
getMetricName()
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 metricUnit
getUnit()
return Standard unit used for the metric.com.google.common.base.Optional<Double>
getValue()
return the actual value of the metricint
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
String
toString()
-
-
-
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.Builder
constructor.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-