OptionaldialectOptionalexternOptionalnowSpecifies the time that should be reported as now in the query.
Default is the server now time.
OptionalparamsKey-value pairs passed as parameters during query execution.
To use parameters in your query, pass a query with params references (in dot notation)--for example:
query: "from(bucket: params.mybucket) |> range(start: params.rangeStart) |> limit(n:1)"
and pass params with the key-value pairs--for example:
params: {
"mybucket": "environment",
"rangeStart": "-30d"
}
During query execution, InfluxDB passes params to your script and substitutes the values.
params, you can't use extern.The query script to execute.
OptionaltypeThe type of query. Must be "flux".
Query InfluxDB with the Flux language