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
4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 | |