This repository was archived by the owner on Jan 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ import (
88
99// ContactPoint represents a Grafana Alerting contact point.
1010type ContactPoint struct {
11- UID string `json:"uid"`
12- Name string `json:"name"`
13- Type string `json:"type"`
14- Settings interface {} `json:"settings"`
15- DisableResolveMessage bool `json:"disableResolveMessage"`
16- Provenance string `json:"provenance"`
11+ UID string `json:"uid"`
12+ Name string `json:"name"`
13+ Type string `json:"type"`
14+ Settings map [ string ] interface {} `json:"settings"`
15+ DisableResolveMessage bool `json:"disableResolveMessage"`
16+ Provenance string `json:"provenance"`
1717}
1818
1919// ContactPoints fetches all contact points.
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ func createContactPoint() ContactPoint {
100100 Name : "slack-receiver-123" ,
101101 Type : "slack" ,
102102 DisableResolveMessage : false ,
103- Settings : map [string ]string {
103+ Settings : map [string ]interface {} {
104104 "recipient" : "@zxcv" ,
105105 "token" : "test-token" ,
106106 "url" : "https://test-url" ,
You can’t perform that action at this time.
0 commit comments