Skip to content

Sort

Source code in docs_src/capo_resiliencehub/types/sort.py
class Sort(TypedDict, closed=True):
    field: "capo_resiliencehub.types.string255.String255"
    """<p>Indicates the order in which you want to sort the metrics. By default, the list is sorted in ascending order. To sort the list in descending order, set this field to False.</p>"""
    ascending: NotRequired["capo_resiliencehub.types.boolean_optional.BooleanOptional"]
    """<p>Indicates the name or identifier of the field or attribute that should be used as the basis for sorting the metrics.</p>"""

ascending instance-attribute

ascending: NotRequired[BooleanOptional]

Indicates the name or identifier of the field or attribute that should be used as the basis for sorting the metrics.

field instance-attribute

field: String255

Indicates the order in which you want to sort the metrics. By default, the list is sorted in ascending order. To sort the list in descending order, set this field to False.