mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-22 05:46:53 +00:00
enable templating of hipchat room_id (#1463)
Signed-off-by: Mark Van De Weert <mark.vandeweert@wpengine.com>
This commit is contained in:
parent
8397de1830
commit
080cbe4e23
@ -759,7 +759,8 @@ func (n *Hipchat) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
|
||||
data = n.tmpl.Data(receiverName(ctx, n.logger), groupLabels(ctx, n.logger), as...)
|
||||
tmplText = tmplText(n.tmpl, data, &err)
|
||||
tmplHTML = tmplHTML(n.tmpl, data, &err)
|
||||
url = fmt.Sprintf("%sv2/room/%s/notification?auth_token=%s", n.conf.APIURL, n.conf.RoomID, n.conf.AuthToken)
|
||||
roomid = tmplText(n.conf.RoomID)
|
||||
url = fmt.Sprintf("%sv2/room/%s/notification?auth_token=%s", n.conf.APIURL, roomid, n.conf.AuthToken)
|
||||
)
|
||||
|
||||
if n.conf.MessageFormat == "html" {
|
||||
|
Loading…
Reference in New Issue
Block a user