VocalDocscontracts 1.65.0

TraceSegment

A segment as the api returns it, with the api marks merged in. A turn segment carries its Turn metrics and, from 1.5.0, its cost estimate; stages, providers, quality and cost are null on setup and end.

An object with 12 fields.

Fields

FieldTypeRequiredDescription
costTurnCost or nullnoThe Turn's cost estimate, the same as its Turn metrics carry; null on setup and end and when the Call was not rated. Added in 1.5.0. From 1.29.0 (workspace ADR 0078, decision 7) the api sends it only to a reader that holds usage:read and omits it for any other, such as the viewer role; a reader treats its absence as null.
end_msinteger or nullyesNull when the segment never closed, as when the Call dropped mid-Turn.
kindTraceSegmentKindyes
marksarray of TraceMarkyes
providersTraceProviders or nullyes
qualityTraceQuality or nullyes
schema_version1yes
seqintegeryesThe order of the segment in the trace.
stagesTraceStages or nullyes
start_msintegeryes
truncatedbooleanyesLow-priority marks (STT partials first) were dropped to stay within the bounds.
turn_seqinteger or nullyesThe seq of the Turn a turn segment covers; null for setup and end.