mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-06 05:31:44 +00:00
The tmpl() call was removed when migrating to support pd v2 events api.
This commit is contained in:
parent
3c61fe3fef
commit
3aa7f03b10
@ -468,7 +468,7 @@ type pagerDutyPayload struct {
|
||||
func (n *PagerDuty) notifyV1(ctx context.Context, eventType, key string, tmpl func(string) string, details map[string]string, as ...*types.Alert) (bool, error) {
|
||||
|
||||
msg := &pagerDutyMessage{
|
||||
ServiceKey: string(n.conf.ServiceKey),
|
||||
ServiceKey: tmpl(string(n.conf.ServiceKey)),
|
||||
EventType: eventType,
|
||||
IncidentKey: hashKey(key),
|
||||
Description: tmpl(n.conf.Description),
|
||||
@ -514,7 +514,7 @@ func (n *PagerDuty) notifyV2(ctx context.Context, eventType, key string, tmpl fu
|
||||
}
|
||||
|
||||
msg := &pagerDutyMessage{
|
||||
RoutingKey: string(n.conf.RoutingKey),
|
||||
RoutingKey: tmpl(string(n.conf.RoutingKey)),
|
||||
EventAction: eventType,
|
||||
DedupKey: hashKey(key),
|
||||
Payload: payload,
|
||||
|
Loading…
Reference in New Issue
Block a user