Module: Eye::Controller::ShowHistory
- Included in:
- Eye::Controller
- Defined in:
- lib/eye/controller/show_history.rb
Instance Method Summary collapse
Instance Method Details
#history_data(*args) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/eye/controller/show_history.rb', line 14 def history_data(*args) res = {} get_processes_for_history(*args).each do |process| res[process.full_name] = process.schedule_history.reject{|c| c[:state] == :check_crash } end res end |
#history_string(*args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/eye/controller/show_history.rb', line 3 def history_string(*args) data = history_data(*args) res = [] data.each do |name, data| res << detail_process_info(name, data) end res * "\n" end |