lib/flapjack.rb in flapjack-2.0.0b1 vs lib/flapjack.rb in flapjack-2.0.0rc1
- old
+ new
@@ -14,9 +14,13 @@
UUID_RE = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
DEFAULT_INITIAL_FAILURE_DELAY = 30
DEFAULT_REPEAT_FAILURE_DELAY = 60
+ # defaulting to 0 for backwards compatibility; can be overridden in config,
+ # or per check / event
+ DEFAULT_INITIAL_RECOVERY_DELAY = 0
+
def self.load_json(data)
ActiveSupport::JSON.decode(data)
end
def self.dump_json(data)