Skip to content

AlertCondition

Source code in docs_src/capo_cloudwatchomni/types/alert_condition.py
class AlertCondition(TypedDict, closed=True):
    threshold_mode: NotRequired[
        "capo_cloudwatchomni.types.threshold_mode.ThresholdMode"
    ]
    """How the threshold is applied to query results."""
    threshold_field: NotRequired["str"]
    """The field the threshold is evaluated against."""
    comparator: NotRequired["capo_cloudwatchomni.types.comparator.Comparator"]
    """The comparison operator applied to the threshold."""
    warning_threshold: NotRequired["float"]
    """The value at which the alert enters the WARNING state."""
    critical_threshold: NotRequired["float"]
    """The value at which the alert enters the CRITICAL state."""

comparator instance-attribute

comparator: NotRequired[Comparator]

The comparison operator applied to the threshold.

critical_threshold instance-attribute

critical_threshold: NotRequired[float]

The value at which the alert enters the CRITICAL state.

threshold_field instance-attribute

threshold_field: NotRequired[str]

The field the threshold is evaluated against.

threshold_mode instance-attribute

threshold_mode: NotRequired[ThresholdMode]

How the threshold is applied to query results.

warning_threshold instance-attribute

warning_threshold: NotRequired[float]

The value at which the alert enters the WARNING state.