mirror of https://github.com/grafana/grafana.git
100 lines
2.3 KiB
JSON
100 lines
2.3 KiB
JSON
{
|
|
"kind": "Dashboard",
|
|
"apiVersion": "v2beta1",
|
|
"metadata": {
|
|
"name": "test-v2alpha1-groupby-adhoc-vars",
|
|
"creationTimestamp": null
|
|
},
|
|
"spec": {
|
|
"annotations": [],
|
|
"cursorSync": "",
|
|
"elements": {},
|
|
"layout": null,
|
|
"links": [],
|
|
"preload": false,
|
|
"tags": null,
|
|
"timeSettings": {
|
|
"from": "",
|
|
"to": "",
|
|
"autoRefresh": "",
|
|
"autoRefreshIntervals": null,
|
|
"hideTimepicker": false,
|
|
"fiscalYearStartMonth": 0
|
|
},
|
|
"title": "Test: V2alpha1 dashboard with group by and adhoc variables",
|
|
"variables": [
|
|
{
|
|
"kind": "GroupByVariable",
|
|
"group": "prometheus",
|
|
"datasource": {
|
|
"name": "gdev-prometheus"
|
|
},
|
|
"spec": {
|
|
"name": "",
|
|
"current": {
|
|
"text": "text7",
|
|
"value": "value7"
|
|
},
|
|
"options": null,
|
|
"multi": false,
|
|
"label": "Group By Variable",
|
|
"hide": "dontHide",
|
|
"skipUrlSync": false,
|
|
"description": "A group by variable"
|
|
}
|
|
},
|
|
{
|
|
"kind": "AdhocVariable",
|
|
"group": "prometheus",
|
|
"datasource": {
|
|
"name": "datasource-3"
|
|
},
|
|
"spec": {
|
|
"name": "adhocVar",
|
|
"baseFilters": [
|
|
{
|
|
"key": "key1",
|
|
"operator": "=",
|
|
"value": "value1",
|
|
"condition": "AND"
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"operator": "=",
|
|
"value": "value2",
|
|
"condition": "OR"
|
|
}
|
|
],
|
|
"filters": [
|
|
{
|
|
"key": "key3",
|
|
"operator": "=",
|
|
"value": "value3",
|
|
"condition": "AND"
|
|
}
|
|
],
|
|
"defaultKeys": [
|
|
{
|
|
"text": "defaultKey1",
|
|
"value": "defaultKey1",
|
|
"group": "defaultGroup1",
|
|
"expandable": true
|
|
}
|
|
],
|
|
"label": "Adhoc Variable",
|
|
"hide": "dontHide",
|
|
"skipUrlSync": false,
|
|
"description": "An adhoc variable",
|
|
"allowCustomValue": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"conversion": {
|
|
"failed": false,
|
|
"storedVersion": "v2alpha1",
|
|
"error": ""
|
|
}
|
|
}
|
|
} |