less than a minute
MQTT: ia/<customerID>/<location>/<AssetID>/addShift
For Kafka just switch the /
character with a .
This message is send to indicate the start and end of a shift.
key | data type | description |
---|---|---|
timestamp_ms | int64 | unix timestamp of the shift start |
timestamp_ms_end | int64 | optional unix timestamp of the shift end |
A shift with start and end:
{
"timestamp_ms":1589788888888,
"timestamp_ms_end":1589788888888
}
And shift without end:
{
"timestamp_ms":1589788888888
}
{
"$schema": "http://json-schema.org/draft/2019-09/schema",
"$id": "https://learn.umh.app/content/docs/datamodel/messages/scrapCount.json",
"type": "object",
"default": {},
"title": "Root Schema",
"required": [
"timestamp_ms"
],
"properties": {
"timestamp_ms": {
"type": "integer",
"description": "The unix timestamp, of shift start"
},
"timestamp_ms_end": {
"type": "integer",
"description": "The *optional* unix timestamp, of shift end"
}
},
"examples": [
{
"timestamp_ms":1589788888888,
"timestamp_ms_end":1589788888888
},
{
"timestamp_ms":1589788888888
}
]
}