49 lines
1.3 KiB
JSON
49 lines
1.3 KiB
JSON
[
|
|
{
|
|
"apiVersion": "influxdata.com/v2alpha1",
|
|
"kind": "Label",
|
|
"metadata": {
|
|
"name": "label_1"
|
|
}
|
|
},
|
|
{
|
|
"apiVersion": "influxdata.com/v2alpha1",
|
|
"kind": "Task",
|
|
"metadata": {
|
|
"name": "task_UUID"
|
|
},
|
|
"spec": {
|
|
"name": "task_0",
|
|
"description": "desc_0",
|
|
"every": "10m",
|
|
"offset": "15s",
|
|
"query": "from(bucket: \"rucket_1\")\n |> range(start: -5d, stop: -1h)\n |> filter(fn: (r) => r._measurement == \"cpu\")\n |> filter(fn: (r) => r._field == \"usage_idle\")\n |> aggregateWindow(every: 1m, fn: mean)\n |> yield(name: \"mean\")",
|
|
"status": "inactive",
|
|
"associations": [
|
|
{
|
|
"kind": "Label",
|
|
"name": "label_1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"apiVersion": "influxdata.com/v2alpha1",
|
|
"kind": "Task",
|
|
"metadata": {
|
|
"name": "task_1"
|
|
},
|
|
"spec": {
|
|
"description": "desc_1",
|
|
"cron": "15 * * * *",
|
|
"query": "from(bucket: \"rucket_1\")\n |> range(start: -5d, stop: -1h)\n |> filter(fn: (r) => r._measurement == \"cpu\")\n |> filter(fn: (r) => r._field == \"usage_idle\")\n |> aggregateWindow(every: 1m, fn: mean)\n |> yield(name: \"mean\")",
|
|
"associations": [
|
|
{
|
|
"kind": "Label",
|
|
"name": "label_1"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|