<% 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 %> <% if job_result.totals["s"] > 0 %>

<%= t('Metrics') %> / <%= h @name %>

?
<%= erb :_metrics_period_select, locals: { periods: @periods, period: @period, path: "#{root_path}metrics/#{@name}" } %>

Data from <%= @query_result.starts_at %> to <%= @query_result.ends_at %>

<% else %>

<%= t('Metrics') %> / <%= h @name %>

<%= t('NoJobMetricsFound') %>
<% end %>