Skip to content

AnalyticsSessionMetricResult

Source code in docs_src/capo_lex_models_v2/types/analytics_session_metric_result.py
class AnalyticsSessionMetricResult(TypedDict, closed=True):
    name: NotRequired[
        "capo_lex_models_v2.types.analytics_session_metric_name.AnalyticsSessionMetricName"
    ]
    """<p>The metric that you requested.</p> <ul> <li> <p> <code>Count</code> – The number of sessions.</p> </li> <li> <p> <code>Success</code> – The number of sessions that succeeded.</p> </li> <li> <p> <code>Failure</code> – The number of sessions that failed.</p> </li> <li> <p> <code>Dropped</code> – The number of sessions that the user dropped.</p> </li> <li> <p> <code>Duration</code> – The duration of sessions.</p> </li> <li> <p> <code>TurnPersession</code> – The number of turns in the sessions.</p> </li> <li> <p> <code>Concurrency</code> – The number of sessions occurring in the same period of time.</p> </li> </ul>"""
    statistic: NotRequired[
        "capo_lex_models_v2.types.analytics_metric_statistic.AnalyticsMetricStatistic"
    ]
    """<p>The summary statistic that you requested to calculate.</p> <ul> <li> <p> <code>Sum</code> – The total count for the category you provide in <code>name</code>.</p> </li> <li> <p> <code>Average</code> – The total count divided by the number of sessions in the category you provide in <code>name</code>.</p> </li> <li> <p> <code>Max</code> – The highest count in the category you provide in <code>name</code>.</p> </li> </ul>"""
    value: NotRequired[
        "capo_lex_models_v2.types.analytics_metric_value.AnalyticsMetricValue"
    ]
    """<p>The value of the summary statistic for the metric that you requested.</p>"""

name instance-attribute

name: NotRequired[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 instance-attribute

statistic: NotRequired[AnalyticsMetricStatistic]

The summary statistic that you requested to calculate.

  • Sum – The total count for the category you provide in name.

  • Average – The total count divided by the number of sessions in the category you provide in name.

  • Max – The highest count in the category you provide in name.

value instance-attribute

value: NotRequired[AnalyticsMetricValue]

The value of the summary statistic for the metric that you requested.