...
Current streams information can be obtained with /api/stream/list request
API | Request | Response | Response status | |||
---|---|---|---|---|---|---|
WS API |
|
|
| 200 OK 400 Object not found 500 Persist exception | ||||||
REST API |
|
|
| 200 OK 400 Object not found 500 Persist exception |
Where
- node – node identifier (mandatory)
- mediaId – media session identifier
- name – stream name
- age – stream cache record age in milliseconds
- publisher - publisher identifier (for played streams)
- status – stream status (PENDING, PUBLISHING, PLAYING, UNPUBLISHED, STOPPED, FAILED)
- showClosed - show closed streams from cache
- nodeIp - IP address of server monitored
- nodeHostName - hostname of server monitored
Response data are obtained from current metrics cache.
...
Current instantaneous metric values for stream published or played on WCS can be obtained with /api/stream/metrics request
API | Request | Response | Response status | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
WS API |
|
| 200 OK 400 Object not found 500 Persist exception | ||||||||||
REST API |
|
| 200 OK 400 Object not found 500 Persist exception |
Здесь:
- node – node identifier (mandatory)
- mediaId – media session identifier (mandatory)
- limit - messages quantity in cache selection
- offset - cache offset
- time - time stamp
- seq - cache message sequence number
...
Stream history information can be obtained with /api/stream/history request
API | Request | Response | Response status | |||
---|---|---|---|---|---|---|
WS API |
|
|
| 200 OK 400 Object not found 500 Persist exception | |||||||||||
REST API |
|
| 200 OK 400 Object not found 500 Persist exception |
Where
- node – node identifier
- mediaId – media session identifier
- name – stream name
- publisher - publisher identifier (for played streams)
- status – stream status (PENDING, PUBLISHING, PLAYING, UNPUBLISHED, STOPPED, FAILED)
- limit - maximum stream count in DB selection
- offset - offset from stream table beginning
- id - stream identifier in backend server database
- createDate – stream creation date
- endDate – stream termination date
- duration - длительность потока
- subscribers - list of identifiers of subscribers (for published streams)
If node Id is set, the response will contain only that node stream history information. If Id is not set, the response will contain all the streams history on backend server corresponding to the other query criteria.
If maximum stream count in DB selection is set to 0, all stream data will be selected from DB. This query can be terminated by timeout if streams count in DB is too big, so it is not recommended to send the query without limits.