Sha256: 80003c9173297f4e00a26eac9f8acc0b72094125f3330e676ab1ab1981ce73bf
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
require 'vizsla/system_health_sample' require 'vizsla/puppet_master' require 'concurrent' module Vizsla class HealthMonitor class << self def start @task = Concurrent::TimerTask.new(execution_interval: 10) do health = SystemHealthSample.new PuppetMaster.new(health).process end @task.execute self end def stop! @task.shutdown end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tracebin-0.0.7 | lib/vizsla/health_monitor.rb |