@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Datapoint extends Object implements Serializable, Cloneable
Encapsulates the statistical data that CloudWatch computes from metric data.
Constructor and Description |
---|
Datapoint() |
Modifier and Type | Method and Description |
---|---|
Datapoint |
addExtendedStatisticsEntry(String key,
Double value) |
Datapoint |
clearExtendedStatisticsEntries()
Removes all the entries added into ExtendedStatistics.
|
Datapoint |
clone() |
boolean |
equals(Object obj) |
Double |
getAverage()
The average of the metric values that correspond to the data point.
|
Map<String,Double> |
getExtendedStatistics()
The percentile statistic for the data point.
|
Double |
getMaximum()
The maximum metric value for the data point.
|
Double |
getMinimum()
The minimum metric value for the data point.
|
Double |
getSampleCount()
The number of metric values that contributed to the aggregate value of this data point.
|
Double |
getSum()
The sum of the metric values for the data point.
|
Date |
getTimestamp()
The time stamp used for the data point.
|
String |
getUnit()
The standard unit for the data point.
|
int |
hashCode() |
void |
setAverage(Double average)
The average of the metric values that correspond to the data point.
|
void |
setExtendedStatistics(Map<String,Double> extendedStatistics)
The percentile statistic for the data point.
|
void |
setMaximum(Double maximum)
The maximum metric value for the data point.
|
void |
setMinimum(Double minimum)
The minimum metric value for the data point.
|
void |
setSampleCount(Double sampleCount)
The number of metric values that contributed to the aggregate value of this data point.
|
void |
setSum(Double sum)
The sum of the metric values for the data point.
|
void |
setTimestamp(Date timestamp)
The time stamp used for the data point.
|
void |
setUnit(StandardUnit unit)
The standard unit for the data point.
|
void |
setUnit(String unit)
The standard unit for the data point.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Datapoint |
withAverage(Double average)
The average of the metric values that correspond to the data point.
|
Datapoint |
withExtendedStatistics(Map<String,Double> extendedStatistics)
The percentile statistic for the data point.
|
Datapoint |
withMaximum(Double maximum)
The maximum metric value for the data point.
|
Datapoint |
withMinimum(Double minimum)
The minimum metric value for the data point.
|
Datapoint |
withSampleCount(Double sampleCount)
The number of metric values that contributed to the aggregate value of this data point.
|
Datapoint |
withSum(Double sum)
The sum of the metric values for the data point.
|
Datapoint |
withTimestamp(Date timestamp)
The time stamp used for the data point.
|
Datapoint |
withUnit(StandardUnit unit)
The standard unit for the data point.
|
Datapoint |
withUnit(String unit)
The standard unit for the data point.
|
public void setTimestamp(Date timestamp)
The time stamp used for the data point.
timestamp
- The time stamp used for the data point.public Date getTimestamp()
The time stamp used for the data point.
public Datapoint withTimestamp(Date timestamp)
The time stamp used for the data point.
timestamp
- The time stamp used for the data point.public void setSampleCount(Double sampleCount)
The number of metric values that contributed to the aggregate value of this data point.
sampleCount
- The number of metric values that contributed to the aggregate value of this data point.public Double getSampleCount()
The number of metric values that contributed to the aggregate value of this data point.
public Datapoint withSampleCount(Double sampleCount)
The number of metric values that contributed to the aggregate value of this data point.
sampleCount
- The number of metric values that contributed to the aggregate value of this data point.public void setAverage(Double average)
The average of the metric values that correspond to the data point.
average
- The average of the metric values that correspond to the data point.public Double getAverage()
The average of the metric values that correspond to the data point.
public Datapoint withAverage(Double average)
The average of the metric values that correspond to the data point.
average
- The average of the metric values that correspond to the data point.public void setSum(Double sum)
The sum of the metric values for the data point.
sum
- The sum of the metric values for the data point.public Double getSum()
The sum of the metric values for the data point.
public Datapoint withSum(Double sum)
The sum of the metric values for the data point.
sum
- The sum of the metric values for the data point.public void setMinimum(Double minimum)
The minimum metric value for the data point.
minimum
- The minimum metric value for the data point.public Double getMinimum()
The minimum metric value for the data point.
public Datapoint withMinimum(Double minimum)
The minimum metric value for the data point.
minimum
- The minimum metric value for the data point.public void setMaximum(Double maximum)
The maximum metric value for the data point.
maximum
- The maximum metric value for the data point.public Double getMaximum()
The maximum metric value for the data point.
public Datapoint withMaximum(Double maximum)
The maximum metric value for the data point.
maximum
- The maximum metric value for the data point.public void setUnit(String unit)
The standard unit for the data point.
unit
- The standard unit for the data point.StandardUnit
public String getUnit()
The standard unit for the data point.
StandardUnit
public Datapoint withUnit(String unit)
The standard unit for the data point.
unit
- The standard unit for the data point.StandardUnit
public void setUnit(StandardUnit unit)
The standard unit for the data point.
unit
- The standard unit for the data point.StandardUnit
public Datapoint withUnit(StandardUnit unit)
The standard unit for the data point.
unit
- The standard unit for the data point.StandardUnit
public Map<String,Double> getExtendedStatistics()
The percentile statistic for the data point.
public void setExtendedStatistics(Map<String,Double> extendedStatistics)
The percentile statistic for the data point.
extendedStatistics
- The percentile statistic for the data point.public Datapoint withExtendedStatistics(Map<String,Double> extendedStatistics)
The percentile statistic for the data point.
extendedStatistics
- The percentile statistic for the data point.public Datapoint clearExtendedStatisticsEntries()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.