Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

RTP Pagination API

Overview

RTP Pagination API provides access to device runtime logs using a time-range based pagination model.
It is designed for efficient retrieval of large volumes of telemetry and log data over specific time intervals.


Key Capabilities

  • Retrieval of device logs within a defined time range
  • Time-based filtering (from/to timestamps)
  • Pagination using configurable record limits
  • Sorting support (ascending or descending order)
  • Efficient handling of large log datasets
  • Stream-like sequential data access

Typical Use Cases

  • Analyzing device behavior within specific time windows
  • Debugging uplink and downlink communication issues
  • Performing network forensics and incident investigation
  • Building historical device activity reports
  • Integrating logs into observability platforms

RTP Pagination API (Device Log)

sortField:

  • fromMillis - fromMillis should be < than toMillis
  • toMillis - time to toMillis should be > than fromMillis
  • limit - Parameter limit should be in range [1; 1000]
  • sortOrder - ASC/DESC
    sorting direction by default - DESC

having both fromMillis and toMillis parameters allows for flexible fetching

GET /api/v2/device/{DEVICE_ID}/log?fromMillis=1673533155881&toMillis=1673533195881&limit=20&sortOrder=DESC
  • fromMillis= time from in milliseconds
  • toMillis = time to in milliseconds
  • limit = number of entries
  • sortOrder = sort order (ASC/DESC)