GET Equipment/Subscribe?accountId={accountId}&lastMessageId={lastMessageId}

Subscribe to EventStream

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountId

The ID of the target account (default is 0, which will target the account of the user that is used during authentication)

integer

Default value is 0

lastMessageId

Optional. The last MessageId in the response can be used to receive data that is generated during connection interruptions (messages are cached for at least 24 hours)

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of EquipmentRecordDTO
NameDescriptionTypeAdditional information
MessageId

string

None.

EquipmentId

integer

None.

DriverId

integer

None.

Timestamp

date

None.

Signals

Collection of EquipmentSignalDTO

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "MessageId": "sample string 1",
    "EquipmentId": 2,
    "DriverId": 3,
    "Timestamp": "2021-09-27T18:01:00.0188514+02:00",
    "Signals": [
      {
        "SignalId": 1,
        "Name": "sample string 1",
        "Unit": "sample string 2",
        "Value": "sample string 3",
        "Type": "sample string 4"
      },
      {
        "SignalId": 1,
        "Name": "sample string 1",
        "Unit": "sample string 2",
        "Value": "sample string 3",
        "Type": "sample string 4"
      }
    ]
  },
  {
    "MessageId": "sample string 1",
    "EquipmentId": 2,
    "DriverId": 3,
    "Timestamp": "2021-09-27T18:01:00.0188514+02:00",
    "Signals": [
      {
        "SignalId": 1,
        "Name": "sample string 1",
        "Unit": "sample string 2",
        "Value": "sample string 3",
        "Type": "sample string 4"
      },
      {
        "SignalId": 1,
        "Name": "sample string 1",
        "Unit": "sample string 2",
        "Value": "sample string 3",
        "Type": "sample string 4"
      }
    ]
  }
]