aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortelyn <telyn@bytemark.co.uk>2018-01-24 14:50:36 +0000
committertelyn <telyn@bytemark.co.uk>2018-01-24 14:50:36 +0000
commitc2fd3c75ddaff60ccc371ae0c32f0c5cfec3e29b (patch)
tree12b7e34c874181d7402c18ca130d08a063decc7e /lib
parentd115cd9e58300ee8ab580e6d1d3d6e8d35cb8845 (diff)
parent2ad9283fd856f7774e9806ed6aa3b949a5819dd1 (diff)
Merge branch 'master' of github.com:BytemarkHosting/mauvealert into develop
Diffstat (limited to 'lib')
-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 = {