User Tools

Site Tools


api:iptv:device:log

API : IPTV : Device : Log

Introduction

This request will return the logged events for a device.

Request

URL https://api.telecomx.dk/iptv/device/DEVICE_ID/log
Method GET
Access level VIEWER, MANAGER or OWNER if customer has feature IPTVBUSINESS or IPTVPRIVATE
RESELLER if customer has IPTVBUSINESS or IPTVPRIVATE and customer belongs to the reseller.
ADMIN
Param DEVICE_ID Id of the device.
Query offset [optional] Index of first item to return.
limit [optional] Max. number of items to return, 1 - 10000.
date [optional] Date to return items for.
reverse [optional] True to order by newest first.

Query example

https://api.telecomx.dk/iptv/device/12345678901234567890ABCD/log?offset=0&limit=1000&date=2020-01-01T00:00:00.000Z&reverse=true

Response

JSON object
offset Number Index of first item returned.
limit Number Max. number of items returned.
total Number Number of items that can be returned without limit and offset.
log Array List of events.
log[].section String Section of the device that is reporting the event.
log[].message String the event message.
log[].created Date Date and time the event was generated.

Note that properties holding no value may be omitted from the object.

Example

{
  "offset": 0,
  "limit": 1000,
  "total": 2359,
  "log": [
    {
      "section": "CHROMECAST",
      "message": "Playback failed for https://streamer23.powernet.tv/18/tracks-a1/seg-1587010756-516860.m4v?token=5e9ea253e6fa7c034c464c65&t=443719712",
      "created": "2020-01-01T00:00:00.000Z"
    },
    {
       ...
    }
  ]
}

Errors

Error code Message Description
404 deviceId Device not found
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/iptv/device/log.txt · Last modified: 2020/04/21 21:17 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki