api:iptv:basechannel:stats
Table of Contents
API : IPTV : Base Channel : Statistics
Introduction
This request will return a list of live statistics and configuration data for all base channels.
Request
| URL | https://api.telecomx.dk/iptv/basechannel/stats | ||
|---|---|---|---|
| Method | GET | ||
| Access level | ADMIN. | ||
| Query | mini | Boolean | True if only statistics and not settings should be returned. |
Query example
https://api.telecomx.dk/iptv/basechannel/stats https://api.telecomx.dk/iptv/basechannel/stats?mini=true
Response
Object with an object inside for each channel, where the key is the channel id.
Example
{ "1": { "stats": { "headEnd": { "tuner": 54397, "descrambler": 7315, "snr": 14, "level": -35, "locked": true }, "transcoders": { "0": 5283, "1": 1236, "2": 548, "3": 4775 }, "streamers": { "stbstream1.powernet.tv": [ { "id": "1", "bitrate": 3435, "alive": true, "running": true, "tsDelay": 393, "errorRate": 0, "clientCount": 1, "clientBitrate": 0, "started": "2017-11-30T12:52:06.840Z", "streams": 2, "audio": { "max": -13.2, "mean": -31.1 } } ], "stbstream2.powernet.tv": [ { "id": "1", "bitrate": 3435, "alive": true, "running": true, "tsDelay": 372, "errorRate": 0, "clientCount": 1, "clientBitrate": 0, "started": "2017-11-18T14:02:28.319Z", "streams": 2, "audio": { "max": -13.2, "mean": -31 } } ], "archive1.powernet.tv": [ { "id": "1", "bitrate": 3435, "alive": true, "running": true, "tsDelay": 505, "errorRate": 0, "clientCount": 0, "clientBitrate": 0, "started": "2017-12-07T14:52:41.513Z", "streams": 2, "audio": { "max": -13.2, "mean": -31 } }, { "id": "1l", "bitrate": 4156, "alive": true, "running": true, "tsDelay": 465, "errorRate": 0, "clientCount": 0, "clientBitrate": 0, "started": "2017-12-07T14:52:41.514Z", "streams": 4, "audio": { "max": -13.2, "mean": -31 } } ], "archive2.powernet.tv": [ { "id": "1", "bitrate": 3435, "alive": true, "running": true, "tsDelay": 486, "errorRate": 0, "clientCount": 0, "clientBitrate": 0, "started": "2017-12-05T13:52:20.817Z", "streams": 2, "audio": { "max": -13.2, "mean": -31 } }, { "id": "1l", "bitrate": 4156, "alive": true, "running": true, "tsDelay": 472, "errorRate": 0, "clientCount": 0, "clientBitrate": 0, "started": "2017-12-04T21:21:04.680Z", "streams": 4, "audio": { "max": -13.2, "mean": -31 } } ], "appstream1.powernet.tv": [], "appstream2.powernet.tv": [ { "id": "1", "bitrate": 4156, "alive": true, "running": true, "tsDelay": 398, "errorRate": 0, "clientCount": 1, "clientBitrate": 13596, "started": "2017-12-10T20:50:03.247Z", "streams": 4, "audio": { "max": -13.2, "mean": -31 } } ] } }, "up": true, "stateStart": "2017-12-11T12:44:48.569Z", "settings": { "_id": 1, "stbStreams": [ "http://stbstream1.powernet.tv/1/video.m3u8", "http://stbstream2.powernet.tv/1/video.m3u8" ], "drmStreams": [ "https://appstream1.powernet.tv/1/index.m3u8", "https://appstream2.powernet.tv/1/index.m3u8" ], "epgId": [ "honeybee.1686", "cd.4811", "ritzau.3" ], "name": "DR1", "hd": true, "archive": true, "record": true, "archiveServers": [ "archive1.powernet.tv", "archive2.powernet.tv" ], "nPvrServers": [ "npvr1.powernet.tv", "npvr2.powernet.tv" ], "headEnd": { "id": 2, "tuner": { "module": 2, "port": 1, "config": "DVB-S2", "frequency": 10903, "symbolRate": 25000, "polarization": "Horizontal", "pids": { "1280": { "type": 27, "typeName": "H.264 video", "typeMode": "VIDEO", "ccErrors": 346 }, "3498": { "type": 3, "typeName": "MPEG-1 audio", "typeMode": "AUDIO", "language": [ "dan" ], "ccErrors": 273 }, "6133": { "type": 6, "typeName": "AC-3 audio", "typeMode": "AUDIO", "ccErrors": 206 }, "7522": { "type": 5, "typeName": "MPEG-2 tabled data", "typeMode": "DATA", "ccErrors": 62 }, "7523": { "type": 11, "typeName": "DSM CC U-N messages", "typeMode": "DATA", "ccErrors": 156 } }, "pmt": "296", "pcr": "1280", "ecm": { "pid": "7063", "ca_system_id": "2816" } }, "descrambler": { "module": 5, "card": 3 }, "output": "udp://239.239.1.1:1234", "sid": 4811 }, "transcoders": [ { "id": 1, "input": { "id": 9, "url": "udp://239.239.1.1:1234" }, "coder": { "id": 8, "audioBitrate": 128, "videoFormat": "H.264 VBR", "videoBitrate": 4800, "maxBitrate": 0, "resolution": "1280*720@25p", "pFrame": 12, "bFrame": 3, "audioGain": 0, "h264Profile": "Main", "subtitle": true, "activeBitrate": 0, "cc": false, "deinterlacer": true, "denoiser": false }, "output": "udp://239.1.16.1:1234" }, { "id": 1, "input": { "id": 9, "url": "udp://239.239.1.1:1234" }, "coder": { "id": 7, "audioBitrate": 128, "videoFormat": "H.264 VBR", "videoBitrate": 2000, "maxBitrate": 2800, "resolution": "640*360@25p", "pFrame": 12, "bFrame": 3, "audioGain": 0, "h264Profile": "Main", "subtitle": true, "activeBitrate": 3200, "cc": false, "deinterlacer": true, "denoiser": false }, "output": "udp://239.1.16.101:1234" }, { "id": 26, "input": { "id": 7, "url": "udp://239.239.1.1:1234" }, "coder": { "id": 2, "audioBitrate": 128, "videoFormat": "H.264 VBR", "videoBitrate": 200, "maxBitrate": 800, "resolution": "320*180@25p", "pFrame": 12, "bFrame": 3, "audioGain": 0, "h264Profile": "Main", "activeBitrate": 2000, "subtitle": false, "cc": false, "deinterlacer": true, "denoiser": false }, "output": "udp://239.1.18.1:1234" }, { "id": 26, "input": { "id": 7, "url": "udp://239.239.1.1:1234" }, "coder": { "id": 1, "audioBitrate": 128, "videoFormat": "H.264 VBR", "videoBitrate": 7000, "maxBitrate": 10000, "resolution": "1280*720@50p", "pFrame": 12, "bFrame": 3, "audioGain": 0, "h264Profile": "High", "activeBitrate": 9000, "cc": false, "subtitle": false, "deinterlacer": false, "denoiser": false }, "output": "udp://239.1.18.101:1234" } ], "stbArchiveStreams": [ "http://archive1.powernet.tv/1/video.m3u8", "http://archive2.powernet.tv/1/video.m3u8" ], "drmArchiveStreams": [ "https://archive1.powernet.tv/1l/index.m3u8", "https://archive2.powernet.tv/1l/index.m3u8" ], "archiveForwardScrub": false, "archiveBackwardScrub": false, "archivePause": true, "disableErrorNotification": false } }, { ... } }
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/iptv/basechannel/stats.txt · Last modified: 2020/03/03 12:40 by Per Møller