Module: Roqua::Probes::BaseProbe

Included in:
DelayedJobProbe, MonitoringProbe, SchedulingProbe
Defined in:
lib/roqua/probes/base_probe.rb

Instance Method Summary collapse

Instance Method Details

#enableObject



4
5
6
7
8
9
# File 'lib/roqua/probes/base_probe.rb', line 4

def enable
  new.tap do |probe|
    probe_sym = probe.class.to_s.to_sym
    Appsignal::Minutely.probes.register(probe_sym, probe) unless Appsignal::Minutely.probes[probe_sym]
  end
end