RelayrtcDocs
Get started
Documentation
REST API v1

Usage response

Understand metrics, buckets and data-quality fields.

On this page

Top-level fields

FieldMeaning
scopeorganizationId, projectId and environmentId.
categoryall, rooms, participants, sfu, turn, signaling, screen-share or streaming; availability depends on the deployed API version.
windowrange, startedAt, endedAt, timezone: UTC and endExclusive: true.
bucketDefinitiongranularity, alignment, partialEdges, durations and events definitions.
metricDefinitionsDefinition per returned metric: unit, aggregation, integer, definition and source.
summaryMetric values for the complete requested window.
bucketsEach bucket contains startedAt, endedAt and metrics.
dataQualityHistory completeness and TURN attribution quality.
serviceUsageOptional service report returned for all/streaming requests; separate from RTC summary and buckets. Requires a matching API release.

Streaming service report

serviceUsage contains window, summary, buckets, per-metric coverage, metricDefinitions, rules, journalStartedAt, historicalCoverage, resources, projects, resourceLimit, resourcesTruncated, deliveryAuthority: 'origin' and pricing: 'unpriced'. Resource and project entries include their own metrics and metric coverage; project and organization viewer peaks are recomputed rather than added.

For category streaming, top-level RTC summary and bucket metrics are empty objects; service values live inside serviceUsage. RTC-only categories omit the service report. Matching Node SDK releases expose it as UsageResponse.serviceUsage?: ServiceUsageReport.

Definitions include category, unit, source, aggregation and attribution. Units include seconds, bytes, byte-seconds, frames, counts and viewers. Durations are clipped across UTC half-open buckets; byte/frame/count events belong to occurrence time. Retained bytes are end-of-window gauges, while storage byte-seconds integrate physical object lifetimes. Coverage is observed, estimated, partial or unavailable. Inspect coverage before treating a numeric zero as measured inactivity.

Viewer seconds estimate recent successful media requests, not proven watched time. Completed origin responses and incomplete transport attempts are separate metrics. Shared buffer storage counts once. These measurements do not define charges or plan allowances. See usage semantics and resource reports.

Metric names

CategoryFieldsUnits
roomsroomsCreated, roomsStarted, roomSeconds, peakConcurrentRoomsCounts and seconds.
participantsparticipantSeconds, participantMinutesDerived, audioParticipantSeconds, videoParticipantSeconds, peakConcurrentParticipants, averageConcurrentParticipantsSeconds, derived minutes and participant counts.
sfusfuIngressBytes, sfuEgressBytesBytes.
turnturnIngressBytes, turnEgressBytes, turnRelaySeconds, turnSessionsBytes, seconds and count.
signalingsignalingConnections, signalingConnectionSeconds, signalingMessagesIn, signalingMessagesOutCounts and seconds.
screen-sharescreenShareSeconds, screenShareIngressBytes, screenShareEgressBytesSeconds and bytes.

Data quality

FieldValues
sessionHistorycomplete or partial.
messageHistorycomplete or partial.
turnTrafficunavailable, partial or authoritative.
mediaDurationsobservation_time.

Do not treat partial or unavailable traffic as a guarantee of no usage.

Time rules

The window uses UTC and an exclusive end. Buckets align to UTC calendar boundaries and are clipped to the requested window. Durations are clipped to each bucket; events are attributed to occurrence time.

participantMinutesDerived is decimal minutes, computed as participantSeconds / 60.