diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-29 21:00:21 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-29 21:00:21 +0000 |
commit | e93869d69001996c8819c82ec1fe02a790e6e279 (patch) | |
tree | b08167453d34d5298f4dcdd2181090773cb8e578 /lib/mauve | |
parent | 4a2d26f044bf931994010a68f5b38338f585b159 (diff) |
Raised time now set to unacknowledgment time when alerts become unacknowledged
Diffstat (limited to 'lib/mauve')
-rw-r--r-- | lib/mauve/alert.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index 8ccc045..6138664 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -412,6 +412,13 @@ module Mauve # # @return [Boolean] showing the unacknowledgment has been successful def unacknowledge! + # + # Start the notification procedure again. + # + if self.was_acknowledged? + self.raised_at = Time.now + end + self.acknowledged_by = nil self.acknowledged_at = nil self.will_unacknowledge_at = nil |