Skip to content

AlarmPromQLCriteria

Source code in docs_src/capo_cloudwatch/types/alarm_prom_ql_criteria.py
class AlarmPromQLCriteria(TypedDict, closed=True):
    query: NotRequired["capo_cloudwatch.types.query.Query"]
    """<p>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.</p>"""
    pending_period: NotRequired["capo_cloudwatch.types.pending_period.PendingPeriod"]
    """<p>The duration, in seconds, that a contributor must be continuously breaching before it transitions to the <code>ALARM</code> state.</p>"""
    recovery_period: NotRequired["capo_cloudwatch.types.recovery_period.RecoveryPeriod"]
    """<p>The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the <code>OK</code> state.</p>"""

pending_period instance-attribute

pending_period: NotRequired[PendingPeriod]

The duration, in seconds, that a contributor must be continuously breaching before it transitions to the ALARM state.

query instance-attribute

query: NotRequired[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.

recovery_period instance-attribute

recovery_period: NotRequired[RecoveryPeriod]

The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the OK state.