Class: SeigenWatchdog::Limiters::Base
- Inherits:
-
Object
- Object
- SeigenWatchdog::Limiters::Base
- Defined in:
- lib/seigen_watchdog/limiters/base.rb
Overview
Base class for all limiters
Instance Method Summary collapse
- #exceeded? ⇒ Boolean
-
#started ⇒ Object
Called when the limiter is started (when monitor initializes).
-
#stopped ⇒ Object
Called when the limiter is stopped (when monitor stops).
Instance Method Details
#exceeded? ⇒ Boolean
8 9 10 |
# File 'lib/seigen_watchdog/limiters/base.rb', line 8 def exceeded? raise NotImplementedError, "#{self.class} must implement #exceeded?" end |
#started ⇒ Object
Called when the limiter is started (when monitor initializes)
14 |
# File 'lib/seigen_watchdog/limiters/base.rb', line 14 def started; end |
#stopped ⇒ Object
Called when the limiter is stopped (when monitor stops)
18 |
# File 'lib/seigen_watchdog/limiters/base.rb', line 18 def stopped; end |