Class: QaServer::MonitorStatusPresenter

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
app/presenters/qa_server/monitor_status_presenter.rb

Instance Method Summary collapse

Constructor Details

#initialize(current_summary:, current_failure_data:, historical_summary_data:, historical_up_down_data:, performance_data:) ⇒ MonitorStatusPresenter

Returns a new instance of MonitorStatusPresenter.

Parameters:

  • current_summary (ScenarioRunSummary)

    summary status of the latest run of test scenarios

  • current_failure_data (Array<Hash>)

    current set of failures for the latest test run, if any

  • historical_summary_data (Array<Hash>)

    summary of past failuring runs per authority to drive chart

  • historical_up_down_data (Hash<Array>)

    status of queries for the last 30 days

  • performance_data (Hash<Hash>)

    performance datatable data



12
13
14
15
16
17
# File 'app/presenters/qa_server/monitor_status_presenter.rb', line 12

def initialize(current_summary:, current_failure_data:, historical_summary_data:, historical_up_down_data:, performance_data:)
  @current_status_presenter = QaServer::MonitorStatus::CurrentStatusPresenter.new(parent: self, current_summary: current_summary, current_failure_data: current_failure_data)
  @history_presenter = QaServer::MonitorStatus::HistoryPresenter.new(parent: self, historical_summary_data: historical_summary_data)
  @history_up_down_presenter = QaServer::MonitorStatus::HistoryUpDownPresenter.new(parent: self, historical_up_down_data: historical_up_down_data)
  @performance_presenter = QaServer::MonitorStatus::PerformancePresenter.new(parent: self, performance_data: performance_data)
end