Implement pull request comments #200.
Co-authored-by: Sebastian Serth <mrserth@users.noreply.github.com>
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
from(bucket: "poseidon/autogen")
|
||||
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|
||||
|> filter(fn: (r) => r["_field"] == "duration")
|
||||
|> keep(columns: ["environment_id"])
|
||||
|> distinct(column: "environment_id")
|
||||
|> range(start: -1y)
|
||||
|> filter(fn: (r) => r["_measurement"] == "poseidon_environments")
|
||||
|> filter(fn: (r) => (not exists r.stage) or contains(value: r["stage"], set: ${stages:json}))
|
||||
|> keep(columns: ["id"])
|
||||
|> distinct(column: "id")
|
||||
|> keep(columns: ["_value"])
|
||||
|
Reference in New Issue
Block a user