lib/flapjack/data/notification_rule.rb in flapjack-0.7.11 vs lib/flapjack/data/notification_rule.rb in flapjack-0.7.12

- old
+ new

@@ -93,9 +93,14 @@ when 'critical' @critical_media end end + def is_specific? + (!@entities.nil? && !@entities.empty?) || + (!@entity_tags.nil? && !@entity_tags.empty?) + end + private def initialize(rule_data, opts = {}) @redis ||= opts[:redis] raise "a redis connection must be supplied" unless @redis