Skip to content

/AWS1/CL_CWTMETRICDATARESULT

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

IMPORTING

Optional arguments:

iv_id TYPE /AWS1/CWTMETRICID /AWS1/CWTMETRICID

The short name you specified to represent this metric.

iv_label TYPE /AWS1/CWTMETRICLABEL /AWS1/CWTMETRICLABEL

The human-readable label associated with the data.

it_timestamps TYPE /AWS1/CL_CWTTIMESTAMPS_W=>TT_TIMESTAMPS TT_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].

it_values TYPE /AWS1/CL_CWTDATAPOINTVALUES_W=>TT_DATAPOINTVALUES TT_DATAPOINTVALUES

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].

iv_statuscode TYPE /AWS1/CWTSTATUSCODE /AWS1/CWTSTATUSCODE

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.

it_messages TYPE /AWS1/CL_CWTMESSAGEDATA=>TT_METRICDATARESULTMESSAGES TT_METRICDATARESULTMESSAGES

A list of messages with additional information about the data returned.


Queryable Attributes

Id

The short name you specified to represent this metric.

Accessible with the following methods

Method Description
GET_ID() Getter for ID, with configurable default
ASK_ID() Getter for ID w/ exceptions if field has no value
HAS_ID() Determine if ID has a value

Label

The human-readable label associated with the data.

Accessible with the following methods

Method Description
GET_LABEL() Getter for LABEL, with configurable default
ASK_LABEL() Getter for LABEL w/ exceptions if field has no value
HAS_LABEL() Determine if LABEL has a value

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].

Accessible with the following methods

Method Description
GET_TIMESTAMPS() Getter for TIMESTAMPS, with configurable default
ASK_TIMESTAMPS() Getter for TIMESTAMPS w/ exceptions if field has no value
HAS_TIMESTAMPS() Determine if TIMESTAMPS has a value

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].

Accessible with the following methods

Method Description
GET_VALUES() Getter for VALUES, with configurable default
ASK_VALUES() Getter for VALUES w/ exceptions if field has no value
HAS_VALUES() Determine if VALUES has a value

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.

Accessible with the following methods

Method Description
GET_STATUSCODE() Getter for STATUSCODE, with configurable default
ASK_STATUSCODE() Getter for STATUSCODE w/ exceptions if field has no value
HAS_STATUSCODE() Determine if STATUSCODE has a value

Messages

A list of messages with additional information about the data returned.

Accessible with the following methods

Method Description
GET_MESSAGES() Getter for MESSAGES, with configurable default
ASK_MESSAGES() Getter for MESSAGES w/ exceptions if field has no value
HAS_MESSAGES() Determine if MESSAGES has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_METRICDATARESULTS

TYPES TT_METRICDATARESULTS TYPE STANDARD TABLE OF REF TO /AWS1/CL_CWTMETRICDATARESULT WITH DEFAULT KEY
.