endOrder
EndOrder messages are sent whenever a new product is produced.
less than a minute
Topic
ia/<customerID>/<location>/<AssetID>/endOrder
ia.<customerID>.<location>.<AssetID>.endOrder
Usage
A message is sent each time a new product is produced.
Content
key | data type | description |
---|---|---|
timestamp_ms | int64 | unix timestamp of message creation |
order_id | int64 | current order name |
See also notes regarding adding products and orders in /addOrder
JSON
Examples
The order “test_order” was finished at the shown timestamp.
{
"order_id":"test_order",
"timestamp_ms":1589788888888
}
Schema
{
"$schema": "http://json-schema.org/draft/2019-09/schema",
"$id": "https://learn.umh.app/content/docs/architecture/datamodel/messages/endOrder.json",
"type": "object",
"default": {},
"title": "Root Schema",
"required": [
"order_id",
"timestamp_ms"
],
"properties": {
"timestamp_ms": {
"type": "integer",
"description": "The unix timestamp, of shift start"
},
"order_id": {
"type": "string",
"default": "",
"title": "The order id of the order",
"examples": [
"test_order",
"HA16/4889"
]
}
},
"examples": [{
"order_id": "HA16/4889",
"timestamp_ms":1589788888888
},{
"product_id":"test",
"timestamp_ms":1589788888888
}]
}
Producers
- Typically Node-RED
Consumers
Last modified May 5, 2023: feat: finishing touches (1147002)