class Tracebin::HealthMonitor
Public Class Methods
start()
click to toggle source
# File lib/tracebin/health_monitor.rb, line 8 def start @task = Concurrent::TimerTask.new(execution_interval: 10) do health = SystemHealthSample.new PuppetMaster.new(health).process end @task.execute self end
stop!()
click to toggle source
# File lib/tracebin/health_monitor.rb, line 19 def stop! @task.shutdown end