Struct aws_sdk_lexmodelsv2::types::AnalyticsSessionMetric
source · #[non_exhaustive]pub struct AnalyticsSessionMetric {
pub name: AnalyticsSessionMetricName,
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 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: AnalyticsSessionMetricName
The metric for which you want to get session summary statistics.
-
Count
– The number of sessions. -
Success
– The number of sessions that succeeded. -
Failure
– The number of sessions that failed. -
Dropped
– The number of sessions that the user dropped. -
Duration
– The duration of sessions. -
TurnsPerSession
– The number of turns in the sessions. -
Concurrency
– The number of sessions occurring in the same period of time.
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 sessions 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 AnalyticsSessionMetric
impl AnalyticsSessionMetric
sourcepub fn name(&self) -> &AnalyticsSessionMetricName
pub fn name(&self) -> &AnalyticsSessionMetricName
The metric for which you want to get session summary statistics.
-
Count
– The number of sessions. -
Success
– The number of sessions that succeeded. -
Failure
– The number of sessions that failed. -
Dropped
– The number of sessions that the user dropped. -
Duration
– The duration of sessions. -
TurnsPerSession
– The number of turns in the sessions. -
Concurrency
– The number of sessions occurring in the same period of time.
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 sessions 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 AnalyticsSessionMetric
impl AnalyticsSessionMetric
sourcepub fn builder() -> AnalyticsSessionMetricBuilder
pub fn builder() -> AnalyticsSessionMetricBuilder
Creates a new builder-style object to manufacture AnalyticsSessionMetric
.
Trait Implementations§
source§impl Clone for AnalyticsSessionMetric
impl Clone for AnalyticsSessionMetric
source§fn clone(&self) -> AnalyticsSessionMetric
fn clone(&self) -> AnalyticsSessionMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalyticsSessionMetric
impl Debug for AnalyticsSessionMetric
source§impl PartialEq for AnalyticsSessionMetric
impl PartialEq for AnalyticsSessionMetric
source§fn eq(&self, other: &AnalyticsSessionMetric) -> bool
fn eq(&self, other: &AnalyticsSessionMetric) -> bool
self
and other
values to be equal, and is used
by ==
.