Method: What::Monitor#status
- Defined in:
- lib/what/monitor.rb
#status ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/what/monitor.rb', line 29 def status statuses = [] healths = [] @modules.each do |mod| status = @results[mod[:id]] || {"health" => nil} healths << status['health'] statuses << status if status["error"] mod[:module].async.start_monitoring end end {"health" => Helpers.overall_health(healths), "details" => statuses} end |