@Generated(value="software.amazon.awssdk:codegen") public final class Datapoint extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Datapoint.Builder,Datapoint>
Encapsulates the statistical data that CloudWatch computes from metric data.
Modifier and Type | Class and Description |
---|---|
static interface |
Datapoint.Builder |
Modifier and Type | Method and Description |
---|---|
Double |
average()
The average of the metric values that correspond to the data point.
|
static Datapoint.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Map<String,Double> |
extendedStatistics()
The percentile statistic for the data point.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasExtendedStatistics()
Returns true if the ExtendedStatistics property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
Double |
maximum()
The maximum metric value for the data point.
|
Double |
minimum()
The minimum metric value for the data point.
|
Double |
sampleCount()
The number of metric values that contributed to the aggregate value of this data point.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Datapoint.Builder> |
serializableBuilderClass() |
Double |
sum()
The sum of the metric values for the data point.
|
Instant |
timestamp()
The time stamp used for the data point.
|
Datapoint.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
StandardUnit |
unit()
The standard unit for the data point.
|
String |
unitAsString()
The standard unit for the data point.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final Instant timestamp()
The time stamp used for the data point.
public final Double sampleCount()
The number of metric values that contributed to the aggregate value of this data point.
public final Double average()
The average of the metric values that correspond to the data point.
public final Double sum()
The sum of the metric values for the data point.
public final Double minimum()
The minimum metric value for the data point.
public final Double maximum()
The maximum metric value for the data point.
public final StandardUnit unit()
The standard unit for the data point.
If the service returns an enum value that is not available in the current SDK version, unit
will return
StandardUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
StandardUnit
public final String unitAsString()
The standard unit for the data point.
If the service returns an enum value that is not available in the current SDK version, unit
will return
StandardUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
StandardUnit
public final boolean hasExtendedStatistics()
public final Map<String,Double> extendedStatistics()
The percentile statistic for the data point.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasExtendedStatistics()
to see if a value was sent in this field.
public Datapoint.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Datapoint.Builder,Datapoint>
public static Datapoint.Builder builder()
public static Class<? extends Datapoint.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.