Skip to content

Instantly share code, notes, and snippets.

@SimonRichardson
Last active November 8, 2022 11:23
Show Gist options
  • Save SimonRichardson/bfb9aa00c0bc5a33066e76b53fb4caca to your computer and use it in GitHub Desktop.
Save SimonRichardson/bfb9aa00c0bc5a33066e76b53fb4caca to your computer and use it in GitHub Desktop.
apiVersion: influxdata.com/v2alpha1
kind: Task
metadata:
name: condescending-carver-6e4859
spec:
every: 2m
name: blah3
offset: 1m0s
query: |-
import "system"
// import "strings"
import "sampledata"
data =
sampledata.int()
|> yield(name: "unmodified")
offset = 5m
step = 20s
data
|> range(start: -task.every)
// import "math"
jump = 40s
// import "math"
leap = 50s
status: active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment