#[non_exhaustive]pub struct AnalyticsIntentMetricResult {
pub name: Option<AnalyticsIntentMetricName>,
pub statistic: Option<AnalyticsMetricStatistic>,
pub value: Option<f64>,
}
Expand description
An object containing the results for the intent metric you requested.
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: Option<AnalyticsIntentMetricName>
The metric that you requested. See Key definitions for more details about these metrics.
-
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: Option<AnalyticsMetricStatistic>
The statistic that you requested 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
.
value: Option<f64>
The value of the summary statistic for the metric that you requested.
Implementations§
source§impl AnalyticsIntentMetricResult
impl AnalyticsIntentMetricResult
sourcepub fn name(&self) -> Option<&AnalyticsIntentMetricName>
pub fn name(&self) -> Option<&AnalyticsIntentMetricName>
The metric that you requested. See Key definitions for more details about these metrics.
-
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) -> Option<&AnalyticsMetricStatistic>
pub fn statistic(&self) -> Option<&AnalyticsMetricStatistic>
The statistic that you requested 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
.
source§impl AnalyticsIntentMetricResult
impl AnalyticsIntentMetricResult
sourcepub fn builder() -> AnalyticsIntentMetricResultBuilder
pub fn builder() -> AnalyticsIntentMetricResultBuilder
Creates a new builder-style object to manufacture AnalyticsIntentMetricResult
.
Trait Implementations§
source§impl Clone for AnalyticsIntentMetricResult
impl Clone for AnalyticsIntentMetricResult
source§fn clone(&self) -> AnalyticsIntentMetricResult
fn clone(&self) -> AnalyticsIntentMetricResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalyticsIntentMetricResult
impl Debug for AnalyticsIntentMetricResult
source§impl PartialEq for AnalyticsIntentMetricResult
impl PartialEq for AnalyticsIntentMetricResult
source§fn eq(&self, other: &AnalyticsIntentMetricResult) -> bool
fn eq(&self, other: &AnalyticsIntentMetricResult) -> bool
self
and other
values to be equal, and is used
by ==
.