Allow hidden templated vars

Change-Id: Id74fe2a8a7b7156e045fd0b1d3f232ac05964f53
This commit is contained in:
akrzos 2018-02-09 14:05:29 -05:00
parent 80fd8c8fe1
commit caad52ae85
3 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ class Query(Base):
v.Required('query', default=''): v.All(str),
v.Required('refresh', default=False): v.All(bool),
v.Optional('datasource'): v.All(str),
v.Optional('hide'): v.All(int, v.Range(min=0, max=2)),
}
query.update(self.base)
return v.Schema(query)

View File

@ -52,6 +52,7 @@
"list": [
{
"datasource": "graphite",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "hostname",

View File

@ -5,6 +5,7 @@ dashboard:
datasource: graphite
query: node*
refresh: true
hide: 0
title: New dashboard
rows:
- title: New row