Class: QaServer::MonitorStatusController

Inherits:
AuthorityValidationController show all
Defined in:
app/controllers/qa_server/monitor_status_controller.rb

Constant Summary

Constants inherited from AuthorityValidationController

AuthorityValidationController::ALL_VALIDATIONS, AuthorityValidationController::DEFAULT_VALIDATION_TYPE, AuthorityValidationController::VALIDATE_ACCURACY, AuthorityValidationController::VALIDATE_CONNECTIONS, AuthorityValidationController::VALIDATION_TYPE_PARAM

Instance Method Summary collapse

Instance Method Details

#indexObject

Sets up presenter with data to display in the UI



15
16
17
18
19
20
21
22
23
24
# File 'app/controllers/qa_server/monitor_status_controller.rb', line 15

def index
  refresh_tests
  historical_data = refresh_history
  performance_data = refresh_performance
  @presenter = presenter_class.new(current_summary: latest_summary,
                                   current_failure_data: latest_failures,
                                   historical_summary_data: historical_data,
                                   performance_data: performance_data)
  render 'index', status: :internal_server_error if latest_summary.failing_authority_count.positive?
end