diff options
author | telyn <telyn@bytemark.co.uk> | 2018-01-24 14:50:36 +0000 |
---|---|---|
committer | telyn <telyn@bytemark.co.uk> | 2018-01-24 14:50:36 +0000 |
commit | c2fd3c75ddaff60ccc371ae0c32f0c5cfec3e29b (patch) | |
tree | 12b7e34c874181d7402c18ca130d08a063decc7e /lib | |
parent | d115cd9e58300ee8ab580e6d1d3d6e8d35cb8845 (diff) | |
parent | 2ad9283fd856f7774e9806ed6aa3b949a5819dd1 (diff) |
Merge branch 'master' of github.com:BytemarkHosting/mauvealert into develop
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mauve/notifiers/hipchat.rb | 12 |
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 = { |