Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves search metrics data. The data provides a snapshot of how your users interact with your search application and how effective the application is.
Synopsis
- data GetSnapshots = GetSnapshots' {
- maxResults :: Maybe Int
- nextToken :: Maybe Text
- indexId :: Text
- interval :: Interval
- metricType :: MetricType
- newGetSnapshots :: Text -> Interval -> MetricType -> GetSnapshots
- getSnapshots_maxResults :: Lens' GetSnapshots (Maybe Int)
- getSnapshots_nextToken :: Lens' GetSnapshots (Maybe Text)
- getSnapshots_indexId :: Lens' GetSnapshots Text
- getSnapshots_interval :: Lens' GetSnapshots Interval
- getSnapshots_metricType :: Lens' GetSnapshots MetricType
- data GetSnapshotsResponse = GetSnapshotsResponse' {
- nextToken :: Maybe Text
- snapShotTimeFilter :: Maybe TimeRange
- snapshotsData :: Maybe [[Text]]
- snapshotsDataHeader :: Maybe [Text]
- httpStatus :: Int
- newGetSnapshotsResponse :: Int -> GetSnapshotsResponse
- getSnapshotsResponse_nextToken :: Lens' GetSnapshotsResponse (Maybe Text)
- getSnapshotsResponse_snapShotTimeFilter :: Lens' GetSnapshotsResponse (Maybe TimeRange)
- getSnapshotsResponse_snapshotsData :: Lens' GetSnapshotsResponse (Maybe [[Text]])
- getSnapshotsResponse_snapshotsDataHeader :: Lens' GetSnapshotsResponse (Maybe [Text])
- getSnapshotsResponse_httpStatus :: Lens' GetSnapshotsResponse Int
Creating a Request
data GetSnapshots Source #
See: newGetSnapshots
smart constructor.
GetSnapshots' | |
|
Instances
:: Text | |
-> Interval | |
-> MetricType | |
-> GetSnapshots |
Create a value of GetSnapshots
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetSnapshots
, getSnapshots_maxResults
- The maximum number of returned data for the metric.
GetSnapshots
, getSnapshots_nextToken
- 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.
$sel:indexId:GetSnapshots'
, getSnapshots_indexId
- The identifier of the index to get search metrics data.
$sel:interval:GetSnapshots'
, getSnapshots_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.
$sel:metricType:GetSnapshots'
, getSnapshots_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.
Request Lenses
getSnapshots_maxResults :: Lens' GetSnapshots (Maybe Int) Source #
The maximum number of returned data for the metric.
getSnapshots_nextToken :: Lens' GetSnapshots (Maybe Text) Source #
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.
getSnapshots_indexId :: Lens' GetSnapshots Text Source #
The identifier of the index to get search metrics data.
getSnapshots_interval :: Lens' GetSnapshots Interval Source #
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.
getSnapshots_metricType :: Lens' GetSnapshots MetricType Source #
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.
Destructuring the Response
data GetSnapshotsResponse Source #
See: newGetSnapshotsResponse
smart constructor.
GetSnapshotsResponse' | |
|
Instances
newGetSnapshotsResponse Source #
Create a value of GetSnapshotsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetSnapshots
, getSnapshotsResponse_nextToken
- If the response is truncated, Amazon Kendra returns this token, which
you can use in a later request to retrieve the next set of search
metrics data.
$sel:snapShotTimeFilter:GetSnapshotsResponse'
, getSnapshotsResponse_snapShotTimeFilter
- The date-time for the beginning and end of the time window for the
search metrics data.
$sel:snapshotsData:GetSnapshotsResponse'
, getSnapshotsResponse_snapshotsData
- The search metrics data. The data returned depends on the metric type
you requested.
$sel:snapshotsDataHeader:GetSnapshotsResponse'
, getSnapshotsResponse_snapshotsDataHeader
- The column headers for the search metrics data.
$sel:httpStatus:GetSnapshotsResponse'
, getSnapshotsResponse_httpStatus
- The response's http status code.
Response Lenses
getSnapshotsResponse_nextToken :: Lens' GetSnapshotsResponse (Maybe Text) Source #
If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve the next set of search metrics data.
getSnapshotsResponse_snapShotTimeFilter :: Lens' GetSnapshotsResponse (Maybe TimeRange) Source #
The date-time for the beginning and end of the time window for the search metrics data.
getSnapshotsResponse_snapshotsData :: Lens' GetSnapshotsResponse (Maybe [[Text]]) Source #
The search metrics data. The data returned depends on the metric type you requested.
getSnapshotsResponse_snapshotsDataHeader :: Lens' GetSnapshotsResponse (Maybe [Text]) Source #
The column headers for the search metrics data.
getSnapshotsResponse_httpStatus :: Lens' GetSnapshotsResponse Int Source #
The response's http status code.