Jetstream API
Event Types

SensorReadingEvent

5min

About

SensorReadingEvent is published when a sensor has provided Jetstream with a new reading or a batch of readings.

Fields

Property

Details

Type

string

The type of Jetstream event.

EventId

string Unique

The ID assigned to the event.

EventTime

string

The time that the event occurred.

The value is expressed in UTC.

This value is expressed in the following format: yyyy-MM-ddTHH:mm:ssZ

Version

int

The Jetstream version of the event.

Device

string

The name of the device.

ReceivedTime

string

The time that the event was received from the device.

The value is expressed in UTC.

This value is expressed in the following format: yyyy-MM-ddTHH:mm:ssZ

SensorReadings

array(json object)

The sensor readings returned by the device. Each object in the array contains the properties of Name, Value, and ReadingTime.

Name is name of the sensor generating the reading.

Value is what the sensor read.

ReadingTime is the time that the sensor performed it’s reading. This value is expressed in the following format: yyyy-MM-ddTHH:mm:ssZ.

Example

Published SensorReadingEvent from a RFID Enclosures (Cabinets, Fridges, Freezers)

{ "SensorReadings": [ { "Name": "TemperatureA", "Value": "26", "ReadingTime": "2018-05-19T06:15:46Z" }, { "Name": "TemperatureB", "Value": "26", "ReadingTime": "2018-05-19T06:15:46Z" } ], "Device": "MyDeviceName", "ReceivedTime": "2018-05-19T06:15:47Z", "Type": "SensorReadingEvent", "EventId": "268e039e-8f4d-453c-9cfe-aac78db3ee3a", "EventTime": "2018-05-19T06:15:46Z", "Version": 2 }

Published SensorReadingEvent from a Mobile Case

{ "SensorReadings": [ { "Name": "SignalStrength", "Value": "-67", "ReadingTime": "2018-10-18T06:59:24Z" }, { "Name": "BatteryLevel", "Value": "83", "ReadingTime": "2018-10-18T06:59:24Z" }, { "Name": "TemperatureA", "Value": "24.8", "ReadingTime": "2018-10-18T06:59:24Z" }, { "Name": "Latitude", "Value": "43.031677", "ReadingTime": "2018-10-18T06:59:24Z" }, { "Name": "Longitude", "Value": "-89.421467", "ReadingTime": "2018-10-18T06:59:24Z" }, { "Name": "Range", "Value": "1771", "ReadingTime": "2018-10-18T06:59:24Z" }, { "Name": "Connection", "Value": "LTE", "ReadingTime": "2018-10-18T06:59:24Z" } ], "Device": "MyDeviceName", "ReceivedTime": "2018-10-18T06:59:53Z", "Type": "SensorReadingEvent", "EventId": "7cbe4126-2347-45d5-964e-d93cd7cbd65d", "EventTime": "2018-10-18T06:59:24Z", "Version": 2 }

Version Changes

Addition of the Version property.