Sha256: f1c1d1490f190876afe92c4ea8851e1fc154f51faf29e3e8cf1698a80ba9fd44

Contents?: true

Size: 1.56 KB

Versions: 3

Compression:

Stored size: 1.56 KB

Contents

<h1><%= t('Metrics') %></h1>

<h3>Top Jobs by Processed Count</h3>
<% top = @resultset[:top_classes] %>

<% topp = top["p"]&.first(10) %>
<div class="table_container">
  <table class="table table-bordered table-striped table-hover">
    <tbody>
      <tr>
        <th><%= t('Name') %></th>
        <th><%= t('Processed') %></th>
        <th><%= t('ExecutionTime') %></th>
      </tr>
      <% if topp %>
        <% topp.each do |kls, val| %>
          <tr>
            <td><code><a href="<%= root_path %>metrics/<%= kls %>"><%= kls %></a></code></td>
            <td><%= val %></td>
            <td><%= top.dig("ms", kls) %></td>
          </tr>
        <% end %>
      <% else %>
          <tr><td colspan=3><%= t("NoDataFound") %></td></tr>
      <% end %>
    </tbody>
  </table>
</div>

<h3>Top Jobs by Execution Time</h3>

<% topms = top["ms"]&.first(10) %>
<div class="table_container">
  <table class="table table-bordered table-striped table-hover">
    <tbody>
      <tr>
        <th><%= t('Name') %></th>
        <th><%= t('Processed') %></th>
        <th><%= t('ExecutionTime') %></th>
      </tr>
      <% if topms %>
        <% topms.each do |kls, val| %>
          <tr>
            <td><code><a href="<%= root_path %>metrics/<%= kls %>"><%= kls %></a></code></td>
            <td><%= top.dig("p", kls) %></td>
            <td><%= val %></td>
          </tr>
        <% end %>
      <% else %>
          <tr><td colspan=3><%= t("NoDataFound") %></td></tr>
      <% end %>
    </tbody>
  </table>
</div>

<p>
Data from <%= @resultset[:starts_at] %> to <%= @resultset[:ends_at] %>
</p>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-6.5.4 web/views/metrics.erb
sidekiq-6.5.3 web/views/metrics.erb
sidekiq-6.5.2 web/views/metrics.erb