Class: MonitoringJob

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/jobs/monitoring_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(checks, config = nil) ⇒ Object



7
8
9
10
11
12
13
# File 'app/jobs/monitoring_job.rb', line 7

def perform(checks, config = nil)
  if config
    MyNagios::Check.multiple_run!(checks, config)
  else
    MyNagios::Check.run!(checks)
  end
end