Skip to content

/AWS1/CL_CWSSVCLEVELINDICATO02

Use this structure to specify the information for the metric that a period-based SLO will monitor.

CONSTRUCTOR

IMPORTING

Optional arguments:

IT_KEYATTRIBUTES TYPE /AWS1/CL_CWSATTRIBUTES_W=>TT_ATTRIBUTES TT_ATTRIBUTES

If this SLO is related to a metric collected by Application Signals, you must use this field to specify which service the SLO metric is related to. To do so, you must specify at least the Type, Name, and Environment attributes.

This is a string-to-string map. It can include the following fields.

  • Type designates the type of object this is.

  • ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource.

  • Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service.

  • Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource.

  • Environment specifies the location where this object is hosted, or what it belongs to.

IV_OPERATIONNAME TYPE /AWS1/CWSOPERATIONNAME /AWS1/CWSOPERATIONNAME

If the SLO is to monitor a specific operation of the service, use this field to specify the name of that operation.

IV_METRICTYPE TYPE /AWS1/CWSSVCLEVELINDICATORME00 /AWS1/CWSSVCLEVELINDICATORME00

If the SLO is to monitor either the LATENCY or AVAILABILITY metric that Application Signals collects, use this field to specify which of those metrics is used.

IV_STATISTIC TYPE /AWS1/CWSSVCLEVELINDICATORST00 /AWS1/CWSSVCLEVELINDICATORST00

The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. For more information about statistics, see CloudWatch statistics definitions.

IV_PERIODSECONDS TYPE /AWS1/CWSSLIPERIODSECONDS /AWS1/CWSSLIPERIODSECONDS

The number of seconds to use as the period for SLO evaluation. Your application's performance is compared to the SLI during each period. For each period, the application is determined to have either achieved or not achieved the necessary performance.

IT_METRICDATAQUERIES TYPE /AWS1/CL_CWSMETRICDATAQUERY=>TT_METRICDATAQUERIES TT_METRICDATAQUERIES

If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, use this structure to specify that metric or expression.


Queryable Attributes

KeyAttributes

If this SLO is related to a metric collected by Application Signals, you must use this field to specify which service the SLO metric is related to. To do so, you must specify at least the Type, Name, and Environment attributes.

This is a string-to-string map. It can include the following fields.

  • Type designates the type of object this is.

  • ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource.

  • Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service.

  • Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource.

  • Environment specifies the location where this object is hosted, or what it belongs to.

Accessible with the following methods

Method Description
GET_KEYATTRIBUTES() Getter for KEYATTRIBUTES, with configurable default
ASK_KEYATTRIBUTES() Getter for KEYATTRIBUTES w/ exceptions if field has no value
HAS_KEYATTRIBUTES() Determine if KEYATTRIBUTES has a value

OperationName

If the SLO is to monitor a specific operation of the service, use this field to specify the name of that operation.

Accessible with the following methods

Method Description
GET_OPERATIONNAME() Getter for OPERATIONNAME, with configurable default
ASK_OPERATIONNAME() Getter for OPERATIONNAME w/ exceptions if field has no value
HAS_OPERATIONNAME() Determine if OPERATIONNAME has a value

MetricType

If the SLO is to monitor either the LATENCY or AVAILABILITY metric that Application Signals collects, use this field to specify which of those metrics is used.

Accessible with the following methods

Method Description
GET_METRICTYPE() Getter for METRICTYPE, with configurable default
ASK_METRICTYPE() Getter for METRICTYPE w/ exceptions if field has no value
HAS_METRICTYPE() Determine if METRICTYPE has a value

Statistic

The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. For more information about statistics, see CloudWatch statistics definitions.

Accessible with the following methods

Method Description
GET_STATISTIC() Getter for STATISTIC, with configurable default
ASK_STATISTIC() Getter for STATISTIC w/ exceptions if field has no value
HAS_STATISTIC() Determine if STATISTIC has a value

PeriodSeconds

The number of seconds to use as the period for SLO evaluation. Your application's performance is compared to the SLI during each period. For each period, the application is determined to have either achieved or not achieved the necessary performance.

Accessible with the following methods

Method Description
GET_PERIODSECONDS() Getter for PERIODSECONDS, with configurable default
ASK_PERIODSECONDS() Getter for PERIODSECONDS w/ exceptions if field has no value
HAS_PERIODSECONDS() Determine if PERIODSECONDS has a value

MetricDataQueries

If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, use this structure to specify that metric or expression.

Accessible with the following methods

Method Description
GET_METRICDATAQUERIES() Getter for METRICDATAQUERIES, with configurable default
ASK_METRICDATAQUERIES() Getter for METRICDATAQUERIES w/ exceptions if field has no v
HAS_METRICDATAQUERIES() Determine if METRICDATAQUERIES has a value