class AllMyCircuits::Notifiers::AbstractNotifier
Public: notifies some service about change of breaker’s state. For example, one could send a Librato metric whenever a circuit breaker is opened or closed.
Public Class Methods
new(breaker_name, **kwargs)
click to toggle source
# File lib/all_my_circuits/notifiers/abstract_notifier.rb, line 9 def initialize(breaker_name, **kwargs) @breaker_name = breaker_name end
Public Instance Methods
closed()
click to toggle source
Public: called once the circuit is closed.
# File lib/all_my_circuits/notifiers/abstract_notifier.rb, line 21 def closed raise NotImplementedError end
opened()
click to toggle source
Public: called once the circuit is tripped open.
# File lib/all_my_circuits/notifiers/abstract_notifier.rb, line 15 def opened raise NotImplementedError end