Within custom transformations, is there a way of updating ongoing events in cases where the MQTT messages does not contain an UUID or enough information to build an event-externalId?
In the example messages below I would ideally like to create an event based off the first message, and then update it when the second message is received. Is it possible to do so without an UUID that is contained within both messages?
Events start message:
{
"alarm": {
"data": {
"Name": "logic_cond",
"Source": "logic",
},
"id": "logic",
"message": "TOOL UNCLAMPED",
"state": "active",
"timestamp": "2023-11-08T14:16:41.626645Z"
},
"source": {
"applicationType": "mtc",
"clientID": "asset5",
"ownerID": ""
}
}
Event end message:
{
"alarm": {
"data": {
"Name": "logic_cond",
"Source": "logic",
},
"id": "logic",
"message": "TOOL UNCLAMPED",
"state": "dismissed",
"timestamp": "2023-11-08T14:25:32.116245Z"
},
"source": {
"applicationType": "mtc",
"clientID": "asset5",
"ownerID": ""
}
}
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support