apiVersion: influxdata.com/v2alpha1
kind: Variable
metadata:
  name:  var-query-1
spec:
  name: query var
  description: query var desc
  type: query
  language: flux
  selected:
    - rucket
  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
