lib/flapjack/data/contact.rb in flapjack-1.6.0rc3 vs lib/flapjack/data/contact.rb in flapjack-1.6.0rc4

- old
+ new

@@ -22,10 +22,11 @@ :media_intervals, :media_rollup_thresholds, :pagerduty_credentials ALL_MEDIA = [ 'email', 'sms', + 'slack', 'sms_twilio', 'sms_nexmo', 'jabber', 'pagerduty', 'sns' @@ -389,11 +390,11 @@ def add_alerting_check_for_media(media, event_id) @redis.zadd("contact_alerting_checks:#{self.id}:media:#{media}", Time.now.to_i, event_id) end - def remove_alerting_check_for_media(media, check) - @redis.zrem("contact_alerting_checks:#{self.id}:media:#{media}", check) + def remove_alerting_check_for_media(media, event_id) + @redis.zrem("contact_alerting_checks:#{self.id}:media:#{media}", event_id) end # removes any checks that are in ok, scheduled or unscheduled maintenance, # or are disabled from the alerting checks set for the given media; # returns whether this cleaning moved the medium from rollup to recovery