/AWS1/CL_CWTALARMPROMQLCRIT¶
Contains the configuration that determines how a PromQL alarm evaluates its contributors, including the query to run and the durations that define when contributors transition between states.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_query TYPE /AWS1/CWTQUERY /AWS1/CWTQUERY¶
The PromQL query that the alarm evaluates. The query must return a result of vector type. Each entry in the vector result represents an alarm contributor.
Optional arguments:¶
iv_pendingperiod TYPE /AWS1/CWTPENDINGPERIOD /AWS1/CWTPENDINGPERIOD¶
The duration, in seconds, that a contributor must be continuously breaching before it transitions to the
ALARMstate.
iv_recoveryperiod TYPE /AWS1/CWTRECOVERYPERIOD /AWS1/CWTRECOVERYPERIOD¶
The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the
OKstate.
Queryable Attributes¶
Query¶
The PromQL query that the alarm evaluates. The query must return a result of vector type. Each entry in the vector result represents an alarm contributor.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_QUERY() |
Getter for QUERY, with configurable default |
ASK_QUERY() |
Getter for QUERY w/ exceptions if field has no value |
HAS_QUERY() |
Determine if QUERY has a value |
PendingPeriod¶
The duration, in seconds, that a contributor must be continuously breaching before it transitions to the
ALARMstate.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PENDINGPERIOD() |
Getter for PENDINGPERIOD, with configurable default |
ASK_PENDINGPERIOD() |
Getter for PENDINGPERIOD w/ exceptions if field has no value |
HAS_PENDINGPERIOD() |
Determine if PENDINGPERIOD has a value |
RecoveryPeriod¶
The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the
OKstate.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_RECOVERYPERIOD() |
Getter for RECOVERYPERIOD, with configurable default |
ASK_RECOVERYPERIOD() |
Getter for RECOVERYPERIOD w/ exceptions if field has no valu |
HAS_RECOVERYPERIOD() |
Determine if RECOVERYPERIOD has a value |