#[non_exhaustive]pub struct AnalyticsUtteranceMetric {
pub name: AnalyticsUtteranceMetricName,
pub statistic: AnalyticsMetricStatistic,
pub order: Option<AnalyticsSortOrder>,
}
Expand description
Contains the metric and the summary statistic you want to calculate, and the order in which to sort the results, for the utterances across the user sessions with the bot.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: AnalyticsUtteranceMetricName
The metric for which you want to get utterance summary statistics.
-
Count
– The number of utterances. -
Missed
– The number of utterances that Amazon Lex failed to recognize. -
Detected
– The number of utterances that Amazon Lex managed to detect. -
UtteranceTimestamp
– The date and time of the utterance.
statistic: AnalyticsMetricStatistic
The summary statistic to calculate.
-
Sum
– The total count for the category you provide inname
. -
Average
– The total count divided by the number of utterances in the category you provide inname
. -
Max
– The highest count in the category you provide inname
.
order: Option<AnalyticsSortOrder>
Specifies whether to sort the results in ascending or descending order.
Implementations§
source§impl AnalyticsUtteranceMetric
impl AnalyticsUtteranceMetric
sourcepub fn name(&self) -> &AnalyticsUtteranceMetricName
pub fn name(&self) -> &AnalyticsUtteranceMetricName
The metric for which you want to get utterance summary statistics.
-
Count
– The number of utterances. -
Missed
– The number of utterances that Amazon Lex failed to recognize. -
Detected
– The number of utterances that Amazon Lex managed to detect. -
UtteranceTimestamp
– The date and time of the utterance.
sourcepub fn statistic(&self) -> &AnalyticsMetricStatistic
pub fn statistic(&self) -> &AnalyticsMetricStatistic
The summary statistic to calculate.
-
Sum
– The total count for the category you provide inname
. -
Average
– The total count divided by the number of utterances in the category you provide inname
. -
Max
– The highest count in the category you provide inname
.
sourcepub fn order(&self) -> Option<&AnalyticsSortOrder>
pub fn order(&self) -> Option<&AnalyticsSortOrder>
Specifies whether to sort the results in ascending or descending order.
source§impl AnalyticsUtteranceMetric
impl AnalyticsUtteranceMetric
sourcepub fn builder() -> AnalyticsUtteranceMetricBuilder
pub fn builder() -> AnalyticsUtteranceMetricBuilder
Creates a new builder-style object to manufacture AnalyticsUtteranceMetric
.
Trait Implementations§
source§impl Clone for AnalyticsUtteranceMetric
impl Clone for AnalyticsUtteranceMetric
source§fn clone(&self) -> AnalyticsUtteranceMetric
fn clone(&self) -> AnalyticsUtteranceMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalyticsUtteranceMetric
impl Debug for AnalyticsUtteranceMetric
source§impl PartialEq for AnalyticsUtteranceMetric
impl PartialEq for AnalyticsUtteranceMetric
source§fn eq(&self, other: &AnalyticsUtteranceMetric) -> bool
fn eq(&self, other: &AnalyticsUtteranceMetric) -> bool
self
and other
values to be equal, and is used
by ==
.