Serge Bazanski | 7d311e9 | 2020-10-10 17:57:44 +0200 | [diff] [blame] | 1 | // This file was generated by https://github.com/grafana/dashboard-spec |
| 2 | |
| 3 | { |
| 4 | new( |
| 5 | hide=0, |
| 6 | includeAll=false, |
| 7 | label=null, |
| 8 | multi=false, |
| 9 | name=null, |
| 10 | query=null, |
| 11 | refresh=1, |
| 12 | regex=null, |
| 13 | skipUrlSync=false, |
| 14 | ):: { |
| 15 | [if hide != null then 'hide']: hide, |
| 16 | [if includeAll != null then 'includeAll']: includeAll, |
| 17 | [if label != null then 'label']: label, |
| 18 | [if multi != null then 'multi']: multi, |
| 19 | [if name != null then 'name']: name, |
| 20 | [if query != null then 'query']: query, |
| 21 | [if refresh != null then 'refresh']: refresh, |
| 22 | [if regex != null then 'regex']: regex, |
| 23 | [if skipUrlSync != null then 'skipUrlSync']: skipUrlSync, |
| 24 | type: 'datasource', |
| 25 | |
| 26 | setCurrent( |
| 27 | selected=false, |
| 28 | text=null, |
| 29 | value=null, |
| 30 | ):: self {} |
| 31 | + { current+: { [if selected != null then 'selected']: selected } } |
| 32 | + { current+: { [if text != null then 'text']: text } } |
| 33 | + { current+: { [if value != null then 'value']: value } }, |
| 34 | |
| 35 | }, |
| 36 | } |