hotfix: updated query example in execute queries guide

pull/1045/head
Scott Anderson 2020-05-15 09:31:03 -06:00
parent 5d31b9c6fb
commit 80aae6a517
1 changed files with 6 additions and 6 deletions

View File

@ -89,9 +89,9 @@ curl http://localhost:9999/api/v2/query?org=my-org -XPOST -sS \
-H 'Accept: application/csv' \
-H 'Content-type: application/vnd.flux' \
-d 'from(bucket:"example-bucket")
|> range(start:-1000h)
|> group(columns:["_measurement"], mode:"by")
|> sum()'
|> range(start: -12h)
|> filter(fn: (r) => r._measurement == "example-measurement"
|> aggregateWindow(every: 1h, fn: mean)'
```
{{% /code-tab-content %}}
@ -103,9 +103,9 @@ curl http://localhost:9999/api/v2/query?org=my-org -XPOST -sS \
-H 'Content-type: application/vnd.flux' \
-H 'Accept-Encoding: gzip' \
-d 'from(bucket:"example-bucket")
|> range(start:-1000h)
|> group(columns:["_measurement"], mode:"by")
|> sum()'
|> range(start: -12h)
|> filter(fn: (r) => r._measurement == "example-measurement"
|> aggregateWindow(every: 1h, fn: mean)'
```
{{% /code-tab-content %}}
{{< /code-tabs-wrapper >}}