lib/flapjack/data/notification.rb in flapjack-0.7.26 vs lib/flapjack/data/notification.rb in flapjack-0.7.27

- old
+ new

@@ -32,13 +32,15 @@ 'unknown' end end def self.severity_for_event(event, max_notified_severity) - if ([event.state, max_notified_severity] & ['critical', 'unknown', 'test_notifications']).any? + if ([event.state, max_notified_severity] & ['critical', 'test_notifications']).any? 'critical' elsif [event.state, max_notified_severity].include?('warning') 'warning' + elsif [event.state, max_notified_severity].include?('unknown') + 'unknown' else 'ok' end end