Events
Events associated with any asset can be pushed. It should follow the given schema.
Endpoint : POST /api/v3/iot/data/push
Request body
- Sample
- Schema
{ "agent": "Win-A86F-4D3B-A6D7-C8B4", "publishType": 8, "source": "Block A-FLR-1-Printer-1", "state": "Major", "message": "No paper in Paper Rack", "condition": "Paper Rack", "timestamp": 1610355845268}
{ "$schema": "http://json-schema.org/draft-07/schema#", "properties": { "payload": { "type": "object", "properties": { "agent": { "type": "string", "description": "Name of the agent" }, "publishType": { "type": "number", "const": 8 }, "source": { "type": "string", "description": "Asset name" }, "state": { "type": "string", "enum": ["critical", "major", "minor", "warning", "clear"], "description": "Severity of the event critical being highest and warning being lowest and clear represents normal" }, "condition": { "type": "string", "description": "value to depict the exact entity/part of the asset.t" }, "message": { "type": "string", "description": "short description of the event" }, "timestamp": { "type": "number", "description": "timestamp of the data" } }, "required": [ "agent", "publishType", "source", "state", "message", "timestamp" ] } }, "required": ["payload"]}