#[non_exhaustive]pub struct AnalyticsSessionMetricResult {
pub name: Option<AnalyticsSessionMetricName>,
pub statistic: Option<AnalyticsMetricStatistic>,
pub value: Option<f64>,
}Expand description
An object containing the results for a session 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<AnalyticsSessionMetricName>The metric that you requested.
-
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. -
TurnPersession– The number of turns in the sessions. -
Concurrency– The number of sessions occurring in the same period of time.
statistic: Option<AnalyticsMetricStatistic>The summary 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 sessions 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 AnalyticsSessionMetricResult
impl AnalyticsSessionMetricResult
sourcepub fn name(&self) -> Option<&AnalyticsSessionMetricName>
pub fn name(&self) -> Option<&AnalyticsSessionMetricName>
The metric that you requested.
-
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. -
TurnPersession– The number of turns in the sessions. -
Concurrency– The number of sessions occurring in the same period of time.
sourcepub fn statistic(&self) -> Option<&AnalyticsMetricStatistic>
pub fn statistic(&self) -> Option<&AnalyticsMetricStatistic>
The summary 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 sessions in the category you provide inname. -
Max– The highest count in the category you provide inname.
source§impl AnalyticsSessionMetricResult
impl AnalyticsSessionMetricResult
sourcepub fn builder() -> AnalyticsSessionMetricResultBuilder
pub fn builder() -> AnalyticsSessionMetricResultBuilder
Creates a new builder-style object to manufacture AnalyticsSessionMetricResult.
Trait Implementations§
source§impl Clone for AnalyticsSessionMetricResult
impl Clone for AnalyticsSessionMetricResult
source§fn clone(&self) -> AnalyticsSessionMetricResult
fn clone(&self) -> AnalyticsSessionMetricResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AnalyticsSessionMetricResult
impl Debug for AnalyticsSessionMetricResult
source§impl PartialEq<AnalyticsSessionMetricResult> for AnalyticsSessionMetricResult
impl PartialEq<AnalyticsSessionMetricResult> for AnalyticsSessionMetricResult
source§fn eq(&self, other: &AnalyticsSessionMetricResult) -> bool
fn eq(&self, other: &AnalyticsSessionMetricResult) -> bool
self and other values to be equal, and is used
by ==.