Types
All system events follow the CloudSpec definition. See the application/json part of the examples section for a full example of an event.
This page will regularly be updated with examples of Hexastate app events.
Keys
- id: a unique ID of the event (UUID/string).
- time: timestamp when the event occurred (string/RFC 3339/ISO).
- source: name of the backend service that triggered the event (string).
- type: the event type (string).
- subject: holds the ID of the object that the event is associated with (UUID/string).
- datacontenttype: describes the event content data type (string).
- data: content of the event (string).
Examples
{
"id":"f70ab0fd-cc2a-4527-928c-f404a93a6b82",
"source": "DS-MONITOR",
"time": "2024-10-11T18:24:14.105823+00:00",
"type": "Factory.device_connection_lost.v1",
"subject": "0e878aba-e0f9-4cb8-8459-df6205b9d3d4",
"specversion": "1.0",
"data": {
"_id": "0e878aba-e0f9-4cb8-8459-df6205b9d3d4",
"organization_id": "28d07f79-70d4-4d55-a7f9-07b86440f6f8",
"organization_name": "Hexastate",
"factory_id": "5ff35f81-5973-4b59-af24-432d0ba9222f",
"factory_name": "Factory 2",
"area_id": "38072fa7-fa4f-423b-85c2-34bec5973bbc",
"area_name": "Area 2",
"production_line_id": "efce895d-9011-4f42-b8d2-e0924878e618",
"production_line_name": "Prod Line 123",
"asset_id": null,
"asset_name": null,
"placement_id": "63dd658a-5cf5-415b-ae7c-c5f4aa25fed1",
"placement_name": null,
"device_id": "0e878aba-e0f9-4cb8-8459-df6205b9d3d4",
"device_serial_number": "demo_power_sensor_123",
"type": "sensor",
"offline_tolerance": 240,
"last_measurement_at": "2024-10-11T14:23:48+00:00",
"device_latest_record_at": "2024-10-11T14:23:48+00:00"
}
}