Skip to content

Report Plugin

Default base URL: http://localhost:8180, prefix: /report

MethodPathDescription
POST/report/metricsIngest metrics
GET/report/roomsList rooms
GET/report/metrics/{room_id}Room-level aggregate metrics
GET/report/metrics/{room_id}/{user_id}Per-user metrics
GET/report/history/{room_id}Room metrics history
POST /report/metrics
Content-Type: application/json
{
"user_id": "u1",
"room_id": "room-1",
"sdk_version": "1.2.0",
"report_time": 1746616000,
"metrics": [
{
"user_id": "u1",
"streams": [
{
"stream_id": "camera",
"direction": "send",
"video": { "timestamp": 1746616000, "frame_rate": 25, "width": 1280, "height": 720, "bitrate": 1200 },
"audio": { "timestamp": 1746616000, "sample_rate": 48000, "channels": 2, "bitrate": 64 },
"network": { "rtt": 45, "packet_loss": 0.3, "jitter": 8 }
}
]
}
]
}

Field definitions:

FieldTypeRequiredDescription
user_idstringYesReporting user ID
room_idstringYesRoom ID
sdk_versionstringYesSDK version
report_timeint64YesUnix timestamp
metricsobject[]YesUser metric entries

Returns room IDs that currently have metric data.

ParamTypeRequiredDescription
room_idstringYesRoom ID

Returns room aggregate metrics and user metric list.

4) GET /report/metrics/{room_id}/{user_id}

Section titled “4) GET /report/metrics/{room_id}/{user_id}”
ParamTypeRequiredDescription
room_idstringYesRoom ID
user_idstringYesUser ID

Returns latest metrics for one user.

Returns historical snapshots for the room.

{
"code": 0,
"message": "success",
"data": null
}
HTTP StatusScenario
400Invalid JSON payload
404Room or user not found