Skip to content

Commit

Permalink
Update notify/rocketchat/rocketchat.go
Browse files Browse the repository at this point in the history
Co-authored-by: George Robinson <[email protected]>
Signed-off-by: gotjosh <[email protected]>
  • Loading branch information
gotjosh and grobinson-grafana authored Oct 23, 2024
1 parent 6753353 commit 3639056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notify/rocketchat/rocketchat.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (n *Notifier) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
if err := json.NewEncoder(&buf).Encode(body); err != nil {
return false, err
}
url := fmt.Sprintf("%s/%s", n.conf.APIURL.String(), "api/v1/chat.postMessage")
url := n.conf.APIURL.JoinPath("api/v1/chat.postMessage").String()
resp, err := n.postJSONFunc(ctx, n.client, url, &buf)
if err != nil {
return true, notify.RedactURL(err)
Expand Down

0 comments on commit 3639056

Please sign in to comment.