aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notifiers/hipchat.rb
diff options
context:
space:
mode:
authortelyn <telyn@bytemark.co.uk>2018-01-30 10:19:59 +0000
committertelyn <telyn@bytemark.co.uk>2018-01-30 10:19:59 +0000
commitb37a469b817e55b06b8d6a22c1087506a2221c14 (patch)
tree5c5f5510b389c31ee8686e07b451e22738d4c253 /lib/mauve/notifiers/hipchat.rb
parent0139aa17ab739365745c3447de5634b665391a77 (diff)
parent9bdd63df6f71ea7322f3d65aa88a79cb17d74b9c (diff)
Merge branch 'develop' into gem
Diffstat (limited to 'lib/mauve/notifiers/hipchat.rb')
-rw-r--r--lib/mauve/notifiers/hipchat.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mauve/notifiers/hipchat.rb b/lib/mauve/notifiers/hipchat.rb
index 7537bc5..b29f450 100644
--- a/lib/mauve/notifiers/hipchat.rb
+++ b/lib/mauve/notifiers/hipchat.rb
@@ -27,13 +27,13 @@ module Mauve
def send_alert(destination, alert, all_alerts, conditions = {})
msg = prepare_message(destination, alert, all_alerts, conditions)
- colour = case alert.level
- when :urgent
- "red"
- when :normal
- "yellow"
+ colour = case alert.update_type
+ when 'cleared'
+ 'green'
+ when 'acknowledged'
+ 'yellow'
else
- "green"
+ 'red'
end
opts = {