influxdb/pkger/testdata/variables.yml

41 lines
797 B
YAML
Raw Normal View History

apiVersion: influxdata.com/v2alpha1
kind: Variable
metadata:
name: var_query_1
spec:
description: var_query_1 desc
type: query
language: flux
query: |
buckets() |> filter(fn: (r) => r.name !~ /^_/) |> rename(columns: {name: "_value"}) |> keep(columns: ["_value"])
---
apiVersion: influxdata.com/v2alpha1
kind: Variable
metadata:
name: var_query_2
spec:
description: var_query_2 desc
type: query
query: an influxql query of sorts
language: influxql
---
apiVersion: influxdata.com/v2alpha1
kind: Variable
metadata:
name: var_const_3
spec:
description: var_const_3 desc
type: constant
values:
- first val
---
apiVersion: influxdata.com/v2alpha1
kind: Variable
metadata:
name: var_map_4
spec:
description: var_map_4 desc
type: map
values:
k1: v1