Skip to content

PITPolicyRule

Source code in docs_src/capo_drs/types/pit_policy_rule.py
class PITPolicyRule(TypedDict, closed=True):
    rule_id: "capo_drs.types.positive_integer.PositiveInteger"
    """<p>The ID of the rule.</p>"""
    units: "capo_drs.types.pit_policy_rule_units.PITPolicyRuleUnits"
    """<p>The units used to measure the interval and retentionDuration.</p>"""
    interval: "capo_drs.types.strictly_positive_integer.StrictlyPositiveInteger"
    """<p>How often, in the chosen units, a snapshot should be taken.</p>"""
    retention_duration: (
        "capo_drs.types.strictly_positive_integer.StrictlyPositiveInteger"
    )
    """<p>The duration to retain a snapshot for, in the chosen units.</p>"""
    enabled: NotRequired["bool"]
    """<p>Whether this rule is enabled or not.</p>"""

enabled instance-attribute

enabled: NotRequired[bool]

Whether this rule is enabled or not.

interval instance-attribute

How often, in the chosen units, a snapshot should be taken.

retention_duration instance-attribute

retention_duration: StrictlyPositiveInteger

The duration to retain a snapshot for, in the chosen units.

rule_id instance-attribute

rule_id: PositiveInteger

The ID of the rule.

units instance-attribute

The units used to measure the interval and retentionDuration.