I try to create a binary file to import all our datasource at one time.
But it return fail.
Could you help me to have a look?
Json:
[
{“name”:“collectd1”,“type”:“influxdb”,“url”:“http://10.11.12.13:8086”,“access”:“proxy”,“isDefault”:true,“database”:“collectd1”,“user”:“grafana”,“password”:“123456”},
{“name”:“collectd2”,“type”:“influxdb”,“url”:“http://10.11.12.13:8086”,“access”:“proxy”,“isDefault”:false,“database”:“collectd2”,“user”:“grafana”,“password”:“123456”},
]
Return:
[
{
“classification”: “DeserializationError”,
“message”: “json: cannot unmarshal array into Go value of type models.AddDataSourceCommand”
},
{
“fieldNames”: [
“Name”
],
“classification”: “RequiredError”,
“message”: “Required”
},
{
“fieldNames”: [
“Type”
],
“classification”: “RequiredError”,
“message”: “Required”
},
{
“fieldNames”: [
“Access”
],
“classification”: “RequiredError”,
“message”: “Required”
}
]