get_snapshots
async
¶
get_snapshots(
index_id: IndexId,
interval: Interval,
metric_type: MetricType,
*,
config_overrides: Optional[AsynckendraClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[Integer] = None,
) -> GetSnapshotsResponse
Retrieves search metrics data. The data provides a snapshot of how your users interact with your search application and how effective the application is.
Parameters:
-
index_id(IndexId) –The identifier of the index to get search metrics data.
-
interval(Interval) –The time interval or time window to get search metrics data. The time interval uses the time zone of your index. You can view data in the following time windows:
-
THIS_WEEK: The current week, starting on the Sunday and ending on the day before the current date. -
ONE_WEEK_AGO: The previous week, starting on the Sunday and ending on the following Saturday. -
TWO_WEEKS_AGO: The week before the previous week, starting on the Sunday and ending on the following Saturday. -
THIS_MONTH: The current month, starting on the first day of the month and ending on the day before the current date. -
ONE_MONTH_AGO: The previous month, starting on the first day of the month and ending on the last day of the month. -
TWO_MONTHS_AGO: The month before the previous month, starting on the first day of the month and ending on last day of the month.
-
-
metric_type(MetricType) –The metric you want to retrieve. You can specify only one metric per call.
For more information about the metrics you can view, see Gaining insights with search analytics.
-
next_token(Optional[NextToken], default:None) –If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of search metrics data.
-
max_results(Optional[Integer], default:None) –The maximum number of returned data for the metric.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Kendra service. Please wait a few minutes and try again, or contact Support for help.
-
InvalidRequestException–The input to the request is not valid. Please provide the correct input and try again.
-
ResourceNotFoundException–The resource you want to use doesn’t exist. Please check you have provided the correct resource and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kendra/_services/async_kendra.py
2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 | |