org.jclouds.cloudwatch.domain
Class MetricDatum

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

public class MetricDatum
extends Object

See Also:

Nested Class Summary
static class MetricDatum.Builder
           
 
Constructor Summary
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 using MetricDatum.Builder.
 
Method Summary
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 metric
 com.google.common.base.Optional<Date> getTimestamp()
          return the time stamp used for the metric
 Unit getUnit()
          return Standard unit used for the metric.
 com.google.common.base.Optional<Double> getValue()
          return the actual value of the metric
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 using MetricDatum.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 the MetricDatum.Builder constructor.


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


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