get_snapshots
¶
get_snapshots(
index_id: IndexId,
interval: Interval,
metric_type: MetricType,
*,
config_overrides: Optional[kendraClientConfig] = 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/kendra.py
2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 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 | |