RunTraceStats
¶
Source code in docs_src/capo_cloudwatchomni/types/run_trace_stats.py
attributes
instance-attribute
¶
attributes: NotRequired[TraceAttributeStatsList]
The values each span attribute took across the cases with spans, up to 20 attributes.
cases_read
instance-attribute
¶
cases_read: NotRequired[int]
The number of cases with a traced turn that were read. All such cases, up to 1,000; beyond that, the 1,000 whose caseId has the smallest SHA-256 hash, or fewer when their turns exceed 10,000 traces.
cases_with_spans
instance-attribute
¶
cases_with_spans: NotRequired[int]
The number of cases read that had at least one of the agent's spans. Every value in attributes and metrics is computed over these cases.
computed_at
instance-attribute
¶
computed_at: NotRequired[datetime]
The time when the stats were computed.
metrics
instance-attribute
¶
metrics: NotRequired[TraceMetricStatsList]
Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.
sampled
instance-attribute
¶
sampled: NotRequired[bool]
Whether the run had more cases with a traced turn than casesRead.
status
instance-attribute
¶
status: TraceStatsStatus
The status of the stats. PENDING from the end of the run until they are computed, usually a minute or two and up to about 15 minutes while the run's spans are still arriving.
status_reason
instance-attribute
¶
status_reason: NotRequired[TraceStatsStatusReason]
Why the stats are UNAVAILABLE. Absent otherwise.