influxdb/pkger/testdata/variables.json

46 lines
1.1 KiB
JSON

{
"apiVersion": "0.1.0",
"kind": "Package",
"meta": {
"pkgName": "pkg_name",
"pkgVersion": "1",
"description": "pack description"
},
"spec": {
"resources": [
{
"kind": "Variable",
"name": "var_query_1",
"description": "var_query_1 desc",
"type": "query",
"query": "buckets() |> filter(fn: (r) => r.name !~ /^_/) |> rename(columns: {name: \"_value\"}) |> keep(columns: [\"_value\"])",
"language": "flux"
},
{
"kind": "Variable",
"name": "var_query_2",
"description": "var_query_2 desc",
"type": "query",
"query": "an influxql query of sorts",
"language": "influxql"
},
{
"kind": "Variable",
"name": "var_const_3",
"description": "var_const_3 desc",
"type": "constant",
"values": ["first val"]
},
{
"kind": "Variable",
"name": "var_map_4",
"description": "var_map_4 desc",
"type": "map",
"values": {
"k1": "v1"
}
}
]
}
}