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 | allValue=null, |
| 6 | datasource=null, |
| 7 | definition=null, |
| 8 | hide=0, |
| 9 | includeAll=false, |
| 10 | label=null, |
| 11 | multi=false, |
| 12 | name=null, |
| 13 | query=null, |
| 14 | refresh=0, |
| 15 | regex=null, |
| 16 | skipUrlSync=false, |
| 17 | sort=0, |
| 18 | tagValuesQuery=null, |
| 19 | tags=null, |
| 20 | tagsQuery=null, |
| 21 | useTags=false, |
| 22 | ):: { |
| 23 | [if allValue != null then 'allValue']: allValue, |
| 24 | [if datasource != null then 'datasource']: datasource, |
| 25 | [if definition != null then 'definition']: definition, |
| 26 | [if hide != null then 'hide']: hide, |
| 27 | [if includeAll != null then 'includeAll']: includeAll, |
| 28 | [if label != null then 'label']: label, |
| 29 | [if multi != null then 'multi']: multi, |
| 30 | [if name != null then 'name']: name, |
| 31 | [if query != null then 'query']: query, |
| 32 | [if refresh != null then 'refresh']: refresh, |
| 33 | [if regex != null then 'regex']: regex, |
| 34 | [if skipUrlSync != null then 'skipUrlSync']: skipUrlSync, |
| 35 | [if sort != null then 'sort']: sort, |
| 36 | [if tagValuesQuery != null then 'tagValuesQuery']: tagValuesQuery, |
| 37 | [if tags != null then 'tags']: tags, |
| 38 | [if tagsQuery != null then 'tagsQuery']: tagsQuery, |
| 39 | [if useTags != null then 'useTags']: useTags, |
| 40 | type: 'query', |
| 41 | |
| 42 | setCurrent( |
| 43 | selected=null, |
| 44 | text=null, |
| 45 | value=null, |
| 46 | ):: self {} |
| 47 | + { current+: { [if selected != null then 'selected']: selected } } |
| 48 | + { current+: { [if text != null then 'text']: text } } |
| 49 | + { current+: { [if value != null then 'value']: value } }, |
| 50 | |
| 51 | }, |
| 52 | } |