Allow dashboards to be tagged
Change-Id: Ie1a7db10726a9de924a2a8fe262d2c9550d42fd5
This commit is contained in:
parent
1f7fcdd161
commit
4711e038ae
@ -25,6 +25,7 @@ class Dashboard(object):
|
||||
v.Required('timezone', default='utc'): v.Any('browser', 'utc'),
|
||||
v.Required('title'): v.All(str, v.Length(min=1)),
|
||||
v.Optional('id'): int,
|
||||
v.Optional('tags'): [v.Any(str, v.Length(min=1))],
|
||||
v.Optional('time'): {
|
||||
v.Required('from'): v.Any(v.Datetime(), str),
|
||||
v.Required('to'): v.Any(v.Datetime(), str),
|
||||
|
16
tests/schema/fixtures/dashboard-0024.json
Normal file
16
tests/schema/fixtures/dashboard-0024.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"dashboard": {
|
||||
"new-dashboard": {
|
||||
"rows": [],
|
||||
"tags": [
|
||||
"test_tag"
|
||||
],
|
||||
"templating": {
|
||||
"enabled": false,
|
||||
"list": []
|
||||
},
|
||||
"timezone": "utc",
|
||||
"title": "New dashboard"
|
||||
}
|
||||
}
|
||||
}
|
4
tests/schema/fixtures/dashboard-0024.yaml
Normal file
4
tests/schema/fixtures/dashboard-0024.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
dashboard:
|
||||
title: New dashboard
|
||||
tags:
|
||||
- test_tag
|
Loading…
x
Reference in New Issue
Block a user