Skip to content

TraceMetricStats

Source code in docs_src/capo_cloudwatchomni/types/trace_metric_stats.py
class TraceMetricStats(TypedDict, closed=True):
    name: "capo_cloudwatchomni.types.trace_metric_name.TraceMetricName"
    """The metric these statistics are for."""
    version: "int"
    """The version of the metric's definition. Two runs' stats are comparable only at equal versions."""
    count: "int"
    """The number of cases with spans that had a value. The statistics are computed over these cases."""
    mean: NotRequired["float"]
    """The mean across the cases. Absent when count is 0."""
    p50: NotRequired["float"]
    """The median across the cases. Absent when count is 0."""
    p90: NotRequired["float"]
    """The 90th percentile across the cases. Absent when count is 0."""

count instance-attribute

count: int

The number of cases with spans that had a value. The statistics are computed over these cases.

mean instance-attribute

mean: NotRequired[float]

The mean across the cases. Absent when count is 0.

name instance-attribute

The metric these statistics are for.

p50 instance-attribute

p50: NotRequired[float]

The median across the cases. Absent when count is 0.

p90 instance-attribute

p90: NotRequired[float]

The 90th percentile across the cases. Absent when count is 0.

version instance-attribute

version: int

The version of the metric's definition. Two runs' stats are comparable only at equal versions.