list_insights
¶
list_insights(
entity: InsightEntity,
*,
config_overrides: Optional[OpenSearchClientConfig] = None,
time_range: Optional[InsightTimeRange] = None,
sort_order: Optional[InsightSortOrder] = None,
max_results: Optional[InsightPageSize] = None,
next_token: Optional[String] = None,
) -> ListInsightsResponse
Lists insights for an Amazon OpenSearch Service domain or Amazon Web Services account. Returns a paginated list of insights based on the specified entity, filters, time range, and sort order.
Parameters:
-
entity(InsightEntity) –The entity for which to list insights. Specifies the type and value of the entity, such as a domain name or Amazon Web Services account ID.
-
time_range(Optional[InsightTimeRange], default:None) –The time range for filtering insights, specified as epoch millisecond timestamps.
-
sort_order(Optional[InsightSortOrder], default:None) –The sort order for the results. Possible values are
ASC(ascending) andDESC(descending). -
max_results(Optional[InsightPageSize], default:None) –An optional parameter that specifies the maximum number of results to return. You can use
NextTokento get the next page of results. Valid values are 1 to 500. -
next_token(Optional[String], default:None) –If your initial
ListInsightsoperation returns aNextToken, include the returnedNextTokenin subsequentListInsightsoperations to retrieve the next page of results.
Raises:
-
BaseException–An error occurred while processing the request.
-
DisabledOperationException–An error occured because the client wanted to access an unsupported operation.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
LimitExceededException–An exception for trying to create more than the allowed number of resources or sub-resources.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that doesn't exist.
-
ValidationException–An exception for accessing or deleting a resource that doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_opensearch/_services/open_search.py
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 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 | |