Skip to content

/AWS1/CL_CWT=>DESCRIBEALARMSFORMETRIC()

About DescribeAlarmsForMetric

Retrieves the alarms for the specified metric. To filter the results, specify a statistic, period, or unit.

This operation retrieves only standard alarms that are based on the specified metric. It does not return alarms based on math expressions that use the specified metric, or composite alarms that use the specified metric.

Method Signature

IMPORTING

Required arguments:

IV_METRICNAME TYPE /AWS1/CWTMETRICNAME /AWS1/CWTMETRICNAME

The name of the metric.

IV_NAMESPACE TYPE /AWS1/CWTNAMESPACE /AWS1/CWTNAMESPACE

The namespace of the metric.

Optional arguments:

IV_STATISTIC TYPE /AWS1/CWTSTATISTIC /AWS1/CWTSTATISTIC

The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics.

IV_EXTENDEDSTATISTIC TYPE /AWS1/CWTEXTENDEDSTATISTIC /AWS1/CWTEXTENDEDSTATISTIC

The percentile statistic for the metric. Specify a value between p0.0 and p100.

IT_DIMENSIONS TYPE /AWS1/CL_CWTDIMENSION=>TT_DIMENSIONS TT_DIMENSIONS

The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.

IV_PERIOD TYPE /AWS1/CWTPERIOD /AWS1/CWTPERIOD

The period, in seconds, over which the statistic is applied.

IV_UNIT TYPE /AWS1/CWTSTANDARDUNIT /AWS1/CWTSTANDARDUNIT

The unit for the metric.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CWTDSCALRMSFORMETRI01 /AWS1/CL_CWTDSCALRMSFORMETRI01