From 80dc93d4d691579cc5be72a9bb015dd6beb1581e Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 29 Nov 2012 20:58:23 +0000 Subject: Changed UNACKNOWLEDGED to RE-RAISED when alerts are no longer ack'd --- lib/mauve/alert.rb | 2 +- lib/mauve/alert_group.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index 2a798e2..078fed4 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -326,7 +326,7 @@ module Mauve elsif self.raised? and self.acknowledged? and !self.was_acknowledged? "acknowledged" elsif self.raised? and !self.acknowledged? and self.was_acknowledged? - "unacknowledged" + "re-raised" else nil end diff --git a/lib/mauve/alert_group.rb b/lib/mauve/alert_group.rb index c6d278c..c570247 100644 --- a/lib/mauve/alert_group.rb +++ b/lib/mauve/alert_group.rb @@ -173,7 +173,7 @@ module Mauve if this_reminder.update_type.nil? or (alert.raised? and this_reminder.update_type == "CLEARED") or - (alert.cleared? and %w(RAISED ACKNOWLEDGED).include?(this_reminder.update_type)) + (alert.cleared? and %w(RE-RAISED RAISED ACKNOWLEDGED).include?(this_reminder.update_type)) this_reminder.update_type = alert.update_type this_reminder.remind_at = alert.suppress_until -- cgit v1.2.1