public class Datapoint
extends java.lang.Object
implements java.io.Serializable
The Datapoint
data type encapsulates the statistical data that
Amazon CloudWatch computes from metric data.
Constructor and Description |
---|
Datapoint() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.util.Date getTimestamp()
The time stamp used for the datapoint.
The time stamp 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 Datapoint withTimestamp(java.util.Date timestamp)
The time stamp used for the datapoint.
Returns a reference to this object so that method calls can be chained together.
timestamp
- The time stamp used for the datapoint.
public java.lang.Double getSampleCount()
The number of metric values that contributed to the aggregate value of this datapoint.
The number of metric values that contributed to the aggregate value of this 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 Datapoint withSampleCount(java.lang.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.
sampleCount
- The number of metric values that contributed to the aggregate value of this datapoint.
public java.lang.Double getAverage()
The average of metric values that correspond to the datapoint.
The average of metric values that correspond to the 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 Datapoint withAverage(java.lang.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.
average
- The average of metric values that correspond to the datapoint.
public java.lang.Double getSum()
The sum of metric values used for the datapoint.
The sum of metric values used for 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 Datapoint withSum(java.lang.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.
sum
- The sum of metric values used for the datapoint.
public java.lang.Double getMinimum()
The minimum metric value used for the datapoint.
The minimum metric value 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 Datapoint withMinimum(java.lang.Double minimum)
The minimum metric value used for the datapoint.
Returns a reference to this object so that method calls can be chained together.
minimum
- The minimum metric value used for the datapoint.
public java.lang.Double getMaximum()
The maximum of the metric value used for the datapoint.
The maximum of the 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 Datapoint withMaximum(java.lang.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.
maximum
- The maximum of the metric value used for the datapoint.
public java.lang.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
The standard unit used for the datapoint.
StandardUnit
public void setUnit(java.lang.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
unit
- The standard unit used for the datapoint.
StandardUnit
public Datapoint withUnit(java.lang.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
unit
- The standard unit used for the datapoint.
StandardUnit
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
unit
- The standard unit used for the datapoint.
StandardUnit
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
unit
- The standard unit used for the datapoint.
StandardUnit
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.