Struct aws_sdk_lexmodelsv2::types::AnalyticsIntentMetric
source · #[non_exhaustive]pub struct AnalyticsIntentMetric {
pub name: AnalyticsIntentMetricName,
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 intents in 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: AnalyticsIntentMetricName
The metric for which you want to get intent summary statistics.
-
Count
– The number of times the intent was invoked. -
Success
– The number of times the intent succeeded. -
Failure
– The number of times the intent failed. -
Switched
– The number of times there was a switch to a different intent. -
Dropped
– The number of times the user dropped the intent.
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 intents 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 AnalyticsIntentMetric
impl AnalyticsIntentMetric
sourcepub fn name(&self) -> &AnalyticsIntentMetricName
pub fn name(&self) -> &AnalyticsIntentMetricName
The metric for which you want to get intent summary statistics.
-
Count
– The number of times the intent was invoked. -
Success
– The number of times the intent succeeded. -
Failure
– The number of times the intent failed. -
Switched
– The number of times there was a switch to a different intent. -
Dropped
– The number of times the user dropped the intent.
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 intents 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 AnalyticsIntentMetric
impl AnalyticsIntentMetric
sourcepub fn builder() -> AnalyticsIntentMetricBuilder
pub fn builder() -> AnalyticsIntentMetricBuilder
Creates a new builder-style object to manufacture AnalyticsIntentMetric
.
Trait Implementations§
source§impl Clone for AnalyticsIntentMetric
impl Clone for AnalyticsIntentMetric
source§fn clone(&self) -> AnalyticsIntentMetric
fn clone(&self) -> AnalyticsIntentMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalyticsIntentMetric
impl Debug for AnalyticsIntentMetric
source§impl PartialEq for AnalyticsIntentMetric
impl PartialEq for AnalyticsIntentMetric
source§fn eq(&self, other: &AnalyticsIntentMetric) -> bool
fn eq(&self, other: &AnalyticsIntentMetric) -> bool
self
and other
values to be equal, and is used
by ==
.