Skip to content

SloRule

Source code in docs_src/capo_cloudwatchomni/types/slo_rule.py
class SloRule(TypedDict, closed=True):
    slo_id: NotRequired["capo_cloudwatchomni.types.slo_id.SloId"]
    """The SLO the alert is built on. It must be in the same space as the alert, and the caller must be allowed to read it. Required on create; omit on update to keep the current SLO."""
    condition: NotRequired[
        "capo_cloudwatchomni.types.slo_alert_condition.SloAlertCondition"
    ]
    """What makes the alert fire. Exactly one member is set. Required on create; omit on update to keep the current condition. When supplied on update, the condition block is replaced whole."""
    evaluation: NotRequired[
        "capo_cloudwatchomni.types.alert_evaluation.AlertEvaluation"
    ]
    """The evaluation cadence and durations. Required on create; omit on update to keep the current evaluation settings. When supplied on update, the evaluation block is replaced whole."""
    no_data: NotRequired["capo_cloudwatchomni.types.no_data.NoData"]
    """How the alert behaves when no fresh SLO measurement is available. Omit on create to use NODATA. Omit on update to keep the current behavior. When supplied on update, the noData block is replaced whole."""

condition instance-attribute

condition: NotRequired[SloAlertCondition]

What makes the alert fire. Exactly one member is set. Required on create; omit on update to keep the current condition. When supplied on update, the condition block is replaced whole.

evaluation instance-attribute

evaluation: NotRequired[AlertEvaluation]

The evaluation cadence and durations. Required on create; omit on update to keep the current evaluation settings. When supplied on update, the evaluation block is replaced whole.

no_data instance-attribute

no_data: NotRequired[NoData]

How the alert behaves when no fresh SLO measurement is available. Omit on create to use NODATA. Omit on update to keep the current behavior. When supplied on update, the noData block is replaced whole.

slo_id instance-attribute

slo_id: NotRequired[SloId]

The SLO the alert is built on. It must be in the same space as the alert, and the caller must be allowed to read it. Required on create; omit on update to keep the current SLO.