Class Datapoint
- All Implemented Interfaces:
Serializable, Cloneable
The Datapoint data type encapsulates the statistical data that
Amazon CloudWatch computes from metric data.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe average of metric values that correspond to the datapoint.The maximum of the metric value used for the datapoint.The minimum metric value used for the datapoint.The number of metric values that contributed to the aggregate value of this datapoint.getSum()The sum of metric values used for the datapoint.The time stamp used for the datapoint.getUnit()The standard unit used for the datapoint.inthashCode()voidsetAverage(Double average) The average of metric values that correspond to the datapoint.voidsetMaximum(Double maximum) The maximum of the metric value used for the datapoint.voidsetMinimum(Double minimum) The minimum metric value used for the datapoint.voidsetSampleCount(Double sampleCount) The number of metric values that contributed to the aggregate value of this datapoint.voidThe sum of metric values used for the datapoint.voidsetTimestamp(Date timestamp) The time stamp used for the datapoint.voidsetUnit(StandardUnit unit) The standard unit used for the datapoint.voidThe standard unit used for the datapoint.toString()Returns a string representation of this object; useful for testing and debugging.withAverage(Double average) The average of metric values that correspond to the datapoint.withMaximum(Double maximum) The maximum of the metric value used for the datapoint.withMinimum(Double minimum) The minimum metric value used for the datapoint.withSampleCount(Double sampleCount) The number of metric values that contributed to the aggregate value of this datapoint.The sum of metric values used for the datapoint.withTimestamp(Date timestamp) The time stamp used for the datapoint.withUnit(StandardUnit unit) The standard unit used for the datapoint.The standard unit used for the datapoint.
-
Constructor Details
-
Datapoint
public Datapoint()
-
-
Method Details
-
setTimestamp
The time stamp used for the datapoint.
- Parameters:
timestamp- The time stamp used for the datapoint.
-
getTimestamp
The time stamp used for the datapoint.
- Returns:
- The time stamp used for the datapoint.
-
withTimestamp
-
setSampleCount
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.
-
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.
-
withSampleCount
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAverage
The average of metric values that correspond to the datapoint.
- Parameters:
average- The average of metric values that correspond to the datapoint.
-
getAverage
The average of metric values that correspond to the datapoint.
- Returns:
- The average of metric values that correspond to the datapoint.
-
withAverage
-
setSum
The sum of metric values used for the datapoint.
- Parameters:
sum- The sum of metric values used for the datapoint.
-
getSum
The sum of metric values used for the datapoint.
- Returns:
- The sum of metric values used for the datapoint.
-
withSum
-
setMinimum
The minimum metric value used for the datapoint.
- Parameters:
minimum- The minimum metric value used for the datapoint.
-
getMinimum
The minimum metric value used for the datapoint.
- Returns:
- The minimum metric value used for the datapoint.
-
withMinimum
-
setMaximum
The maximum of the metric value used for the datapoint.
- Parameters:
maximum- The maximum of the metric value used for the datapoint.
-
getMaximum
The maximum of the metric value used for the datapoint.
- Returns:
- The maximum of the metric value used for the datapoint.
-
withMaximum
-
setUnit
The standard unit used for the datapoint.
- Parameters:
unit- The standard unit used for the datapoint.- See Also:
-
getUnit
The standard unit used for the datapoint.
- Returns:
- The standard unit used for the datapoint.
- See Also:
-
withUnit
-
setUnit
The standard unit used for the datapoint.
- Parameters:
unit- The standard unit used for the datapoint.- See Also:
-
withUnit
The standard unit used for the datapoint.
- Parameters:
unit- The standard unit used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
-
equals
-
hashCode
-
clone
-