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()
boolean
The 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.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
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
The 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
The time stamp used for the datapoint.
- Parameters:
timestamp
- The time stamp used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The average of metric values that correspond to the datapoint.
- Parameters:
average
- The average of metric values that correspond to the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The sum of metric values used for the datapoint.
- Parameters:
sum
- The sum of metric values used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The minimum metric value used for the datapoint.
- Parameters:
minimum
- The minimum metric value used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The maximum of the metric value used for the datapoint.
- Parameters:
maximum
- The maximum of the metric value used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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:
-
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-