Skip to content

ExperimentRule

Source code in docs_src/capo_cloudwatchomni/types/experiment_rule.py
class ExperimentRule(TypedDict, closed=True):
    source: "capo_cloudwatchomni.types.rule_source.RuleSource"
    """The origin of the rule. Informational only; it does not change how the rule is applied."""
    name: NotRequired["str"]
    """The name of the rule, from 1 to 256 characters."""
    case_criteria: NotRequired[
        "capo_cloudwatchomni.types.case_criterion_list.CaseCriterionList"
    ]
    """The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics."""
    gates: "capo_cloudwatchomni.types.run_gate_list.RunGateList"
    """The run-level checks the run must meet to pass, from 1 to 20."""
    content_hash: NotRequired["str"]
    """A SHA-256 hash of the rule's caseCriteria and gates, in the form sha256:<64 hex digits>. Output only; ignored on input. Member order and explicit default values do not affect the hash; list order does."""

case_criteria instance-attribute

case_criteria: NotRequired[CaseCriterionList]

The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.

content_hash instance-attribute

content_hash: NotRequired[str]

A SHA-256 hash of the rule's caseCriteria and gates, in the form sha256:<64 hex digits>. Output only; ignored on input. Member order and explicit default values do not affect the hash; list order does.

gates instance-attribute

gates: RunGateList

The run-level checks the run must meet to pass, from 1 to 20.

name instance-attribute

name: NotRequired[str]

The name of the rule, from 1 to 256 characters.

source instance-attribute

source: RuleSource

The origin of the rule. Informational only; it does not change how the rule is applied.