mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-28 00:52:13 +00:00
Allow template in victorops message_type field (#1038)
This commit is contained in:
parent
ff9e5270c7
commit
4a8e710691
@ -859,7 +859,7 @@ func (n *VictorOps) Notify(ctx context.Context, as ...*types.Alert) (bool, error
|
||||
data = n.tmpl.Data(receiverName(ctx), groupLabels(ctx), as...)
|
||||
tmpl = tmplText(n.tmpl, data, &err)
|
||||
apiURL = fmt.Sprintf("%s%s/%s", n.conf.APIURL, n.conf.APIKey, n.conf.RoutingKey)
|
||||
messageType = n.conf.MessageType
|
||||
messageType = tmpl(n.conf.MessageType)
|
||||
stateMessage = tmpl(n.conf.StateMessage)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user