aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Cherry <patch0@users.noreply.github.com>2017-02-14 12:18:25 +0000
committerGitHub <noreply@github.com>2017-02-14 12:18:25 +0000
commit2ad9283fd856f7774e9806ed6aa3b949a5819dd1 (patch)
tree81fe1bef64cfaf68ce8e9d3f1a57092649dcd141
parent5c62ccc2858f8f8245cb6e8f7058c58de9363419 (diff)
parent4c642e3dc17f98e5560763f019c3eb18e09e5e8c (diff)
Merge pull request #2 from celsworth/master
Tweak HipChat colours to be a bit more useful
-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 = {