list_insights
async
¶
list_insights(
entity: InsightEntity,
*,
config_overrides: Optional[AsyncOpenSearchClientConfig] = 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/async_open_search.py
4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 | |