list_observations
¶
list_observations(
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = None,
filters: Optional[ObservationFilters] = None,
max_results: Optional[int] = None,
next_token: Optional[PaginationToken] = None,
observation_ids: Optional[ObservationIdList] = None,
) -> ListObservationsOutput
This operation is part of Observations, which is in preview release for Amazon CloudWatch Omni and is subject to change. Lists observations matching the given filters.
Parameters:
-
filters(Optional[ObservationFilters], default:None) –Criteria restricting which observations are returned.
-
max_results(Optional[int], default:None) –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(Optional[PaginationToken], default:None) –Pagination token from a previous response, to retrieve the next page.
-
observation_ids(Optional[ObservationIdList], default:None) –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.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List the most severe open observations The following example lists observations, filtered to the HIGH severity in the ACTIVE status, most recently updated first. Payloads are shown as JSON; on the wire they are CBOR-encoded.
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 | |