Sha256: 3ec4f06de3ab665d2b77b8dcc1905a12723b89f0cd855d46155b79fc7bb6a213
Contents?: true
Size: 535 Bytes
Versions: 23
Compression:
Stored size: 535 Bytes
Contents
#!/usr/bin/env ruby require 'flapjack/data/entity_check' module Flapjack module Data class Global 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
23 entries across 23 versions & 1 rubygems