{
"visualizations": {},
"dataSources": {
"ds_ouyeecdW": {
"type": "ds.search",
"options": {
"enableSmartSources": true,
"query": "| makeresults\n| eval env = \"$env$\"\n| eval dependent=case(env=\"Q1\", \"DIRECT\", env=\"Q2\", \"DIRECT;20;21;22;23\", env=\"Q3\", \"DIRECT;30;31\", env=\"Q4\", \"DIRECT;40;41;42;43;44\")\n| makemv dependent delim=\";\"\n| mvexpand dependent\n| table dependent"
},
"name": "Search_Dependent_Dropdown"
}
},
"defaults": {
"dataSources": {
"ds.search": {
"options": {
"queryParameters": {
"latest": "$global_time.latest$",
"earliest": "$global_time.earliest$"
}
}
}
}
},
"inputs": {
"input_ZIhOcc3q": {
"options": {
"items": [
{
"label": "Q1",
"value": "Q1"
},
{
"label": "Q2",
"value": "Q2"
},
{
"label": "Q3",
"value": "Q3"
},
{
"label": "Q4",
"value": "Q4"
}
],
"token": "env",
"selectFirstSearchResult": true
},
"title": "Environment",
"type": "input.dropdown"
},
"input_1gjNEk0A": {
"options": {
"items": [],
"token": "dependent",
"selectFirstSearchResult": true
},
"title": "Dependent Dropdown",
"type": "input.dropdown",
"dataSources": {
"primary": "ds_ouyeecdW"
}
},
"input_Ih820ou2": {
"options": {
"defaultValue": "-24h@h,now",
"token": "global_time"
},
"title": "Time Range Input Title",
"type": "input.timerange"
}
},
"layout": {
"type": "grid",
"structure": [],
"globalInputs": [
"input_Ih820ou2",
"input_ZIhOcc3q",
"input_1gjNEk0A"
]
},
"description": "",
"title": "Dependent Dropdown Example"
}