summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-29 16:41:36 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-29 16:41:36 +0000
commitdce22d681afeca5d0de1d39b2ec4b24264557b30 (patch)
treec8304bec540a66efc9e8b1e5e3b853ae276b8e96 /lib/custodian/alerts
parent87141952ebda2dfeff2aaf6e613e9363d93a7a00 (diff)
* Added mauve suppression to the mauve alert class.
* Added debian recommendation for mauvealert-client
Diffstat (limited to 'lib/custodian/alerts')
-rw-r--r--lib/custodian/alerts/mauve.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/custodian/alerts/mauve.rb b/lib/custodian/alerts/mauve.rb
index 417a1f2..300c90c 100644
--- a/lib/custodian/alerts/mauve.rb
+++ b/lib/custodian/alerts/mauve.rb
@@ -82,6 +82,11 @@ module Custodian
alert.raise_time = Time.now.to_i
#
+ # We're going to suppress this alert for 7 minutes to suppress flaps.
+ #
+ alert.suppress_until = Time.now.to_i + 420
+
+ #
# Update it and send it
#
update.alert << alert