% job_result = @query_result.job_results[@name] hist_totals = job_result.hist.values.first.zip(*job_result.hist.values[1..-1]).map(&:sum) bucket_labels =Sidekiq::Metrics::Histogram::LABELS bucket_intervals =Sidekiq::Metrics::Histogram::BUCKET_INTERVALS.reverse # Replace INFINITY since it can't be represented as JSON bucket_intervals[0] = bucket_intervals[1] * 2 %> <% if job_result.totals["s"] > 0 %>
<%= t('Time') %> | <%= t('Processed') %> | <%= t('Failed') %> | <%= t('ExecutionTime') %> | <%= t('AvgExecutionTime') %> | ||
---|---|---|---|---|---|---|
<%= bucket %> | <%= job_result.series.dig("p", bucket) %> | <%= job_result.series.dig("f", bucket) %> | <% if (total_sec = job_result.series.dig("s", bucket)) > 0 %><%= total_sec.round(2) %> seconds | <%= job_result.series_avg("s")[bucket].round(2) %> seconds | <% else %>— | — | <% end %>
Data from <%= @query_result.starts_at %> to <%= @query_result.ends_at %>
<% else %>