<% if @presenter.display_performance? && @presenter.performance_data? %>

<%= t('qa_server.monitor_status.performance.title') %>

<% if @presenter.display_performance_graph? %> <% @presenter.performance_graphs.each do |graph_info| %>

<%= @presenter.performance_graph_authority(graph_info) %>

    <% if @presenter.performance_day_graph_selected?(graph_info) %>
  • <%= t('qa_server.monitor_status.performance.menu_day') %>
  • <% else %>
  • <%= t('qa_server.monitor_status.performance.menu_day') %>
  • <% end %> <% if @presenter.performance_month_graph_selected?(graph_info) %>
  • <%= t('qa_server.monitor_status.performance.menu_month') %>
  • <% else %>
  • <%= t('qa_server.monitor_status.performance.menu_month') %>
  • <% end %> <% if @presenter.performance_year_graph_selected?(graph_info) %>
  • <%= t('qa_server.monitor_status.performance.menu_year') %>
  • <% else %>
  • <%= t('qa_server.monitor_status.performance.menu_year') %>
  • <% end %>

<%= @presenter.performance_graph_label(graph_info) %>

<%= image_tag(@presenter.performance_graph(graph_info), alt: @presenter.performance_graph_label(graph_info)) %>
<% end %>
<% end %> <% if @presenter.display_performance_datatable? %>

<%= @presenter.performance_table_description %>

<% @presenter.performance_data.each do |authority_name, data| %> <% stats = @presenter.datatable_stats(data) %> <% end %>
<%= t('qa_server.monitor_status.performance.slowest_times') %> <%= t('qa_server.monitor_status.performance.average_times') %> <%= t('qa_server.monitor_status.performance.fastest_times') %>
<%= authority_name %>
<%= t('qa_server.monitor_status.performance.load_times') %> <%= @presenter.high_load(stats) %> <%= @presenter.avg_load(stats) %> <%= @presenter.low_load(stats) %>
<%= t('qa_server.monitor_status.performance.normalization_times') %> <%= @presenter.high_normalization(stats) %> <%= @presenter.avg_normalization(stats) %> <%= @presenter.low_normalization(stats) %>
<%= t('qa_server.monitor_status.performance.full_request_times') %> <%= @presenter.high_full_request(stats) %> <%= @presenter.avg_full_request(stats) %> <%= @presenter.low_full_request(stats) %>
<% end %> <% end %>