The content of this article is deprecated, and will be removed in the future
addParentToChild
AddParentToChild messages are sent when child products are added to a parent product.
less than a minute
Topic
ia/<customerID>/<location>/<AssetID>/addParentToChild
ia.<customerID>.<location>.<AssetID>.addParentToChild
Usage
This message can be emitted to add a child product to a parent product. It can be sent multiple times, if a parent product is split up into multiple child’s or multiple parents are combined into one child. One example for this if multiple parts are assembled to a single product.
Content
key | data type | description |
---|---|---|
timestamp_ms | int64 | unix timestamp you want to go back from |
childAID | string | the AID of the child product |
parentAID | string | the AID of the parent product |
JSON
Examples
A parent is added to a child:
{
"timestamp_ms":1589788888888,
"childAID":"23948723489",
"parentAID":"4329875"
}
Schema
{
"$schema": "http://json-schema.org/draft/2019-09/schema",
"$id": "https://learn.umh.app/content/docs/architecture/datamodel/messages/scrapCount.json",
"type": "object",
"default": {},
"title": "Root Schema",
"required": [
"timestamp_ms",
"childAID",
"parentAID"
],
"properties": {
"timestamp_ms": {
"type": "integer",
"default": 0,
"minimum": 0,
"title": "The unix timestamp you want to go back from",
"examples": [
1589788888888
]
},
"childAID": {
"type": "string",
"default": "",
"title": "The AID of the child product",
"examples": [
"23948723489"
]
},
"parentAID": {
"type": "string",
"default": "",
"title": "The AID of the parent product",
"examples": [
"4329875"
]
}
},
"examples": [
{
"timestamp_ms":1589788888888,
"childAID":"23948723489",
"parentAID":"4329875"
},
{
"timestamp_ms":1589788888888,
"childAID":"TestChild",
"parentAID":"TestParent"
}
]
}
Producers
- Typically Node-RED
Consumers
Last modified December 19, 2024: Merge pull request #306 from united-manufacturing-hub/feat/eng-1713/rename-data-model-v1 (667ff8b)