Skip to content

Duration

Source code in docs_src/capo_opensearch/types/duration.py
class Duration(TypedDict, closed=True):
    value: NotRequired["capo_opensearch.types.duration_value.DurationValue"]
    """<p>Integer to specify the value of a maintenance schedule duration.</p>"""
    unit: NotRequired["capo_opensearch.types.time_unit.TimeUnit"]
    """<p>The unit of measurement for the duration of a maintenance schedule.</p>"""

unit instance-attribute

unit: NotRequired[TimeUnit]

The unit of measurement for the duration of a maintenance schedule.

value instance-attribute

value: NotRequired[DurationValue]

Integer to specify the value of a maintenance schedule duration.