"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/tsdb/cloudwatch/cloudwatch.go" between
grafana-8.0.0.tar.gz and grafana-8.0.1.tar.gz

About: Grafana is a visualization tool for monitoring, metric analytics and dashboards for Graphite, InfluxDB, Prometheus and many more.

cloudwatch.go  (grafana-8.0.0):cloudwatch.go  (grafana-8.0.1)
skipping to change at line 105 skipping to change at line 105
im: im, im: im,
cfg: cfg, cfg: cfg,
sessions: sessions, sessions: sessions,
} }
} }
func NewInstanceSettings() datasource.InstanceFactoryFunc { func NewInstanceSettings() datasource.InstanceFactoryFunc {
return func(settings backend.DataSourceInstanceSettings) (instancemgmt.In stance, error) { return func(settings backend.DataSourceInstanceSettings) (instancemgmt.In stance, error) {
jsonData := struct { jsonData := struct {
Profile string `json:"profile"` Profile string `json:"profile"`
Region string `json:"defaulRegion"` Region string `json:"defaultRegion"`
AssumeRoleARN string `json:"assumeRoleArn"` AssumeRoleARN string `json:"assumeRoleArn"`
ExternalID string `json:"externalId"` ExternalID string `json:"externalId"`
Endpoint string `json:"endpoint"` Endpoint string `json:"endpoint"`
Namespace string `json:"customMetricsNamespaces"` Namespace string `json:"customMetricsNamespaces"`
AuthType string `json:"authType"` AuthType string `json:"authType"`
}{} }{}
err := json.Unmarshal(settings.JSONData, &jsonData) err := json.Unmarshal(settings.JSONData, &jsonData)
if err != nil { if err != nil {
return nil, fmt.Errorf("error reading settings: %w", err) return nil, fmt.Errorf("error reading settings: %w", err)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)