public class Datapoint
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The Datapoint
data type encapsulates the statistical data that
Amazon CloudWatch computes from metric data.
Modifier and Type | Field and Description |
---|---|
private java.lang.Double |
average
The average of metric values that correspond to the datapoint.
|
private java.lang.Double |
maximum
The maximum of the metric value used for the datapoint.
|
private java.lang.Double |
minimum
The minimum metric value used for the datapoint.
|
private java.lang.Double |
sampleCount
The number of metric values that contributed to the aggregate value of
this datapoint.
|
private java.lang.Double |
sum
The sum of metric values used for the datapoint.
|
private java.util.Date |
timestamp
The time stamp used for the datapoint.
|
private java.lang.String |
unit
The standard unit used for the datapoint.
|
Constructor and Description |
---|
Datapoint() |
Modifier and Type | Method and Description |
---|---|
Datapoint |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Double |
getAverage()
The average of metric values that correspond to the datapoint.
|
java.lang.Double |
getMaximum()
The maximum of the metric value used for the datapoint.
|
java.lang.Double |
getMinimum()
The minimum metric value used for the datapoint.
|
java.lang.Double |
getSampleCount()
The number of metric values that contributed to the aggregate value of
this datapoint.
|
java.lang.Double |
getSum()
The sum of metric values used for the datapoint.
|
java.util.Date |
getTimestamp()
The time stamp used for the datapoint.
|
java.lang.String |
getUnit()
The standard unit used for the datapoint.
|
int |
hashCode() |
void |
setAverage(java.lang.Double average)
The average of metric values that correspond to the datapoint.
|
void |
setMaximum(java.lang.Double maximum)
The maximum of the metric value used for the datapoint.
|
void |
setMinimum(java.lang.Double minimum)
The minimum metric value used for the datapoint.
|
void |
setSampleCount(java.lang.Double sampleCount)
The number of metric values that contributed to the aggregate value of
this datapoint.
|
void |
setSum(java.lang.Double sum)
The sum of metric values used for the datapoint.
|
void |
setTimestamp(java.util.Date timestamp)
The time stamp used for the datapoint.
|
void |
setUnit(StandardUnit unit)
The standard unit used for the datapoint.
|
void |
setUnit(java.lang.String unit)
The standard unit used for the datapoint.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Datapoint |
withAverage(java.lang.Double average)
The average of metric values that correspond to the datapoint.
|
Datapoint |
withMaximum(java.lang.Double maximum)
The maximum of the metric value used for the datapoint.
|
Datapoint |
withMinimum(java.lang.Double minimum)
The minimum metric value used for the datapoint.
|
Datapoint |
withSampleCount(java.lang.Double sampleCount)
The number of metric values that contributed to the aggregate value of
this datapoint.
|
Datapoint |
withSum(java.lang.Double sum)
The sum of metric values used for the datapoint.
|
Datapoint |
withTimestamp(java.util.Date timestamp)
The time stamp used for the datapoint.
|
Datapoint |
withUnit(StandardUnit unit)
The standard unit used for the datapoint.
|
Datapoint |
withUnit(java.lang.String unit)
The standard unit used for the datapoint.
|
private java.util.Date timestamp
The time stamp used for the datapoint.
private java.lang.Double sampleCount
The number of metric values that contributed to the aggregate value of this datapoint.
private java.lang.Double average
The average of metric values that correspond to the datapoint.
private java.lang.Double sum
The sum of metric values used for the datapoint.
private java.lang.Double minimum
The minimum metric value used for the datapoint.
private java.lang.Double maximum
The maximum of the metric value used for the datapoint.
private java.lang.String unit
The standard unit used for the datapoint.
public void setTimestamp(java.util.Date timestamp)
The time stamp used for the datapoint.
timestamp
- The time stamp used for the datapoint.public java.util.Date getTimestamp()
The time stamp used for the datapoint.
public Datapoint withTimestamp(java.util.Date timestamp)
The time stamp used for the datapoint.
timestamp
- The time stamp used for the datapoint.public void setSampleCount(java.lang.Double sampleCount)
The number of metric values that contributed to the aggregate value of this datapoint.
sampleCount
- The number of metric values that contributed to the aggregate
value of this datapoint.public java.lang.Double getSampleCount()
The number of metric values that contributed to the aggregate value of this datapoint.
public Datapoint withSampleCount(java.lang.Double sampleCount)
The number of metric values that contributed to the aggregate value of this datapoint.
sampleCount
- The number of metric values that contributed to the aggregate
value of this datapoint.public void setAverage(java.lang.Double average)
The average of metric values that correspond to the datapoint.
average
- The average of metric values that correspond to the datapoint.public java.lang.Double getAverage()
The average of metric values that correspond to the datapoint.
public Datapoint withAverage(java.lang.Double average)
The average of metric values that correspond to the datapoint.
average
- The average of metric values that correspond to the datapoint.public void setSum(java.lang.Double sum)
The sum of metric values used for the datapoint.
sum
- The sum of metric values used for the datapoint.public java.lang.Double getSum()
The sum of metric values used for the datapoint.
public Datapoint withSum(java.lang.Double sum)
The sum of metric values used for the datapoint.
sum
- The sum of metric values used for the datapoint.public void setMinimum(java.lang.Double minimum)
The minimum metric value used for the datapoint.
minimum
- The minimum metric value used for the datapoint.public java.lang.Double getMinimum()
The minimum metric value used for the datapoint.
public Datapoint withMinimum(java.lang.Double minimum)
The minimum metric value used for the datapoint.
minimum
- The minimum metric value used for the datapoint.public void setMaximum(java.lang.Double maximum)
The maximum of the metric value used for the datapoint.
maximum
- The maximum of the metric value used for the datapoint.public java.lang.Double getMaximum()
The maximum of the metric value used for the datapoint.
public Datapoint withMaximum(java.lang.Double maximum)
The maximum of the metric value used for the datapoint.
maximum
- The maximum of the metric value used for the datapoint.public void setUnit(java.lang.String unit)
The standard unit used for the datapoint.
unit
- The standard unit used for the datapoint.StandardUnit
public java.lang.String getUnit()
The standard unit used for the datapoint.
StandardUnit
public Datapoint withUnit(java.lang.String unit)
The standard unit used for the datapoint.
unit
- The standard unit used for the datapoint.StandardUnit
public void setUnit(StandardUnit unit)
The standard unit used for the datapoint.
unit
- The standard unit used for the datapoint.StandardUnit
public Datapoint withUnit(StandardUnit unit)
The standard unit used for the datapoint.
unit
- The standard unit used for the datapoint.StandardUnit
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Datapoint clone()
clone
in class java.lang.Object