This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Description
curl -d "select('requests_latency_seconds_count').where('role=0').from('2019-01-31T00:00:00+01:00',to='2019-02-01T00:00:00+01:00').finite().sampleBy(1h,last).group(sum).window(delta, 0, 1)" https://DESC:[email protected]/v0/query
{"error":"Cannot parsed query: Error when parsing "to" in "from" function, this variable isn't declared at line 1, char 91"}
quick fix resolution (removing the to= instruction) see below:
curl -d "select('requests_latency_seconds_count').where('role=0').from('2019-01-31T00:00:00+01:00', '2019-02-01T00:00:00+01:00').finite().sampleBy(1h,last).group(sum).window(delta, 0, 1)" https://DESC:[email protected]/v0/query