get range

get
/range/t1/t2

http://localhost:8000/ts/:id/range/:t1/:t2/filter/:name/:compare/:value/:aggregate
get from time series within time range
Request
Response
Request
Path Parameters
id
required
string
id of time series (can contain comma separated list of ids)
t1
required
number
time in microseconds
t2
required
number
time in microseconds
name
optional
string
tag name (can contain comma separated list of names)
compare
optional
string
equality function (equals or contains)
value
optional
string
tag value (can contain comma separated list of values)
aggregate
optional
string
aggregation function (can contain count, sum, min, max, mean, median or sd)
Response
200: OK
JSON response
[
{
"timestamp": 1598882767946261,
"tag": [ { "location": "1" }, { "scientist": "moore" } ],
"value": 25
}
]
Examples
Examples
curl http://localhost:8000/ts/sensor1/range/1545235536095244/1845235536095244
curl http://localhost:8000/ts/sensor1,sensor2/range/1545235536095244/1845235536095244/sum
curl http://localhost:8000/ts/sensor1/range/154523/184523/filter/serial,location/equals/A001,UK
curl http://localhost:8000/ts/sensor1/range/154523553/184523553/filter/serial/equals/A001/max