Real-Time API 1.0.0

This real-time api provides an endpoint for users to subscribe to the alarm and measurements messages. The messages were buffered in a queue when users disconnected from the server and will be retrived once reconnected.

Servers

  • wss://tds-real-time-api.${REGION}.${STAGE}.savr.saveris.net/web-socketwssreal-time
    Security:
    • HTTP
      • Scheme: bearer

Operations

  • SUB /queue/username/alarms

    Subscribe to this channel to receive the alarm message. NOTE that the username must match the username you used while acquring the token!

    Accepts one of the following messages:

    • #0measurement_alarm

      measurement alarm event

      allOf
      object
      uid: message_metadata

      Examples

    • #1system_alarm

      device/sensor system alarm event

      object
      uid: shared_alarm_schema

      Detailed information about the alarm.

      object
      uid: message_metadata

      Examples

  • SUB /queue/username/measurements

    Subscribe to this channel to receive the measurements message. NOTE that the username must match the username you used while acquring the token!

    Accepts the following message:

    measurements

    measurements

    object
    uid: measurements_schema

    Detailed information about the measurements.

    object
    uid: message_metadata

    Examples

Messages

  • #1measurement_alarm

    measurement alarm event

    allOf
    object
    uid: message_metadata
  • #2system_alarm

    device/sensor system alarm event

    object
    uid: shared_alarm_schema

    Detailed information about the alarm.

    object
    uid: message_metadata
  • #3measurements

    measurements

    object
    uid: measurements_schema

    Detailed information about the measurements.

    object
    uid: message_metadata

Schemas

  • object
    uid: connection_metadata
  • object
    uid: message_metadata
  • object
    uid: shared_alarm_schema

    Detailed information about the alarm.

  • object
    uid: additional_schema_for_measurement_alarm

    fields that only exist in measurement alarm type

  • object
    uid: measurements_schema

    Detailed information about the measurements.

  • content_length
    string
    uid: content_length
  • destination
    string
    uid: destination