Skip to main content

Timeseries

Timeseries data can be pushed periodically or on demand.


Endpoint: POST /iot/api/v4/timeseries/<agent-link-name>/push


  • Data can be pushed in predefined format or custom format.

Request Body - Predefined Format

{  "agent": "agent-name",  "uniqueId": "mpan / dir number", // unique identification name to identify the parent asset, meter, or device  "version": 3,  "controllerType": 0,  "publishType": 6, // 6 for periodic 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 the data array containing point names and values.