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) docid\ uxzf6ddof1t2zgzzjh9m6 { 	"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 docid\ zfaaxxwarhrs 208ipdcq { 	"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