mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-14 11:58:04 +00:00
fix(alerting): Update Matrix send endpoint to v3
This commit is contained in:
parent
09c3a6c72b
commit
4b339bca37
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ func (provider *AlertProvider) Send(endpoint *core.Endpoint, alert *alert.Alert,
|
||||||
txnId := randStringBytes(24)
|
txnId := randStringBytes(24)
|
||||||
request, err := http.NewRequest(
|
request, err := http.NewRequest(
|
||||||
http.MethodPut,
|
http.MethodPut,
|
||||||
fmt.Sprintf("%s/_matrix/client/r0/rooms/%s/send/m.room.message/%s?access_token=%s",
|
fmt.Sprintf("%s/_matrix/client/v3/rooms/%s/send/m.room.message/%s?access_token=%s",
|
||||||
config.ServerURL,
|
config.ServerURL,
|
||||||
url.PathEscape(config.InternalRoomID),
|
url.PathEscape(config.InternalRoomID),
|
||||||
txnId,
|
txnId,
|
||||||
|
|
Loading…
Reference in a new issue