Skip to content

AnalyticsSessionMetric

Source code in docs_src/capo_lex_models_v2/types/analytics_session_metric.py
class AnalyticsSessionMetric(TypedDict, closed=True):
    name: "capo_lex_models_v2.types.analytics_session_metric_name.AnalyticsSessionMetricName"
    """<p>The metric for which you want to get session summary statistics.</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>TurnsPerSession</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: (
        "capo_lex_models_v2.types.analytics_metric_statistic.AnalyticsMetricStatistic"
    )
    """<p>The summary statistic 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>"""
    order: NotRequired[
        "capo_lex_models_v2.types.analytics_sort_order.AnalyticsSortOrder"
    ]
    """<p>Specifies whether to sort the results in ascending or descending order.</p>"""

name instance-attribute

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.

order instance-attribute

order: NotRequired[AnalyticsSortOrder]

Specifies whether to sort the results in ascending or descending order.

statistic instance-attribute

The summary statistic 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.