aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Elsworth <chris.elsworth@bytemark.co.uk>2017-01-31 23:30:40 +0000
committerChris Elsworth <chris.elsworth@bytemark.co.uk>2017-01-31 23:30:40 +0000
commit4c642e3dc17f98e5560763f019c3eb18e09e5e8c (patch)
tree81fe1bef64cfaf68ce8e9d3f1a57092649dcd141 /lib
parent5c62ccc2858f8f8245cb6e8f7058c58de9363419 (diff)
Tweak HipChat colours to be a bit more useful
> It would be lovely if cleared messages were green > —- Tom Hill
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 = {