Struct aws_sdk_lexmodelsv2::operation::list_utterance_metrics::builders::ListUtteranceMetricsFluentBuilder
source · pub struct ListUtteranceMetricsFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to ListUtteranceMetrics.
To use this API operation, your IAM role must have permissions to perform the ListAggregatedUtterances operation, which provides access to utterance-related analytics. See Viewing utterance statistics for the IAM policy to apply to the IAM role.
Retrieves summary metrics for the utterances in your bot. The following fields are required:
-
metrics– A list of AnalyticsUtteranceMetric 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 ListUtteranceMetricsFluentBuilder
impl ListUtteranceMetricsFluentBuilder
sourcepub fn as_input(&self) -> &ListUtteranceMetricsInputBuilder
pub fn as_input(&self) -> &ListUtteranceMetricsInputBuilder
Access the ListUtteranceMetrics as a reference.
sourcepub async fn send(
self
) -> Result<ListUtteranceMetricsOutput, SdkError<ListUtteranceMetricsError, HttpResponse>>
pub async fn send( self ) -> Result<ListUtteranceMetricsOutput, SdkError<ListUtteranceMetricsError, 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<ListUtteranceMetricsOutput, ListUtteranceMetricsError, Self>
pub fn customize( self ) -> CustomizableOperation<ListUtteranceMetricsOutput, ListUtteranceMetricsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListUtteranceMetricsPaginator
pub fn into_paginator(self) -> ListUtteranceMetricsPaginator
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 utterance 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 utterance 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 utterance 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 utterance 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 utterance 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 utterance 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 utterance 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 utterance 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 utterance metrics.
sourcepub fn metrics(self, input: AnalyticsUtteranceMetric) -> Self
pub fn metrics(self, input: AnalyticsUtteranceMetric) -> 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<AnalyticsUtteranceMetric>>) -> Self
pub fn set_metrics(self, input: Option<Vec<AnalyticsUtteranceMetric>>) -> 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<AnalyticsUtteranceMetric>>
pub fn get_metrics(&self) -> &Option<Vec<AnalyticsUtteranceMetric>>
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: AnalyticsUtteranceGroupBySpecification) -> Self
pub fn group_by(self, input: AnalyticsUtteranceGroupBySpecification) -> 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:
-
UtteranceText– The transcription of the utterance. -
UtteranceState– The state of the utterance. The possible states are detailed in Key definitions in the user guide.
sourcepub fn set_group_by(
self,
input: Option<Vec<AnalyticsUtteranceGroupBySpecification>>
) -> Self
pub fn set_group_by( self, input: Option<Vec<AnalyticsUtteranceGroupBySpecification>> ) -> Self
A list of objects, each of which specifies how to group the results. You can group by the following criteria:
-
UtteranceText– The transcription of the utterance. -
UtteranceState– The state of the utterance. The possible states are detailed in Key definitions in the user guide.
sourcepub fn get_group_by(
&self
) -> &Option<Vec<AnalyticsUtteranceGroupBySpecification>>
pub fn get_group_by( &self ) -> &Option<Vec<AnalyticsUtteranceGroupBySpecification>>
A list of objects, each of which specifies how to group the results. You can group by the following criteria:
-
UtteranceText– The transcription of the utterance. -
UtteranceState– The state of the utterance. The possible states are detailed in Key definitions in the user guide.
sourcepub fn attributes(self, input: AnalyticsUtteranceAttribute) -> Self
pub fn attributes(self, input: AnalyticsUtteranceAttribute) -> Self
Appends an item to attributes.
To override the contents of this collection use set_attributes.
A list containing attributes related to the utterance that you want the response to return. The following attributes are possible:
-
LastUsedIntent– The last used intent at the time of the utterance.
sourcepub fn set_attributes(
self,
input: Option<Vec<AnalyticsUtteranceAttribute>>
) -> Self
pub fn set_attributes( self, input: Option<Vec<AnalyticsUtteranceAttribute>> ) -> Self
A list containing attributes related to the utterance that you want the response to return. The following attributes are possible:
-
LastUsedIntent– The last used intent at the time of the utterance.
sourcepub fn get_attributes(&self) -> &Option<Vec<AnalyticsUtteranceAttribute>>
pub fn get_attributes(&self) -> &Option<Vec<AnalyticsUtteranceAttribute>>
A list containing attributes related to the utterance that you want the response to return. The following attributes are possible:
-
LastUsedIntent– The last used intent at the time of the utterance.
sourcepub fn filters(self, input: AnalyticsUtteranceFilter) -> Self
pub fn filters(self, input: AnalyticsUtteranceFilter) -> 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<AnalyticsUtteranceFilter>>) -> Self
pub fn set_filters(self, input: Option<Vec<AnalyticsUtteranceFilter>>) -> 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<AnalyticsUtteranceFilter>>
pub fn get_filters(&self) -> &Option<Vec<AnalyticsUtteranceFilter>>
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 ListUtteranceMetrics 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 ListUtteranceMetrics request to return the next page of results. For a complete set of results, call the ListUtteranceMetrics 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 ListUtteranceMetrics 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 ListUtteranceMetrics request to return the next page of results. For a complete set of results, call the ListUtteranceMetrics 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 ListUtteranceMetrics 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 ListUtteranceMetrics request to return the next page of results. For a complete set of results, call the ListUtteranceMetrics operation until the nextToken returned in the response is null.
Trait Implementations§
source§impl Clone for ListUtteranceMetricsFluentBuilder
impl Clone for ListUtteranceMetricsFluentBuilder
source§fn clone(&self) -> ListUtteranceMetricsFluentBuilder
fn clone(&self) -> ListUtteranceMetricsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more