aggregateWindow
This commit is contained in:
parent
a2a588b171
commit
c88102b0ca
1 changed files with 1 additions and 0 deletions
|
@ -12,4 +12,5 @@ from(bucket: "${bucket}")
|
||||||
% if negative:
|
% if negative:
|
||||||
|> map(fn: (r) => ({r with _value: r._value * - 1.0}))
|
|> map(fn: (r) => ({r with _value: r._value * - 1.0}))
|
||||||
% endif
|
% endif
|
||||||
|
|> aggregateWindow(every: v.windowPeriod, fn: mean)
|
||||||
|> yield(name: "mean")
|
|> yield(name: "mean")
|
||||||
|
|
Loading…
Reference in a new issue