get latest

get
/latest

http://localhost:8000/ts/:id/latest
This endpoint returns the latest value in the time series.
Request
Response
Request
Path Parameters
id
required
string
id of time series (can contain comma separated list of ids)
Response
200: OK
JSON response
[
{
"timestamp": 1599071502857448,
"tag": [
{
"serial": "A001"
}
],
"value": 43
}
]
Example
Example
curl http://localhost:8000/ts/sensor1/latest
curl http://localhost:8000/ts/sensor1,sensor2/latest