Time Series
This is the message that should be published in regular intervals from the agent to Facilio cloud. It contains live data with point names and values as key value pairs and has publish type 6
#
Timeseries- Sample
- Schema
{ "agent": "agent-name", "uniqueId": "mpan / dir number", "version": 3, "publishType": 6, "publish_ts_sec": 1691584200, // data sending time (optional) "ts_sec": 1691582400, // data poll time "data": [ { "name": "totalEnergyConsumption", "value": 10 }, { "name": "activePowerB", "value": 20 } ] }
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "agent": { "type": "string", "description": "Name of the agent" }, "uniqueId": { "type": "string", "description": "mpan / dir number" }, "data": { "type": "array", "items": [ { "type": "object", "description": "The data array has only one element containing point name and its value as key value pairs" } ] }, "publishType": { "type": "integer", "description": "Publish Type enum", "const": 6 }, "ts_sec": { "type": "integer", "description": "data poll time, timestamp in milliseconds" }, "version": { "type": "integer", "description": "payload version" }, "publish_ts_sec": { "type": "integer", "description": "data sending time, timestamp in milliseconds" } }, "required": [ "agent", "uniqueI", "data", "publishType", "ts_sec", "version" ]}