|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.cloudwatch.model.Datapoint
public class Datapoint
The Datapoint
data type encapsulates the statistical data that Amazon CloudWatch computes from metric data.
Constructor Summary | |
---|---|
Datapoint()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Double |
getAverage()
The average of metric values that correspond to the datapoint. |
Double |
getMaximum()
The maximum of the metric value used for the datapoint. |
Double |
getMinimum()
The minimum metric value used for the datapoint. |
Double |
getSampleCount()
The number of metric values that contributed to the aggregate value of this datapoint. |
Double |
getSum()
The sum of metric values used for the datapoint. |
Date |
getTimestamp()
The time stamp used for the datapoint. |
String |
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 |
setSum(Double sum)
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 |
setUnit(String unit)
The standard unit used for the datapoint. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Datapoint |
withAverage(Double average)
The average of metric values that correspond to the datapoint. |
Datapoint |
withMaximum(Double maximum)
The maximum of the metric value used for the datapoint. |
Datapoint |
withMinimum(Double minimum)
The minimum metric value used for the datapoint. |
Datapoint |
withSampleCount(Double sampleCount)
The number of metric values that contributed to the aggregate value of this datapoint. |
Datapoint |
withSum(Double sum)
The sum of metric values used for the datapoint. |
Datapoint |
withTimestamp(Date timestamp)
The time stamp used for the datapoint. |
Datapoint |
withUnit(StandardUnit unit)
The standard unit used for the datapoint. |
Datapoint |
withUnit(String unit)
The standard unit used for the datapoint. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Datapoint()
Method Detail |
---|
public Date getTimestamp()
public void setTimestamp(Date timestamp)
timestamp
- The time stamp used for the datapoint.public Datapoint withTimestamp(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 Double getSampleCount()
public void setSampleCount(Double sampleCount)
sampleCount
- The number of metric values that contributed to the aggregate value of
this datapoint.public Datapoint withSampleCount(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 Double getAverage()
public void setAverage(Double average)
average
- The average of metric values that correspond to the datapoint.public Datapoint withAverage(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 Double getSum()
public void setSum(Double sum)
sum
- The sum of metric values used for the datapoint.public Datapoint withSum(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 Double getMinimum()
public void setMinimum(Double minimum)
minimum
- The minimum metric value used for the datapoint.public Datapoint withMinimum(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 Double getMaximum()
public void setMaximum(Double maximum)
maximum
- The maximum of the metric value used for the datapoint.public Datapoint withMaximum(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 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
StandardUnit
public void setUnit(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.StandardUnit
public Datapoint withUnit(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.
StandardUnit
public 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.StandardUnit
public 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.
StandardUnit
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |