<% 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| %> <% time_period = @presenter.performance_graph_time_period(graph_info) %> <% action = @presenter.performance_graph_action(graph_info) %>

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

    <% if @presenter.performance_day_graph?(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?(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?(graph_info) %>
  • <%= t('qa_server.monitor_status.performance.menu_year') %>
  • <% else %>
  • <%= t('qa_server.monitor_status.performance.menu_year') %>
  • <% end %>
    <% if @presenter.performance_all_actions_graph?(graph_info) %>
  • <%= t('qa_server.monitor_status.performance.menu_all_actions') %>
  • <% else %>
  • <%= t('qa_server.monitor_status.performance.menu_all_actions') %>
  • <% end %> <% if @presenter.performance_search_graph?(graph_info) %>
  • <%= t('qa_server.monitor_status.performance.menu_search') %>
  • <% else %>
  • <%= t('qa_server.monitor_status.performance.menu_search') %>
  • <% end %> <% if @presenter.performance_fetch_graph?(graph_info) %>
  • <%= t('qa_server.monitor_status.performance.menu_fetch') %>
  • <% else %>
  • <%= t('qa_server.monitor_status.performance.menu_fetch') %>
  • <% 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| %> <% search_stats = @presenter.datatable_search_stats(data) %> <% fetch_stats = @presenter.datatable_fetch_stats(data) %> <% all_actions_stats = @presenter.datatable_all_actions_stats(data) %> <% end %>
<%= t('qa_server.monitor_status.performance.search') %> <%= t('qa_server.monitor_status.performance.fetch') %> <%= t('qa_server.monitor_status.performance.all_actions') %>
<%= t('qa_server.monitor_status.performance.slowest_times') %> <%= t('qa_server.monitor_status.performance.average_times') %> <%= t('qa_server.monitor_status.performance.fastest_times') %> <%= t('qa_server.monitor_status.performance.slowest_times') %> <%= t('qa_server.monitor_status.performance.average_times') %> <%= t('qa_server.monitor_status.performance.fastest_times') %> <%= 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.retrieve_times') %> <%= @presenter.high_retrieve(search_stats) %> <%= @presenter.avg_retrieve(search_stats) %> <%= @presenter.low_retrieve(search_stats) %> <%= @presenter.high_retrieve(fetch_stats) %> <%= @presenter.avg_retrieve(fetch_stats) %> <%= @presenter.low_retrieve(fetch_stats) %> <%= @presenter.high_retrieve(all_actions_stats) %> <%= @presenter.avg_retrieve(all_actions_stats) %> <%= @presenter.low_retrieve(all_actions_stats) %>
<%= t('qa_server.monitor_status.performance.graph_load_times') %> <%= @presenter.high_graph_load(search_stats) %> <%= @presenter.avg_graph_load(search_stats) %> <%= @presenter.low_graph_load(search_stats) %> <%= @presenter.high_graph_load(fetch_stats) %> <%= @presenter.avg_graph_load(fetch_stats) %> <%= @presenter.low_graph_load(fetch_stats) %> <%= @presenter.high_graph_load(all_actions_stats) %> <%= @presenter.avg_graph_load(all_actions_stats) %> <%= @presenter.low_graph_load(all_actions_stats) %>
<%= t('qa_server.monitor_status.performance.normalization_times') %> <%= @presenter.high_normalization(search_stats) %> <%= @presenter.avg_normalization(search_stats) %> <%= @presenter.low_normalization(search_stats) %> <%= @presenter.high_normalization(fetch_stats) %> <%= @presenter.avg_normalization(fetch_stats) %> <%= @presenter.low_normalization(fetch_stats) %> <%= @presenter.high_normalization(all_actions_stats) %> <%= @presenter.avg_normalization(all_actions_stats) %> <%= @presenter.low_normalization(all_actions_stats) %>
<%= t('qa_server.monitor_status.performance.full_request_times') %> <%= @presenter.high_full_request(search_stats) %> <%= @presenter.avg_full_request(search_stats) %> <%= @presenter.low_full_request(search_stats) %> <%= @presenter.high_full_request(fetch_stats) %> <%= @presenter.avg_full_request(fetch_stats) %> <%= @presenter.low_full_request(fetch_stats) %> <%= @presenter.high_full_request(all_actions_stats) %> <%= @presenter.avg_full_request(all_actions_stats) %> <%= @presenter.low_full_request(all_actions_stats) %>
<% end %> <% end %>