Messages routed through the Event Hub are serialized JSON objects and follow this schema definition, with event specific data being contained as a JSON object within the Content property.
Event Hub object schema
| ModuleID | string ID of the module that generated the message. | ||||||||||||||
object | |||||||||||||||
| |||||||||||||||
| Category | string Category of the Event, common categories are:
| ||||||||||||||
| Type | string Sub-category that further identifies the purpose of the event and is specific to each category. | ||||||||||||||
| Timestamp | string An ISO 8601 style timestamp with 1ms precision of the format | ||||||||||||||
object Event-specific JSON object data. | |||||||||||||||
| |||||||||||||||
{- "ModuleID": "cae534a0-cb29-4d22-a16c-70f764aedbcb",
- "Source": {
- "SiteID": 741,
- "MAC": "00:11:22:33:44:55",
- "GatewayURI": "ZK://501::3F2504E0-4F89-11D3-9A0C-0305E82C3301::UDP::10.0.0.220:10000"
}, - "Category": "HARDWARE",
- "Type": "BATTERY_LEVEL",
- "Timestamp": "",
- "Content": {
- "BatteryLevel": 0.57
}
}