<%= t('Metrics') %>

?
<%= csrf_tag %>
<% table_limit = 20 chart_limit = 5 job_results = @query_result.job_results.sort_by { |(kls, jr)| jr.totals["s"] }.reverse.first(table_limit) visible_kls = job_results.first(chart_limit).map(&:first) %> <% if job_results.any? %> <%= to_json({ series: job_results.map { |(kls, jr)| [kls, jr.dig("series", "s")] }.to_h, marks: @query_result.marks.map { |m| [m.bucket, m.label] }, labels: @query_result.buckets, visibleKls: visible_kls, yLabel: t('TotalExecutionTime'), units: t('Seconds').downcase, markLabel: t('Deploy'), }) %> <% end %>
<% if job_results.any? %> <% job_results.each_with_index do |(kls, jr), i| %> <% end %> <% else %> <% end %>
<%= t('Name') %> <%= t('Success') %> <%= t('Failure') %> <%= t('TotalExecutionTime') %> (Seconds) <%= t('AvgExecutionTime') %> (Seconds)
<% id = "metrics-swatch-#{kls}" %> /> <%= kls %>
<%= number_with_delimiter(jr.dig("totals", "p") - jr.dig("totals", "f")) %> <%= number_with_delimiter(jr.dig("totals", "f")) %> <%= number_with_delimiter(jr.dig("totals", "s"), precision: 2) %> <%= number_with_delimiter(jr.total_avg("s"), precision: 2) %>
<%= t("NoDataFound") %>