com.amazonaws.services.cloudwatch.model
Class Datapoint

java.lang.Object
  extended by com.amazonaws.services.cloudwatch.model.Datapoint

public class Datapoint
extends Object

The Datapoint data type encapsulates the statistical data that Amazon CloudWatch computes from metric data.


Constructor Summary
Datapoint()
           
 
Method Summary
 boolean equals(Object obj)
           
 Double getAverage()
          The average of metric values that correspond to the datapoint.
 Double getMaximum()
          The maximum of the metric value used for the datapoint.
 Double getMinimum()
          The minimum metric value used for the datapoint.
 Double getSampleCount()
          The number of metric values that contributed to the aggregate value of this datapoint.
 Double getSum()
          The sum of metric values used for the datapoint.
 Date getTimestamp()
          The time stamp used for the datapoint.
 String getUnit()
          The standard unit used for the datapoint.
 int hashCode()
           
 void setAverage(Double average)
          The average of metric values that correspond to the datapoint.
 void setMaximum(Double maximum)
          The maximum of the metric value used for the datapoint.
 void setMinimum(Double minimum)
          The minimum metric value used for the datapoint.
 void setSampleCount(Double sampleCount)
          The number of metric values that contributed to the aggregate value of this datapoint.
 void setSum(Double sum)
          The sum of metric values used for the datapoint.
 void setTimestamp(Date timestamp)
          The time stamp used for the datapoint.
 void setUnit(StandardUnit unit)
          The standard unit used for the datapoint.
 void setUnit(String unit)
          The standard unit used for the datapoint.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Datapoint withAverage(Double average)
          The average of metric values that correspond to the datapoint.
 Datapoint withMaximum(Double maximum)
          The maximum of the metric value used for the datapoint.
 Datapoint withMinimum(Double minimum)
          The minimum metric value used for the datapoint.
 Datapoint withSampleCount(Double sampleCount)
          The number of metric values that contributed to the aggregate value of this datapoint.
 Datapoint withSum(Double sum)
          The sum of metric values used for the datapoint.
 Datapoint withTimestamp(Date timestamp)
          The time stamp used for the datapoint.
 Datapoint withUnit(StandardUnit unit)
          The standard unit used for the datapoint.
 Datapoint withUnit(String unit)
          The standard unit used for the datapoint.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Datapoint

public Datapoint()
Method Detail

getTimestamp

public Date getTimestamp()
The time stamp used for the datapoint.

Returns:
The time stamp used for the datapoint.

setTimestamp

public void setTimestamp(Date timestamp)
The time stamp used for the datapoint.

Parameters:
timestamp - The time stamp used for the datapoint.

withTimestamp

public Datapoint withTimestamp(Date timestamp)
The time stamp used for the datapoint.

Returns a reference to this object so that method calls can be chained together.

Parameters:
timestamp - The time stamp used for the datapoint.
Returns:
A reference to this updated object so that method calls can be chained together.

getSampleCount

public Double getSampleCount()
The number of metric values that contributed to the aggregate value of this datapoint.

Returns:
The number of metric values that contributed to the aggregate value of this datapoint.

setSampleCount

public void setSampleCount(Double sampleCount)
The number of metric values that contributed to the aggregate value of this datapoint.

Parameters:
sampleCount - The number of metric values that contributed to the aggregate value of this datapoint.

withSampleCount

public Datapoint withSampleCount(Double sampleCount)
The number of metric values that contributed to the aggregate value of this datapoint.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sampleCount - The number of metric values that contributed to the aggregate value of this datapoint.
Returns:
A reference to this updated object so that method calls can be chained together.

getAverage

public Double getAverage()
The average of metric values that correspond to the datapoint.

Returns:
The average of metric values that correspond to the datapoint.

setAverage

public void setAverage(Double average)
The average of metric values that correspond to the datapoint.

Parameters:
average - The average of metric values that correspond to the datapoint.

withAverage

public Datapoint withAverage(Double average)
The average of metric values that correspond to the datapoint.

Returns a reference to this object so that method calls can be chained together.

Parameters:
average - The average of metric values that correspond to the datapoint.
Returns:
A reference to this updated object so that method calls can be chained together.

getSum

public Double getSum()
The sum of metric values used for the datapoint.

Returns:
The sum of metric values used for the datapoint.

setSum

public void setSum(Double sum)
The sum of metric values used for the datapoint.

Parameters:
sum - The sum of metric values used for the datapoint.

withSum

public Datapoint withSum(Double sum)
The sum of metric values used for the datapoint.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sum - The sum of metric values used for the datapoint.
Returns:
A reference to this updated object so that method calls can be chained together.

getMinimum

public Double getMinimum()
The minimum metric value used for the datapoint.

Returns:
The minimum metric value used for the datapoint.

setMinimum

public void setMinimum(Double minimum)
The minimum metric value used for the datapoint.

Parameters:
minimum - The minimum metric value used for the datapoint.

withMinimum

public Datapoint withMinimum(Double minimum)
The minimum metric value used for the datapoint.

Returns a reference to this object so that method calls can be chained together.

Parameters:
minimum - The minimum metric value used for the datapoint.
Returns:
A reference to this updated object so that method calls can be chained together.

getMaximum

public Double getMaximum()
The maximum of the metric value used for the datapoint.

Returns:
The maximum of the metric value used for the datapoint.

setMaximum

public void setMaximum(Double maximum)
The maximum of the metric value used for the datapoint.

Parameters:
maximum - The maximum of the metric value used for the datapoint.

withMaximum

public Datapoint withMaximum(Double maximum)
The maximum of the metric value used for the datapoint.

Returns a reference to this object so that method calls can be chained together.

Parameters:
maximum - The maximum of the metric value used for the datapoint.
Returns:
A reference to this updated object so that method calls can be chained together.

getUnit

public String getUnit()
The standard unit used for the datapoint.

Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

Returns:
The standard unit used for the datapoint.
See Also:
StandardUnit

setUnit

public void setUnit(String unit)
The standard unit used for the datapoint.

Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

Parameters:
unit - The standard unit used for the datapoint.
See Also:
StandardUnit

withUnit

public Datapoint withUnit(String unit)
The standard unit used for the datapoint.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

Parameters:
unit - The standard unit used for the datapoint.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StandardUnit

setUnit

public void setUnit(StandardUnit unit)
The standard unit used for the datapoint.

Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

Parameters:
unit - The standard unit used for the datapoint.
See Also:
StandardUnit

withUnit

public Datapoint withUnit(StandardUnit unit)
The standard unit used for the datapoint.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

Parameters:
unit - The standard unit used for the datapoint.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StandardUnit

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.