Class: QueuePulse::Checks::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/queue_pulse/checks/base.rb

Overview

Checks are pure-ish: given (config, source, state) they return Alerts. The only side effect they own is updating dedupe/cooldown state at the moment they decide to emit (keeps cooldown logic next to the data that produces it). Delivery is the Monitor's job.

Instance Method Summary collapse

Constructor Details

#initialize(config, source, state) ⇒ Base

Returns a new instance of Base.



10
11
12
13
14
# File 'lib/queue_pulse/checks/base.rb', line 10

def initialize(config, source, state)
  @config = config
  @source = source
  @state = state
end

Instance Method Details

#callArray<QueuePulse::Alert>

Returns:

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/queue_pulse/checks/base.rb', line 17

def call
  raise NotImplementedError
end