You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# create a db
curl -G http://127.0.0.1:8086/query --data-urlencode "q=create database mydb"
{"results":[{}]}
# create a continuous query
curl -G http://127.0.0.1:8086/query --data-urlencode "db=mydb" --data-urlencode "q=create continuous query test on mydb BEGIN select count(*) as count into \"10m.test\" from test group by time(10m) END"
{"results":[{}]}
# show the continuous queries
curl -G http://127.0.0.1:8086/query --data-urlencode "db=mydb" --data-urlencode "q=show continuous queries"
{"results":[{"series":[{"name":"mydb","columns":["name","query"],"values":[["test","CREATE CONTINUOUS QUERY test ON mydb BEGIN SELECT count(*) AS count INTO \"mydb\".\"default\".\"10m.test\" FROM \"mydb\".\"default\".test GROUP BY time(10m) END"]]}]}]}
# drop the continuous query - this result doesn't look right
curl -G http://127.0.0.1:8086/query --data-urlencode "db=mydb" --data-urlencode "q=drop continuous query test on mydb"
{}
# show the continuous queries - should be empty
curl -G http://127.0.0.1:8086/query --data-urlencode "db=mydb" --data-urlencode "q=show continuous queries"
{"results":[{"series":[{"name":"mydb","columns":["name","query"],"values":[["test","CREATE CONTINUOUS QUERY test ON mydb BEGIN SELECT count(*) AS count INTO \"mydb\".\"default\".\"10m.test\" FROM \"mydb\".\"default\".test GROUP BY time(10m) END"]]}]}]}
The text was updated successfully, but these errors were encountered:
this is with 0.9.0-rc22
The text was updated successfully, but these errors were encountered: