API - processed-data


Query the processed data for the given criteria.

Prerequisite

  • the entity code as{entity}, for example, “joe_bloggs”
  • the valid data stream code as {ds}, for example, “jb_sen01_pir”
  • the start timestamp as {from} in ISO 8601 format, null value means not limit the start
  • the send timestamp as {to} in ISO 8601 format, null value means not limit the end

Method

POST

URI

/api/v1/processed-data/query

Request Body

{
    "entity": "joe_bloggs",
    "ds": "jb_sen01_pir",
    "from": "2018-04-05T00:00:00Z",
    "to": "2018-04-05T00:05:00Z"
}

Response Sample

Response Sample:

200 OK
[
    {
        "entity": "joe_bloggs",
        "ds": "jb_sen01_pir",
        "ts": "2018-04-05 00:00:00.000000",
        "value": 14,
        "status": 0
    },
    {
        "entity": "joe_bloggs",
        "ds": "jb_sen01_pir",
        "ts": "2018-04-05 00:05:00.000000",
        "value": 15,
        "status": 0
    }
]