Merge "Add 'database' to the datasource schema"
This commit is contained in:
commit
2ff186cae7
|
@ -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
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"datasource": {
|
||||
"new-datasource": {
|
||||
"access": "direct",
|
||||
"database": "foodb",
|
||||
"isDefault": false,
|
||||
"name": "New datasource",
|
||||
"type": "influxdb",
|
||||
"url": "http://example.org"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
datasource:
|
||||
name: New datasource
|
||||
url: http://example.org
|
||||
type: influxdb
|
||||
database: foodb
|
Loading…
Reference in New Issue