Merge "Add 'database' to the datasource schema"

This commit is contained in:
Zuul 2018-07-10 17:04:21 +00:00 committed by Gerrit Code Review
commit 2ff186cae7
3 changed files with 18 additions and 0 deletions

View File

@ -26,5 +26,6 @@ class Datasource(object):
'influxdb'),
v.Required('url'): v.All(str, v.Length(min=1)),
v.Optional('orgId'): int,
v.Optional('database'): v.All(str, v.Length(min=1)),
}
return datasource

View File

@ -0,0 +1,12 @@
{
"datasource": {
"new-datasource": {
"access": "direct",
"database": "foodb",
"isDefault": false,
"name": "New datasource",
"type": "influxdb",
"url": "http://example.org"
}
}
}

View File

@ -0,0 +1,5 @@
datasource:
name: New datasource
url: http://example.org
type: influxdb
database: foodb