Wrong function in docs (#4180)

sum() function has an incorrect example.
Pointed out by community user : https://community.influxdata.com/t/sum-function-documentation/25631
pull/4160/head^2
Jay Clifford 2022-07-07 18:37:58 +01:00 committed by GitHub
parent b93e8161b2
commit 5cd87a623e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -63,7 +63,7 @@ Input data. Default is piped-forward data (`<-`).
import "sampledata"
sampledata.int()
|> stddev()
|> sum()
```
@ -93,13 +93,14 @@ sampledata.int()
#### Output data
| *tag | _value |
| ---- | ----------------- |
| t1 | 7.063993204979744 |
| *tag | _value |
| ---- | ------- |
| t1 | 51 |
| *tag | _value |
| ---- | ------- |
| t2 | 53 |
| *tag | _value |
| ---- | ----------------- |
| t2 | 9.474527252938094 |
{{% /expand %}}
{{< /expand-wrapper >}}