Open
Description
if you don't send type
along with this request, it gives an internal error. It should return a helpful message about the missing parameter.
Also, if no type is specified, we should assume flux
.
curl -XPOST http://localhost:9999/api/v2/query/analyze?orgID=$ORG_ID -H 'Authorization: Token $INFLUX_TOKEN"' -d '{
"query": "from(bucket: \"telegraf\") |> range(start: -15s) |> filter(fn: (r) => r._measurement == \"cpu\"))",
"type": "flux"
}'