Add transparent

Graphs can have a "transparent" attribute to make them
... transparent.

Change-Id: I7772943b92a0c46bc8d7cd5ae7255f4de774bdcf
This commit is contained in:
Ian Wienand 2018-06-08 15:26:09 +10:00
parent 59247628c4
commit a5d14a2faf
3 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ class Base(object):
'dashlist', 'graph', 'singlestat', 'text'),
v.Optional('id'): int,
v.Optional('format'): v.Any(self.formats, v.Length(min=1)),
v.Optional('transparent'): v.All(bool),
}
def get_schema(self):

View File

@ -34,6 +34,7 @@
}
],
"title": "no title (click here)",
"transparent": true,
"type": "graph",
"x-axis": true,
"y-axis": true

View File

@ -10,6 +10,7 @@ dashboard:
- title: no title (click here)
type: graph
datasource: graphite
transparent: true
targets:
- target: "stats.gauges.afs.afs01_dfw_openstack_org.part.vicepa.total"
refId: "A"