Struct aws_sdk_lexmodelsv2::operation::list_session_metrics::builders::ListSessionMetricsFluentBuilder
source · pub struct ListSessionMetricsFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to ListSessionMetrics.
Retrieves summary metrics for the user sessions with your bot. The following fields are required:
-
metrics– A list of AnalyticsSessionMetric objects. In each object, use thenamefield to specify the metric to calculate, thestatisticfield to specify whether to calculate theSum,Average, orMaxnumber, and theorderfield to specify whether to sort the results inAscendingorDescendingorder. -
startDateTimeandendDateTime– Define a time range for which you want to retrieve results.
Of the optional fields, you can organize the results in the following ways:
-
Use the
filtersfield to filter the results, thegroupByfield to specify categories by which to group the results, and thebinByfield to specify time intervals by which to group the results. -
Use the
maxResultsfield to limit the number of results to return in a single response and thenextTokenfield to return the next batch of results if the response does not return the full set of results.
Note that an order field exists in both binBy and metrics. Currently, you can specify it in either field, but not in both.
Implementations§
source§impl ListSessionMetricsFluentBuilder
impl ListSessionMetricsFluentBuilder
sourcepub fn as_input(&self) -> &ListSessionMetricsInputBuilder
pub fn as_input(&self) -> &ListSessionMetricsInputBuilder
Access the ListSessionMetrics as a reference.
sourcepub async fn send(
self
) -> Result<ListSessionMetricsOutput, SdkError<ListSessionMetricsError, HttpResponse>>
pub async fn send( self ) -> Result<ListSessionMetricsOutput, SdkError<ListSessionMetricsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<ListSessionMetricsOutput, ListSessionMetricsError, Self>
pub fn customize( self ) -> CustomizableOperation<ListSessionMetricsOutput, ListSessionMetricsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListSessionMetricsPaginator
pub fn into_paginator(self) -> ListSessionMetricsPaginator
Create a paginator for this request
Paginators are used by calling send().await which returns a PaginationStream.
sourcepub fn bot_id(self, input: impl Into<String>) -> Self
pub fn bot_id(self, input: impl Into<String>) -> Self
The identifier for the bot for which you want to retrieve session metrics.
sourcepub fn set_bot_id(self, input: Option<String>) -> Self
pub fn set_bot_id(self, input: Option<String>) -> Self
The identifier for the bot for which you want to retrieve session metrics.
sourcepub fn get_bot_id(&self) -> &Option<String>
pub fn get_bot_id(&self) -> &Option<String>
The identifier for the bot for which you want to retrieve session metrics.
sourcepub fn start_date_time(self, input: DateTime) -> Self
pub fn start_date_time(self, input: DateTime) -> Self
The date and time that marks the beginning of the range of time for which you want to see session metrics.
sourcepub fn set_start_date_time(self, input: Option<DateTime>) -> Self
pub fn set_start_date_time(self, input: Option<DateTime>) -> Self
The date and time that marks the beginning of the range of time for which you want to see session metrics.
sourcepub fn get_start_date_time(&self) -> &Option<DateTime>
pub fn get_start_date_time(&self) -> &Option<DateTime>
The date and time that marks the beginning of the range of time for which you want to see session metrics.
sourcepub fn end_date_time(self, input: DateTime) -> Self
pub fn end_date_time(self, input: DateTime) -> Self
The date and time that marks the end of the range of time for which you want to see session metrics.
sourcepub fn set_end_date_time(self, input: Option<DateTime>) -> Self
pub fn set_end_date_time(self, input: Option<DateTime>) -> Self
The date and time that marks the end of the range of time for which you want to see session metrics.
sourcepub fn get_end_date_time(&self) -> &Option<DateTime>
pub fn get_end_date_time(&self) -> &Option<DateTime>
The date and time that marks the end of the range of time for which you want to see session metrics.
sourcepub fn metrics(self, input: AnalyticsSessionMetric) -> Self
pub fn metrics(self, input: AnalyticsSessionMetric) -> Self
Appends an item to metrics.
To override the contents of this collection use set_metrics.
A list of objects, each of which contains a metric you want to list, the statistic for the metric you want to return, and the method by which to organize the results.
sourcepub fn set_metrics(self, input: Option<Vec<AnalyticsSessionMetric>>) -> Self
pub fn set_metrics(self, input: Option<Vec<AnalyticsSessionMetric>>) -> Self
A list of objects, each of which contains a metric you want to list, the statistic for the metric you want to return, and the method by which to organize the results.
sourcepub fn get_metrics(&self) -> &Option<Vec<AnalyticsSessionMetric>>
pub fn get_metrics(&self) -> &Option<Vec<AnalyticsSessionMetric>>
A list of objects, each of which contains a metric you want to list, the statistic for the metric you want to return, and the method by which to organize the results.
sourcepub fn bin_by(self, input: AnalyticsBinBySpecification) -> Self
pub fn bin_by(self, input: AnalyticsBinBySpecification) -> Self
Appends an item to binBy.
To override the contents of this collection use set_bin_by.
A list of objects, each of which contains specifications for organizing the results by time.
sourcepub fn set_bin_by(self, input: Option<Vec<AnalyticsBinBySpecification>>) -> Self
pub fn set_bin_by(self, input: Option<Vec<AnalyticsBinBySpecification>>) -> Self
A list of objects, each of which contains specifications for organizing the results by time.
sourcepub fn get_bin_by(&self) -> &Option<Vec<AnalyticsBinBySpecification>>
pub fn get_bin_by(&self) -> &Option<Vec<AnalyticsBinBySpecification>>
A list of objects, each of which contains specifications for organizing the results by time.
sourcepub fn group_by(self, input: AnalyticsSessionGroupBySpecification) -> Self
pub fn group_by(self, input: AnalyticsSessionGroupBySpecification) -> Self
Appends an item to groupBy.
To override the contents of this collection use set_group_by.
A list of objects, each of which specifies how to group the results. You can group by the following criteria:
-
ConversationEndState– The final state of the conversation. The possible end states are detailed in Key definitions in the user guide. -
LocaleId– The unique identifier of the bot locale.
sourcepub fn set_group_by(
self,
input: Option<Vec<AnalyticsSessionGroupBySpecification>>
) -> Self
pub fn set_group_by( self, input: Option<Vec<AnalyticsSessionGroupBySpecification>> ) -> Self
A list of objects, each of which specifies how to group the results. You can group by the following criteria:
-
ConversationEndState– The final state of the conversation. The possible end states are detailed in Key definitions in the user guide. -
LocaleId– The unique identifier of the bot locale.
sourcepub fn get_group_by(&self) -> &Option<Vec<AnalyticsSessionGroupBySpecification>>
pub fn get_group_by(&self) -> &Option<Vec<AnalyticsSessionGroupBySpecification>>
A list of objects, each of which specifies how to group the results. You can group by the following criteria:
-
ConversationEndState– The final state of the conversation. The possible end states are detailed in Key definitions in the user guide. -
LocaleId– The unique identifier of the bot locale.
sourcepub fn filters(self, input: AnalyticsSessionFilter) -> Self
pub fn filters(self, input: AnalyticsSessionFilter) -> Self
Appends an item to filters.
To override the contents of this collection use set_filters.
A list of objects, each of which describes a condition by which you want to filter the results.
sourcepub fn set_filters(self, input: Option<Vec<AnalyticsSessionFilter>>) -> Self
pub fn set_filters(self, input: Option<Vec<AnalyticsSessionFilter>>) -> Self
A list of objects, each of which describes a condition by which you want to filter the results.
sourcepub fn get_filters(&self) -> &Option<Vec<AnalyticsSessionFilter>>
pub fn get_filters(&self) -> &Option<Vec<AnalyticsSessionFilter>>
A list of objects, each of which describes a condition by which you want to filter the results.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of results to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If the response from the ListSessionMetrics operation contains more results than specified in the maxResults parameter, a token is returned in the response.
Use the returned token in the nextToken parameter of a ListSessionMetrics request to return the next page of results. For a complete set of results, call the ListSessionMetrics operation until the nextToken returned in the response is null.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If the response from the ListSessionMetrics operation contains more results than specified in the maxResults parameter, a token is returned in the response.
Use the returned token in the nextToken parameter of a ListSessionMetrics request to return the next page of results. For a complete set of results, call the ListSessionMetrics operation until the nextToken returned in the response is null.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
If the response from the ListSessionMetrics operation contains more results than specified in the maxResults parameter, a token is returned in the response.
Use the returned token in the nextToken parameter of a ListSessionMetrics request to return the next page of results. For a complete set of results, call the ListSessionMetrics operation until the nextToken returned in the response is null.
Trait Implementations§
source§impl Clone for ListSessionMetricsFluentBuilder
impl Clone for ListSessionMetricsFluentBuilder
source§fn clone(&self) -> ListSessionMetricsFluentBuilder
fn clone(&self) -> ListSessionMetricsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more