Alarm / Attribute / evaluation_criteria

evaluation_criteria

CloudWatch.Alarm.evaluation_criteria
  • (dict) –

    The evaluation criteria for the alarm.

    Note

    This is a Tagged Union structure. Only one of the following top level keys will be set: PromQLCriteria. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

    'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
    
    • PromQLCriteria (dict) –

      The PromQL criteria for the alarm evaluation.

      • Query (string) –

        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.

      • PendingPeriod (integer) –

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

      • RecoveryPeriod (integer) –

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