Sha256: 5266c5c9ef1eb52c6ac88632f096f6e8c3e7e9c93770b2e937923742ac55c9ef
Contents?: true
Size: 598 Bytes
Versions: 40
Compression:
Stored size: 598 Bytes
Contents
#!/usr/bin/env ruby require 'flapjack/data/entity_check' module Flapjack module Data class Global # TODO maybe this should be an EntityCheck class method? def self.unacknowledged_failing_checks(options = {}) raise "Redis connection not set" unless redis = options[:redis] redis.zrange('failed_checks', '0', '-1').reject {|entity_check| redis.exists(entity_check + ':unscheduled_maintenance') }.collect {|entity_check| Flapjack::Data::EntityCheck.for_event_id(entity_check, :redis => redis) } end end end end
Version data entries
40 entries across 40 versions & 1 rubygems