blob: 0bdaf834a25c14defe1f6d8903779710f0864800 [file] [log] [blame]
Serge Bazanski7d311e92020-10-10 17:57:44 +02001// 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}