Timeseries
Timeseries data can be pushed periodically/on demand.
Endpoint : POST /iot/api/v4/timeseries/<agent-link-name>/push
- Data can be pushed in predefined format or in custom format.
Request body - Predefined Format
- Sample
{ "agent": "agent-name", "uniqueId": "mpan / dir number", //unique identification name to identify the parent asset or meter or device "version": 3, "publishType": 6, // 6 for periodical push, 3 for on demand push "ts_sec": 1691582400, // data poll/push time in seconds "data": [ { "name": "point-name-1", "value": 10 }, { "name": "point-name-2", "value": 10 } ]}
Request body - Custom Format
- When using a custom data format, you must transform your data to match the predefined format structure shown above.
- This transformation can be accomplished using a transform script that converts your custom data structure into the required format with fields such as
agent
,uniqueId
,version
,publishType
,ts_sec
, and thedata
array containing point names and values.