graphs
This commit is contained in:
parent
d7e5483d74
commit
fda17989d3
1 changed files with 1 additions and 1 deletions
|
@ -7,8 +7,8 @@ from(bucket: "${bucket}")
|
|||
% if function == 'derivative':
|
||||
|> derivative(nonNegative: true)
|
||||
% endif
|
||||
|> aggregateWindow(every: duration(v: int(v: v.windowPeriod)*${resolution}), fn: mean, createEmpty: false)
|
||||
% if negative:
|
||||
|> map(fn: (r) => ({r with _value: r._value * - 1.0}))
|
||||
% endif
|
||||
|> aggregateWindow(every: duration(v: int(v: v.windowPeriod)*${resolution}), fn: mean, createEmpty: false)
|
||||
|> yield(name: "mean")
|
||||
|
|
Loading…
Reference in a new issue