Sha256: 07d405bc29b6d2e3eb56d5e7073144e87c9d06892e80bdcc63c3e2632b3d6b00

Contents?: true

Size: 1.19 KB

Versions: 3

Compression:

Stored size: 1.19 KB

Contents

<h3>Throttled</h3>

<div class="table_container">
  <table class="table table-hover table-bordered table-striped table-white">
    <thead>
      <tr>
        <th>Name</th>
        <th style="text-align:center;">Concurrency</th>
        <th style="text-align:center;">Threshold</th>
        <th style="text-align:center;">Actions</th>
      </tr>
    </thead>
    <% Sidekiq::Throttled::Registry.each_with_static_keys do |name, strategy| %>
      <tr>
        <td style="vertical-align:middle;"><%= name %></td>
        <td style="vertical-align:middle;text-align:center;">
          <%= Sidekiq::Throttled::Web::Stats.new(strategy.concurrency).to_html %>
        </td>
        <td style="vertical-align:middle;text-align:center;">
          <%= Sidekiq::Throttled::Web::Stats.new(strategy.threshold).to_html %>
        </td>
        <td style="vertical-align:middle;text-align:center;">
          <form action="<%= root_path %>throttled/<%= CGI.escape name %>" method="post">
            <%= csrf_tag %>
            <input type="hidden" name="_method" value="delete" />
            <button class="btn btn-danger" type="submit">Reset</button>
          </form>
        </td>
      </tr>
    <% end %>
  </table>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-throttled-0.7.2 lib/sidekiq/throttled/web/throttled.html.erb
sidekiq-throttled-0.7.1 lib/sidekiq/throttled/web/throttled.html.erb
sidekiq-throttled-0.7.0 lib/sidekiq/throttled/web/throttled.html.erb