From 9fa551cc32d4cd174b2dc1de8651b416eaa8cda1 Mon Sep 17 00:00:00 2001 From: Rob Russo Date: Tue, 19 May 2020 03:58:57 -0400 Subject: [PATCH] Alerting: updating the victorops alerter to handle the no_data alert type (#23761) --- pkg/services/alerting/notifiers/victorops.go | 33 ++++++++++++++------ 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/pkg/services/alerting/notifiers/victorops.go b/pkg/services/alerting/notifiers/victorops.go index a623f0ec930..07621176c82 100644 --- a/pkg/services/alerting/notifiers/victorops.go +++ b/pkg/services/alerting/notifiers/victorops.go @@ -14,6 +14,8 @@ import ( // AlertStateCritical - Victorops uses "CRITICAL" string to indicate "Alerting" state const AlertStateCritical = "CRITICAL" +// AlertStateWarning - VictorOps "WARNING" message type +const AlertStateWarning = "WARNING" const alertStateRecovery = "RECOVERY" func init() { @@ -28,6 +30,13 @@ func init() { Url +
+ No Data Alert Type +
+ +
+