@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricDataResult extends Object implements Serializable, Cloneable
A GetMetricData
call returns an array of MetricDataResult
structures. Each of these
structures includes the data points for that metric, along with the timestamps of those data points and other
identifying information.
Constructor and Description |
---|
MetricDataResult() |
Modifier and Type | Method and Description |
---|---|
MetricDataResult |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The short name you specified to represent this metric.
|
String |
getLabel()
The human-readable label associated with the data.
|
List<MessageData> |
getMessages()
A list of messages with additional information about the data returned.
|
String |
getStatusCode()
The status of the returned data.
|
List<Date> |
getTimestamps()
The timestamps for the data points, formatted in Unix timestamp format.
|
List<Double> |
getValues()
The data points for the metric corresponding to
Timestamps . |
int |
hashCode() |
void |
setId(String id)
The short name you specified to represent this metric.
|
void |
setLabel(String label)
The human-readable label associated with the data.
|
void |
setMessages(Collection<MessageData> messages)
A list of messages with additional information about the data returned.
|
void |
setStatusCode(String statusCode)
The status of the returned data.
|
void |
setTimestamps(Collection<Date> timestamps)
The timestamps for the data points, formatted in Unix timestamp format.
|
void |
setValues(Collection<Double> values)
The data points for the metric corresponding to
Timestamps . |
String |
toString()
Returns a string representation of this object.
|
MetricDataResult |
withId(String id)
The short name you specified to represent this metric.
|
MetricDataResult |
withLabel(String label)
The human-readable label associated with the data.
|
MetricDataResult |
withMessages(Collection<MessageData> messages)
A list of messages with additional information about the data returned.
|
MetricDataResult |
withMessages(MessageData... messages)
A list of messages with additional information about the data returned.
|
MetricDataResult |
withStatusCode(StatusCode statusCode)
The status of the returned data.
|
MetricDataResult |
withStatusCode(String statusCode)
The status of the returned data.
|
MetricDataResult |
withTimestamps(Collection<Date> timestamps)
The timestamps for the data points, formatted in Unix timestamp format.
|
MetricDataResult |
withTimestamps(Date... timestamps)
The timestamps for the data points, formatted in Unix timestamp format.
|
MetricDataResult |
withValues(Collection<Double> values)
The data points for the metric corresponding to
Timestamps . |
MetricDataResult |
withValues(Double... values)
The data points for the metric corresponding to
Timestamps . |
public void setId(String id)
The short name you specified to represent this metric.
id
- The short name you specified to represent this metric.public String getId()
The short name you specified to represent this metric.
public MetricDataResult withId(String id)
The short name you specified to represent this metric.
id
- The short name you specified to represent this metric.public void setLabel(String label)
The human-readable label associated with the data.
label
- The human-readable label associated with the data.public String getLabel()
The human-readable label associated with the data.
public MetricDataResult withLabel(String label)
The human-readable label associated with the data.
label
- The human-readable label associated with the data.public List<Date> getTimestamps()
The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].
public void setTimestamps(Collection<Date> timestamps)
The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].
timestamps
- The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always
matches the number of values and the value for Timestamps[x] is Values[x].public MetricDataResult withTimestamps(Date... timestamps)
The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].
NOTE: This method appends the values to the existing list (if any). Use
setTimestamps(java.util.Collection)
or withTimestamps(java.util.Collection)
if you want to
override the existing values.
timestamps
- The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always
matches the number of values and the value for Timestamps[x] is Values[x].public MetricDataResult withTimestamps(Collection<Date> timestamps)
The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].
timestamps
- The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always
matches the number of values and the value for Timestamps[x] is Values[x].public List<Double> getValues()
The data points for the metric corresponding to Timestamps
. The number of values always matches the
number of timestamps and the timestamp for Values[x] is Timestamps[x].
Timestamps
. The number of values always
matches the number of timestamps and the timestamp for Values[x] is Timestamps[x].public void setValues(Collection<Double> values)
The data points for the metric corresponding to Timestamps
. The number of values always matches the
number of timestamps and the timestamp for Values[x] is Timestamps[x].
values
- The data points for the metric corresponding to Timestamps
. The number of values always
matches the number of timestamps and the timestamp for Values[x] is Timestamps[x].public MetricDataResult withValues(Double... values)
The data points for the metric corresponding to Timestamps
. The number of values always matches the
number of timestamps and the timestamp for Values[x] is Timestamps[x].
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The data points for the metric corresponding to Timestamps
. The number of values always
matches the number of timestamps and the timestamp for Values[x] is Timestamps[x].public MetricDataResult withValues(Collection<Double> values)
The data points for the metric corresponding to Timestamps
. The number of values always matches the
number of timestamps and the timestamp for Values[x] is Timestamps[x].
values
- The data points for the metric corresponding to Timestamps
. The number of values always
matches the number of timestamps and the timestamp for Values[x] is Timestamps[x].public void setStatusCode(String 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.
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.StatusCode
public String getStatusCode()
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.
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.StatusCode
public MetricDataResult withStatusCode(String 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.
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.StatusCode
public MetricDataResult withStatusCode(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.
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.StatusCode
public List<MessageData> getMessages()
A list of messages with additional information about the data returned.
public void setMessages(Collection<MessageData> messages)
A list of messages with additional information about the data returned.
messages
- A list of messages with additional information about the data returned.public MetricDataResult withMessages(MessageData... messages)
A list of messages with additional information about the data returned.
NOTE: This method appends the values to the existing list (if any). Use
setMessages(java.util.Collection)
or withMessages(java.util.Collection)
if you want to override
the existing values.
messages
- A list of messages with additional information about the data returned.public MetricDataResult withMessages(Collection<MessageData> messages)
A list of messages with additional information about the data returned.
messages
- A list of messages with additional information about the data returned.public String toString()
toString
in class Object
Object.toString()
public MetricDataResult clone()
Copyright © 2020. All rights reserved.