),
)
+ .addLinks([
+ $.addLinkSchema(
+ asDropdown=true,
+ icon='external link',
+ includeVars=true,
+ keepTime=true,
+ tags=[],
+ targetBlank=false,
+ title='Browse Dashboards',
+ tooltip='',
+ type='dashboards',
+ url=''
+ ),
+ ])
+
.addPanels([
$.addRowSchema(false, true, 'Clusters') + { gridPos: { x: 0, y: 1, w: 24, h: 1 } },
$.addStatPanel(
allValues=allValues,
current=current),
+ addLinkSchema(asDropdown,
+ icon,
+ includeVars,
+ keepTime,
+ tags,
+ targetBlank,
+ title,
+ tooltip,
+ type,
+ url)::
+ {
+ asDropdown: asDropdown,
+ icon: icon,
+ includeVars: includeVars,
+ keepTime: keepTime,
+ tags: tags,
+ targetBlank: targetBlank,
+ title: title,
+ tooltip: tooltip,
+ type: type,
+ url: url,
+ },
+
addAnnotationSchema(builtIn,
datasource,
enable,
"hideControls": false,
"id": null,
"iteration": 1525415495309,
- "links": [],
+ "links": [
+ {
+ "asDropdown": true,
+ "icon": "external link",
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [],
+ "targetBlank": false,
+ "title": "Browse Dashboards",
+ "tooltip": "",
+ "type": "dashboards",
+ "url": ""
+ }
+ ],
"panels": [
{
"cacheTimeout": null,
"graphTooltip": 0,
"hideControls": false,
"id": null,
- "links": [ ],
+ "links": [
+ {
+ "asDropdown": true,
+ "icon": "external link",
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [],
+ "targetBlank": false,
+ "title": "Browse Dashboards",
+ "tooltip": "",
+ "type": "dashboards",
+ "url": ""
+ }
+ ],
"panels": [
{
"collapse": false,
title = dashboard_config['title']
assert len(title) > 0, \
"Title not found in '{}'".format(json_file)
- assert len(dashboard_config.get('links', [])) == 0, \
- "Links found in '{}'".format(json_file)
if not uid:
continue
if uid in dashboards: