Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Messages in the Streaming API are "flattened" for easier processing.  Consumers should parse the "packetType" property first and then handle the message accordingly.

Property NameValue TypeDescriptionAlways Present
eventUuidStringA unique value generated on initial VIOLATION or ENTER event - corresponding CLEAR or EXIT events will have same valueYes
projectIdNumberThe project identifier this location was generated forYes
policyIdNumberThe unique identifier for the policyYes
blufiIdNumberThe blufi device id of the Blufi that supplied the data.Yes
uniqueDeviceIDStringThe beacon deviceId if there is a beacon involved in the policyNo
oldStateStringThe previous event stateYes
newStateStringThe new/current event stateYes
valueStringThe value observed for violations - implementation of this value depends on policy typeYes
policyObjectA JSON representation of the target PolicyYes
timestampNumberTimestamp value with millisecond accuracy for the first packet that moved the device into violationYes
timestampClearedNumberTimestamp with millisecond accuracy for when the first packet that moved the event state to CLEARED or EXIT state.No

Example Packets

Note:  Properties not supported by the example packet type are omitted.  Fields defined above as "Always Present" should never be null, other fields may be null.

...