Skip to content

ListObservationsInput

Source code in docs_src/capo_cloudwatchomni/types/list_observations_input.py
class ListObservationsInput(TypedDict, closed=True):
    filters: NotRequired[
        "capo_cloudwatchomni.types.observation_filters.ObservationFilters"
    ]
    """Criteria restricting which observations are returned."""
    max_results: NotRequired["int"]
    """The maximum number of observations to return in a single page. Valid range is 1 to 100. When omitted, the service defaults to 50."""
    next_token: NotRequired[
        "capo_cloudwatchomni.types.pagination_token.PaginationToken"
    ]
    """Pagination token from a previous response, to retrieve the next page."""
    observation_ids: NotRequired[
        "capo_cloudwatchomni.types.observation_id_list.ObservationIdList"
    ]
    """Optional batch-get filter. When set, observations are fetched by ID under the caller's account. Pagination still applies: maxResults bounds the returned observations per page; nextToken cursors through the input ID list. An ID that does not exist, or that the caller is not permitted to read, is omitted from items; compare the IDs you requested against the IDs returned across all pages to find them. observationIds is mutually exclusive with filters: passing filters alongside observationIds returns a ValidationException. Use a follow-up ListObservations call without observationIds for filtered queries."""

filters instance-attribute

filters: NotRequired[ObservationFilters]

Criteria restricting which observations are returned.

max_results instance-attribute

max_results: NotRequired[int]

The maximum number of observations to return in a single page. Valid range is 1 to 100. When omitted, the service defaults to 50.

next_token instance-attribute

next_token: NotRequired[PaginationToken]

Pagination token from a previous response, to retrieve the next page.

observation_ids instance-attribute

observation_ids: NotRequired[ObservationIdList]

Optional batch-get filter. When set, observations are fetched by ID under the caller's account. Pagination still applies: maxResults bounds the returned observations per page; nextToken cursors through the input ID list. An ID that does not exist, or that the caller is not permitted to read, is omitted from items; compare the IDs you requested against the IDs returned across all pages to find them. observationIds is mutually exclusive with filters: passing filters alongside observationIds returns a ValidationException. Use a follow-up ListObservations call without observationIds for filtered queries.