Activity

activity messages are sent when a new order is added.

This is part of our recommended workflowto create machine states. The data sent here will not be stored in the database automatically, as it will be required to be converted into a state. In the future, the will be a microservice, which converts these automatically.

Topic

MQTT: ia/<customerID>/<location>/<AssetID>/activity

For Kafka just switch the / character with a .

Usage

A message is sent here each time the machine runs or stops.

Content

keydata typedescription
timestamp_msintunix timestamp of message creation
activitybooltrue if asset is currently active, false if asset is currently inactive

JSON

Examples

The asset was active during the timestamp of the message:

{
  "timestamp_ms":1588879689394,
  "activity": true,
}

Schema

Producers

  • Typically Node-RED

Consumers

  • Typically Node-RED