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.
| コンストラクタと説明 |
|---|
Datapoint() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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()
public void setTimestamp(java.util.Date timestamp)
timestamp - The time stamp used for the datapoint.public Datapoint withTimestamp(java.util.Date timestamp)
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()
public void setSampleCount(java.lang.Double sampleCount)
sampleCount - The number of metric values that contributed to the aggregate value of
this datapoint.public Datapoint withSampleCount(java.lang.Double sampleCount)
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()
public void setAverage(java.lang.Double average)
average - The average of metric values that correspond to the datapoint.public Datapoint withAverage(java.lang.Double average)
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()
public void setSum(java.lang.Double sum)
sum - The sum of metric values used for the datapoint.public Datapoint withSum(java.lang.Double sum)
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()
public void setMinimum(java.lang.Double minimum)
minimum - The minimum metric value used for the datapoint.public Datapoint withMinimum(java.lang.Double minimum)
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()
public void setMaximum(java.lang.Double maximum)
maximum - The maximum of the metric value used for the datapoint.public Datapoint withMaximum(java.lang.Double maximum)
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()
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
StandardUnitpublic void setUnit(java.lang.String unit)
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.StandardUnitpublic Datapoint withUnit(java.lang.String unit)
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.StandardUnitpublic void setUnit(StandardUnit unit)
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.StandardUnitpublic Datapoint withUnit(StandardUnit unit)
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.StandardUnitpublic java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object