/AWS1/CL_CWTMETRICDATUM¶
Encapsulates the information sent to either create a metric or add new values to be aggregated into an existing metric.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_metricname TYPE /AWS1/CWTMETRICNAME /AWS1/CWTMETRICNAME¶
The name of the metric.
Optional arguments:¶
it_dimensions TYPE /AWS1/CL_CWTDIMENSION=>TT_DIMENSIONS TT_DIMENSIONS¶
The dimensions associated with the metric.
iv_timestamp TYPE /AWS1/CWTTIMESTAMP /AWS1/CWTTIMESTAMP¶
The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
iv_value TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING¶
The value for the metric.
Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.
io_statisticvalues TYPE REF TO /AWS1/CL_CWTSTATISTICSET /AWS1/CL_CWTSTATISTICSET¶
The statistical values for the metric.
it_values TYPE /AWS1/CL_CWTVALUES_W=>TT_VALUES TT_VALUES¶
Array of numbers representing the values for the metric during the period. Each unique value is listed just once in this array, and the corresponding number in the
Countsarray specifies the number of times that value occurred during the period. You can include up to 150 unique values in eachPutMetricDataaction that specifies aValuesarray.Although the
Valuesarray accepts numbers of typeDouble, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.
it_counts TYPE /AWS1/CL_CWTCOUNTS_W=>TT_COUNTS TT_COUNTS¶
Array of numbers that is used along with the
Valuesarray. Each number in theCountarray is the number of times the corresponding value in theValuesarray occurred during the period.If you omit the
Countsarray, the default of 1 is used as the value for each count. If you include aCountsarray, it must include the same amount of values as theValuesarray.
iv_unit TYPE /AWS1/CWTSTANDARDUNIT /AWS1/CWTSTANDARDUNIT¶
When you are using a
Putoperation, this defines what unit you want to use when storing the metric.In a
Getoperation, this displays the unit that is used for the metric.
iv_storageresolution TYPE /AWS1/CWTSTORAGERESOLUTION /AWS1/CWTSTORAGERESOLUTION¶
Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with sub-minute resolution down to one second. Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available only for custom metrics. For more information about high-resolution metrics, see High-Resolution Metrics in the Amazon CloudWatch User Guide.
This field is optional, if you do not specify it the default of 60 is used.
Queryable Attributes¶
MetricName¶
The name of the metric.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_METRICNAME() |
Getter for METRICNAME, with configurable default |
ASK_METRICNAME() |
Getter for METRICNAME w/ exceptions if field has no value |
HAS_METRICNAME() |
Determine if METRICNAME has a value |
Dimensions¶
The dimensions associated with the metric.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DIMENSIONS() |
Getter for DIMENSIONS, with configurable default |
ASK_DIMENSIONS() |
Getter for DIMENSIONS w/ exceptions if field has no value |
HAS_DIMENSIONS() |
Determine if DIMENSIONS has a value |
Timestamp¶
The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TIMESTAMP() |
Getter for TIMESTAMP, with configurable default |
ASK_TIMESTAMP() |
Getter for TIMESTAMP w/ exceptions if field has no value |
HAS_TIMESTAMP() |
Determine if TIMESTAMP has a value |
Value¶
The value for the metric.
Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_VALUE() |
Getter for VALUE, with configurable default |
ASK_VALUE() |
Getter for VALUE w/ exceptions if field has no value |
STR_VALUE() |
String format for VALUE, with configurable default |
HAS_VALUE() |
Determine if VALUE has a value |
StatisticValues¶
The statistical values for the metric.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_STATISTICVALUES() |
Getter for STATISTICVALUES |
Values¶
Array of numbers representing the values for the metric during the period. Each unique value is listed just once in this array, and the corresponding number in the
Countsarray specifies the number of times that value occurred during the period. You can include up to 150 unique values in eachPutMetricDataaction that specifies aValuesarray.Although the
Valuesarray accepts numbers of typeDouble, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.
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 |
Counts¶
Array of numbers that is used along with the
Valuesarray. Each number in theCountarray is the number of times the corresponding value in theValuesarray occurred during the period.If you omit the
Countsarray, the default of 1 is used as the value for each count. If you include aCountsarray, it must include the same amount of values as theValuesarray.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_COUNTS() |
Getter for COUNTS, with configurable default |
ASK_COUNTS() |
Getter for COUNTS w/ exceptions if field has no value |
HAS_COUNTS() |
Determine if COUNTS has a value |
Unit¶
When you are using a
Putoperation, this defines what unit you want to use when storing the metric.In a
Getoperation, this displays the unit that is used for the metric.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_UNIT() |
Getter for UNIT, with configurable default |
ASK_UNIT() |
Getter for UNIT w/ exceptions if field has no value |
HAS_UNIT() |
Determine if UNIT has a value |
StorageResolution¶
Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with sub-minute resolution down to one second. Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available only for custom metrics. For more information about high-resolution metrics, see High-Resolution Metrics in the Amazon CloudWatch User Guide.
This field is optional, if you do not specify it the default of 60 is used.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_STORAGERESOLUTION() |
Getter for STORAGERESOLUTION, with configurable default |
ASK_STORAGERESOLUTION() |
Getter for STORAGERESOLUTION w/ exceptions if field has no v |
HAS_STORAGERESOLUTION() |
Determine if STORAGERESOLUTION 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_METRICDATA¶
TYPES TT_METRICDATA TYPE STANDARD TABLE OF REF TO /AWS1/CL_CWTMETRICDATUM WITH DEFAULT KEY
.