User Tools

Site Tools


api:iptv:basechannel:errorlog

API : IPTV : Base Channel : Errorlog

Introduction

This request will return the last 250 errors on a channel.

Request

URL https://api.telecomx.dk/iptv/basechannel/BASECHANNEL_ID/errorlog
Method DELETE
Access level ADMIN.
Params BASECHANNEL_ID Number Id of the base channel.

Query example

https://api.telecomx.dk/iptv/basechannel/1/errorlog

Response

Array of object with error data.

JSON object
_id ID Unique ID of the error
channel Number Id of the base channel the event relates to.
when Date Date and time the event occured.
type String Type of event:
HEADEND_DOWN - headend is down
HEADEND_UP - headend is up
TRANSCODER_DOWN - transcoder is down
TRANSCODER_UP - transcoder is up
TRANSCODER_RESTART - transcoder has been rebooted
STREAMER_DOWN - streamer is down
STREAMER_UP - streamer is up
ERRORRATE - streamer has input errors
CC_ERRORS - tuner has input CC errors
DOWN - channel is down
UP - channel is up
where String Depends on the type:
DOWN - the place the channel failed - TUNER, DESCRAMBLER, TRANSCODER or STREAMER
CC_ERRORS - always TUNER
ERRORRATE - hostname of the streamer that has the error
STREAMER_DOWN - hostname of the streamer that is down
STREAMER_UP - hostname of the streamer that is up again
HEADEND_DOWN - id of the tangram
TRANSCODER_DOWN - id of the transcoder
TRANSCODER_UP - id of the transcoder
TRANSCODER_RESTART - hostname of the transcoder
data Object Depends on the type
data.before Number Previous CC errors count (only if type is CC_ERRORS)
data.now Number current CC errors count (only if type is CC_ERRORS)
data.before Number Previous error rate count (only if type is ERRORRATE)
data.now Number current error rate count (only if type is ERRORRATE)
data.tangramId Number Id of the tangram (only if type is HEADEND_DOWN or HEADEND_UP)
data.slot Number Id of the slot on the tangram (only if type is HEADEND_DOWN or HEADEND_UP)
data.transcoderId Number Id of the transcoder that is being rebooted
data.gpuId Number Id of the GPU on the transcoder that is being rebooted
data.host String Hostname of the unreachable host (if type is TRANSCODER_DOWN or STREAMER_DOWN)
data.error String Error message (if type is TRANSCODER_DOWN or STREAMER_DOWN)

Example

[
  {
    "_id": "5a2e7dc08a67064e6dbc5eb2",
    "channel": 1,
    "when": "2017-12-11T12:44:48.568Z",
    "type": "UP",
    "where": null
  },
  {
    "_id": "5a2e7db68a67064e6dbc5eb1",
    "channel": 1,
    "when": "2017-12-11T12:44:38.988Z",
    "type": "DOWN",
    "where": "STREAMER",
    "data": [
      {
        "host": "archive2.powernet.tv",
        "reason": "Stream delay > 2s",
        "bitrate": 6787,
        "streamId": "1",
        "delay": 2062
      }
    ]
  },
  {
    "_id": "5a2e7da18a67064e6dbc5ea9",
    "channel": 1,
    "when": "2017-12-11T12:44:17.130Z",
    "type": "ERRORRATE",
    "where": "archive1.powernet.tv",
    "data": {
      "before": 160,
      "now": 515
    }
  }
]

Errors

Error code Message Description
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/iptv/basechannel/errorlog.txt · Last modified: 2017/12/11 14:24 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki