Allow dashboards to be tagged

Change-Id: Ie1a7db10726a9de924a2a8fe262d2c9550d42fd5
This commit is contained in:
akrzos 2018-02-07 16:02:18 -05:00
parent 1f7fcdd161
commit 4711e038ae
3 changed files with 21 additions and 0 deletions

View File

@ -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),

View File

@ -0,0 +1,16 @@
{
"dashboard": {
"new-dashboard": {
"rows": [],
"tags": [
"test_tag"
],
"templating": {
"enabled": false,
"list": []
},
"timezone": "utc",
"title": "New dashboard"
}
}
}

View File

@ -0,0 +1,4 @@
dashboard:
title: New dashboard
tags:
- test_tag