Tobias Brunner
301e297d45
All checks were successful
continuous-integration/drone/push Build is passing
41 lines
726 B
Plaintext
41 lines
726 B
Plaintext
{
|
|
default::
|
|
{
|
|
builtIn: 1,
|
|
datasource: '-- Grafana --',
|
|
enable: true,
|
|
hide: true,
|
|
iconColor: 'rgba(0, 211, 255, 1)',
|
|
name: 'Annotations & Alerts',
|
|
type: 'dashboard',
|
|
},
|
|
|
|
/**
|
|
* @name annotation.datasource
|
|
*/
|
|
|
|
datasource(
|
|
name,
|
|
datasource,
|
|
expr=null,
|
|
enable=true,
|
|
hide=false,
|
|
iconColor='rgba(255, 96, 96, 1)',
|
|
tags=[],
|
|
type='tags',
|
|
builtIn=null,
|
|
)::
|
|
{
|
|
datasource: datasource,
|
|
enable: enable,
|
|
[if expr != null then 'expr']: expr,
|
|
hide: hide,
|
|
iconColor: iconColor,
|
|
name: name,
|
|
showIn: 0,
|
|
tags: tags,
|
|
type: type,
|
|
[if builtIn != null then 'builtIn']: builtIn,
|
|
},
|
|
}
|