Queues
We provide an API to monitor the status of the Packet/Frame-type queues located in the Provider, Media Router, Transcoder, and Publisher sections.
Get Queues Status
Request
GET /v2/internals/queues
Header
Authorization: Basic {credentials}
# Authorization
Credentials for HTTP Basic Authentication created with <AccessToken>Responses
200 Ok
The request has succeeded
Header
Content-Type: application/jsonBody
{
"message": "OK",
"response": [
{
"avgWaitingTime": 13,
"drop": 0,
"id": 100,
"inputPerSecond": 154,
"outputPerSecond": 153,
"peak": 15,
"size": 1,
"threshold": 1000,
"type": "std::shared_ptr<MediaRouteStream>",
"urn": "mngq:v=#default#app:p=imr:n=aw_0"
},
{
"avgWaitingTime": 31,
"drop": 0,
"id": 101,
"inputPerSecond": 472,
"outputPerSecond": 472,
"peak": 74,
"size": 1,
"threshold": 1000,
"type": "std::shared_ptr<MediaRouteStream>",
"urn": "mngq:v=#default#app:p=omr:n=aw_0"
},
{
"avgWaitingTime": 3,
"drop": 0,
"id": 102,
"inputPerSecond": 467,
"outputPerSecond": 467,
"peak": 43,
"size": 1,
"threshold": 500,
"type": "std::shared_ptr<pub::ApplicationWorker::StreamData>",
"urn": "mngq:v=#default#app:p=pub:n=aw-webrtc0"
},
{
"avgWaitingTime": 4,
"drop": 0,
"id": 103,
"inputPerSecond": 476,
"outputPerSecond": 476,
"peak": 44,
"size": 1,
"threshold": 500,
"type": "std::shared_ptr<pub::ApplicationWorker::StreamData>",
"urn": "mngq:v=#default#app:p=pub:n=aw-llhls0"
},
{
"avgWaitingTime": 3,
"drop": 0,
"id": 104,
"inputPerSecond": 467,
"outputPerSecond": 467,
"peak": 43,
"size": 1,
"threshold": 500,
"type": "std::shared_ptr<pub::ApplicationWorker::StreamData>",
"urn": "mngq:v=#default#app:p=pub:n=aw-ovt0"
},
...
]
}401 Unauthorized
Authentication required
Header
WWW-Authenticate: Basic realm=”OvenMediaEngine”Body
{
"message": "[HTTP] Authorization header is required to call API (401)",
"statusCode": 401
}Element
Element
Description
avgWaitingTime
The average waiting time.
drop
The number of dropped messages.
id
A unique identifier.
inputPerSecond
The number of incoming messages per second.
outputPerSecond
The number of outgoing messages per second.
peak
The maximum number of messages reached.
size
The current number of messages.
threshold
The limit for the number of messages.
type
The type of data.
urn
The naming convention in URN (Uniform Resource Name) form.
Queue Resource Naming (URN) Specification
Last updated