mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add apiVersion to datasource settings DTO (#90057)
This commit is contained in:
parent
37a58d15cf
commit
be98ab1111
@ -412,14 +412,15 @@ func (hs *HTTPServer) getFSDataSources(c *contextmodel.ReqContext, availablePlug
|
|||||||
}
|
}
|
||||||
|
|
||||||
dsDTO := plugins.DataSourceDTO{
|
dsDTO := plugins.DataSourceDTO{
|
||||||
ID: ds.ID,
|
ID: ds.ID,
|
||||||
UID: ds.UID,
|
UID: ds.UID,
|
||||||
Type: ds.Type,
|
Type: ds.Type,
|
||||||
Name: ds.Name,
|
Name: ds.Name,
|
||||||
URL: url,
|
URL: url,
|
||||||
IsDefault: ds.IsDefault,
|
IsDefault: ds.IsDefault,
|
||||||
Access: string(ds.Access),
|
Access: string(ds.Access),
|
||||||
ReadOnly: ds.ReadOnly,
|
ReadOnly: ds.ReadOnly,
|
||||||
|
APIVersion: ds.APIVersion,
|
||||||
}
|
}
|
||||||
|
|
||||||
ap, exists := availablePlugins.Get(plugins.TypeDataSource, ds.Type)
|
ap, exists := availablePlugins.Get(plugins.TypeDataSource, ds.Type)
|
||||||
|
@ -191,6 +191,7 @@ type DataSourceDTO struct {
|
|||||||
Module string `json:"module,omitempty"`
|
Module string `json:"module,omitempty"`
|
||||||
JSONData map[string]any `json:"jsonData"`
|
JSONData map[string]any `json:"jsonData"`
|
||||||
ReadOnly bool `json:"readOnly"`
|
ReadOnly bool `json:"readOnly"`
|
||||||
|
APIVersion string `json:"apiVersion,omitempty"`
|
||||||
|
|
||||||
BasicAuth string `json:"basicAuth,omitempty"`
|
BasicAuth string `json:"basicAuth,omitempty"`
|
||||||
WithCredentials bool `json:"withCredentials,omitempty"`
|
WithCredentials bool `json:"withCredentials,omitempty"`
|
||||||
|
Loading…
Reference in New Issue
Block a user