Class: SeigenWatchdog::Limiters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/seigen_watchdog/limiters/base.rb

Overview

Base class for all limiters

Direct Known Subclasses

Counter, Custom, RSS, Time

Instance Method Summary collapse

Instance Method Details

#exceeded?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/seigen_watchdog/limiters/base.rb', line 8

def exceeded?
  raise NotImplementedError, "#{self.class} must implement #exceeded?"
end

#startedObject

Called when the limiter is started (when monitor initializes)



14
# File 'lib/seigen_watchdog/limiters/base.rb', line 14

def started; end

#stoppedObject

Called when the limiter is stopped (when monitor stops)



18
# File 'lib/seigen_watchdog/limiters/base.rb', line 18

def stopped; end