Skip to content

Commit 3b86544

Browse files
Merge pull request #346 from typeid/note_on_escalation
Feat: add note when escalating to SRE
2 parents 3b323ab + 171215a commit 3b86544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interceptor/pkg/interceptor/pdinterceptor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (pdi *PagerDutyInterceptor) Process(ctx context.Context, r *triggersv1.Inte
111111
// and escalate the alert to SRE
112112
if investigation == nil {
113113
pdi.Logger.Infof("Incident %s is not mapped to an investigation, escalating incident and returning InterceptorResponse `Continue: false`.", pdClient.GetIncidentID())
114-
err = pdClient.EscalateIncident()
114+
err = pdClient.EscalateIncidentWithNote("🤖 No automation implemented for this alert; escalated to SRE. 🤖")
115115
if err != nil {
116116
pdi.Logger.Errorf("failed to escalate incident '%s': %w", pdClient.GetIncidentID(), err)
117117
}

0 commit comments

Comments
 (0)