#[non_exhaustive]pub struct AnalyticsIntentMetricResultBuilder { /* private fields */ }Expand description
A builder for AnalyticsIntentMetricResult.
Implementations§
source§impl AnalyticsIntentMetricResultBuilder
impl AnalyticsIntentMetricResultBuilder
sourcepub fn name(self, input: AnalyticsIntentMetricName) -> Self
pub fn name(self, input: AnalyticsIntentMetricName) -> Self
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 set_name(self, input: Option<AnalyticsIntentMetricName>) -> Self
pub fn set_name(self, input: Option<AnalyticsIntentMetricName>) -> Self
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 get_name(&self) -> &Option<AnalyticsIntentMetricName>
pub fn get_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, input: AnalyticsMetricStatistic) -> Self
pub fn statistic(self, input: AnalyticsMetricStatistic) -> Self
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.
sourcepub fn set_statistic(self, input: Option<AnalyticsMetricStatistic>) -> Self
pub fn set_statistic(self, input: Option<AnalyticsMetricStatistic>) -> Self
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.
sourcepub fn get_statistic(&self) -> &Option<AnalyticsMetricStatistic>
pub fn get_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.
sourcepub fn value(self, input: f64) -> Self
pub fn value(self, input: f64) -> Self
The value of the summary statistic for the metric that you requested.
sourcepub fn set_value(self, input: Option<f64>) -> Self
pub fn set_value(self, input: Option<f64>) -> Self
The value of the summary statistic for the metric that you requested.
sourcepub fn get_value(&self) -> &Option<f64>
pub fn get_value(&self) -> &Option<f64>
The value of the summary statistic for the metric that you requested.
sourcepub fn build(self) -> AnalyticsIntentMetricResult
pub fn build(self) -> AnalyticsIntentMetricResult
Consumes the builder and constructs a AnalyticsIntentMetricResult.
Trait Implementations§
source§impl Clone for AnalyticsIntentMetricResultBuilder
impl Clone for AnalyticsIntentMetricResultBuilder
source§fn clone(&self) -> AnalyticsIntentMetricResultBuilder
fn clone(&self) -> AnalyticsIntentMetricResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AnalyticsIntentMetricResultBuilder
impl Default for AnalyticsIntentMetricResultBuilder
source§fn default() -> AnalyticsIntentMetricResultBuilder
fn default() -> AnalyticsIntentMetricResultBuilder
source§impl PartialEq<AnalyticsIntentMetricResultBuilder> for AnalyticsIntentMetricResultBuilder
impl PartialEq<AnalyticsIntentMetricResultBuilder> for AnalyticsIntentMetricResultBuilder
source§fn eq(&self, other: &AnalyticsIntentMetricResultBuilder) -> bool
fn eq(&self, other: &AnalyticsIntentMetricResultBuilder) -> bool
self and other values to be equal, and is used
by ==.