Last active
November 8, 2022 11:03
-
-
Save SimonRichardson/57dcfa608f65ba794eae9c35772191f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: influxdata.com/v2alpha1 | |
kind: Task | |
metadata: | |
name: condescending-carver-6e41231 | |
spec: | |
every: 2m | |
name: test | |
offset: 1m0s | |
query: |- | |
import "system" | |
import "sampledata" | |
option task = { name: "test", every: 2m, offset: 1m} | |
data = | |
sampledata.int() | |
|> yield(name: "unmodified") | |
offset = 5m | |
step = 20s | |
data | |
|> range(start: -task.every) | |
status: active |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment