org.jclouds.cloudwatch.domain
Class Datapoint

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

public class Datapoint
extends Object

Author:
Adrian Cole
See Also:

Constructor Summary
Datapoint(Double average, Double maximum, Double minimum, Date timestamp, Double samples, Double sum, Unit unit, String customUnit)
           
 
Method Summary
 boolean equals(Object obj)
           
 Double getAverage()
          return Average of samples for the datapoint.
 String getCustomUnit()
          return CustomUnit defined for the datapoint.
 Double getMaximum()
          return Maximum of the samples used for the datapoint.
 Double getMinimum()
          return Minimum of samples for the datapoint.
 Double getSamples()
          return The number of Measurements that contributed to the aggregate value of this datapoint.
 Double getSum()
          return Sum of samples for the datapoint.
 Date getTimestamp()
          return Indicates the beginning of the time aggregation for this value and samples.
 Unit getUnit()
          return Standard unit used for the datapoint.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Datapoint

public Datapoint(@Nullable
                 Double average,
                 @Nullable
                 Double maximum,
                 @Nullable
                 Double minimum,
                 @Nullable
                 Date timestamp,
                 @Nullable
                 Double samples,
                 @Nullable
                 Double sum,
                 @Nullable
                 Unit unit,
                 @Nullable
                 String customUnit)
Method Detail

getAverage

@Nullable
public Double getAverage()
return Average of samples for the datapoint.


getMaximum

@Nullable
public Double getMaximum()
return Maximum of the samples used for the datapoint.


getMinimum

@Nullable
public Double getMinimum()
return Minimum of samples for the datapoint.


getTimestamp

@Nullable
public Date getTimestamp()
return Indicates the beginning of the time aggregation for this value and samples.


getSamples

@Nullable
public Double getSamples()
return The number of Measurements that contributed to the aggregate value of this datapoint.


getSum

@Nullable
public Double getSum()
return Sum of samples for the datapoint.


getUnit

@Nullable
public Unit getUnit()
return Standard unit used for the datapoint.


getCustomUnit

@Nullable
public String getCustomUnit()
return CustomUnit defined for the datapoint.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.