@Generated(value="software.amazon.awssdk:codegen") public final class MetricDataResult extends Object implements ToCopyableBuilder<MetricDataResult.Builder,MetricDataResult>
A GetMetricData call returns an array of MetricDataResult structures. Each of these
structures includes the data points for that metric, along with the time stamps of those data points and other
identifying information.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricDataResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MetricDataResult.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The short name you specified to represent this metric.
|
String |
label()
The human-readable label associated with the data.
|
List<MessageData> |
messages()
A list of messages with additional information about the data returned.
|
static Class<? extends MetricDataResult.Builder> |
serializableBuilderClass() |
StatusCode |
statusCode()
The status of the returned data.
|
String |
statusCodeAsString()
The status of the returned data.
|
List<Instant> |
timestamps()
The time stamps for the data points, formatted in Unix timestamp format.
|
MetricDataResult.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
List<Double> |
values()
The data points for the metric corresponding to
Timestamps. |
copypublic String id()
The short name you specified to represent this metric.
public String label()
The human-readable label associated with the data.
public List<Instant> timestamps()
The time stamps for the data points, formatted in Unix timestamp format. The number of time stamps always matches the number of values and the value for Timestamps[x] is Values[x].
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<Double> values()
The data points for the metric corresponding to Timestamps. The number of values always matches the
number of time stamps and the time stamp for Values[x] is Timestamps[x].
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Timestamps. The number of values always
matches the number of time stamps and the time stamp for Values[x] is Timestamps[x].public StatusCode statusCode()
The status of the returned data. Complete indicates that all data points in the requested time range
were returned. PartialData means that an incomplete set of data points were returned. You can use
the NextToken value that was returned and repeat your request to get more data points.
NextToken is not returned if you are performing a math expression. InternalError
indicates that an error occurred. Retry your request using NextToken, if present.
If the service returns an enum value that is not available in the current SDK version, statusCode will
return StatusCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusCodeAsString().
Complete indicates that all data points in the requested
time range were returned. PartialData means that an incomplete set of data points were
returned. You can use the NextToken value that was returned and repeat your request to get
more data points. NextToken is not returned if you are performing a math expression.
InternalError indicates that an error occurred. Retry your request using
NextToken, if present.StatusCodepublic String statusCodeAsString()
The status of the returned data. Complete indicates that all data points in the requested time range
were returned. PartialData means that an incomplete set of data points were returned. You can use
the NextToken value that was returned and repeat your request to get more data points.
NextToken is not returned if you are performing a math expression. InternalError
indicates that an error occurred. Retry your request using NextToken, if present.
If the service returns an enum value that is not available in the current SDK version, statusCode will
return StatusCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusCodeAsString().
Complete indicates that all data points in the requested
time range were returned. PartialData means that an incomplete set of data points were
returned. You can use the NextToken value that was returned and repeat your request to get
more data points. NextToken is not returned if you are performing a math expression.
InternalError indicates that an error occurred. Retry your request using
NextToken, if present.StatusCodepublic List<MessageData> messages()
A list of messages with additional information about the data returned.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public MetricDataResult.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<MetricDataResult.Builder,MetricDataResult>public static MetricDataResult.Builder builder()
public static Class<? extends MetricDataResult.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.