Merge "Allow hidden templated vars"

This commit is contained in:
Zuul 2018-02-16 20:05:28 +00:00 committed by Gerrit Code Review
commit 9cf5fb52a9
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

@ -54,6 +54,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