LatencyReport
Stage percentiles and ended reasons over the Calls of a window, from stored Turn metrics; a reading of what was stored, not a measurement run.
An object with 15 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
by_agent | array of object | yes | |
calls | integer | yes | Ended Calls in the window. |
ended_reasons | map of integer | yes | The number of ended Calls of the window by ended reason. Every reason is present, so the api fills 0 for a reason no Call ended with, the reasons added in 1.19.0 (canceled, worker_lost), in 1.21.0 (finalize_failed), in 1.22.0 (refused_concurrency, refused_suspended, refused_spend_cap, refused_no_route), in 1.32.0 (recording_announcement_failed, disclosure_failed) in 1.38.0 (refused_unpriced, stage_unpriced) in 1.48.0 (policy_load_failed) in 1.58.0 (workflow_complete, prompt_compose_failed, max_turns) and in 1.61.0 (refused_opted_out, refused_destination, refused_compliance, schedule_expired, busy) included; a reader on an older version that knows fewer reasons must take this version first. |
endpoint_fallback_turns | integer | yes | |
from | string | yes | The start of the window, RFC 3339. |
granularity | AnalyticsGranularity | no | The rollup rows read. Added in 1.57.0 (roadmap slice 2.11); absent from an older api, which a reader treats as unknown. |
groups | array of LatencyGroup | no | One item per group of group_by; empty when the read named none. Added in 1.57.0 (roadmap slice 2.11); absent from an older api, which a reader treats as unknown. |
interrupted_turns | integer | yes | |
object | "latency_report" | yes | |
stage_stats | array of LatencyStageStats | no | Every stage with p50, p90, p95 and p99 from bucket counts, its Turn count and its adherence to the target. Added in 1.57.0 (roadmap slice 2.11); absent from an older api, which a reader treats as unknown. |
stages | object | yes | |
stages.endpoint_ms | Percentiles | yes | |
stages.leading_silence_ms | Percentiles | yes | |
stages.model_first_token_ms | Percentiles | yes | |
stages.stt_final_ms | Percentiles | yes | |
stages.tts_first_byte_ms | Percentiles | yes | |
stages.voice_to_voice_internal_ms | Percentiles | yes | |
to | string | yes | The end of the window, RFC 3339. |
turns | integer | yes | Caller Turns with stage metrics. |
verbose_included | boolean | no | True when the read counted verbose Calls (include_verbose=true). Added in 1.57.0 (roadmap slice 2.11); absent from an older api, which a reader treats as unknown. |
window | AnalyticsWindow | yes |
Used by
The operations whose parameters, request body or responses name this shape directly.