Sha256: b41c6c4697ccd5b94766b32f7f2d8dd0266210e43decfddd7ed562c165d08e70

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

<div class="container grid-1280">
  <h1>Pollables</h1>
  <table id="pollables-list" class="table">
    <thead>
      <tr>
        <th> Pollable </th>
        <th> Count </th>
        <th> Polls* </th>
        <th> Error Rate* </th>
        <th> Lock Rate* </th>
      </tr>
    </thead>
    <tbody>
      <% Aeternitas::WebUi::PollablesIndexStatistics.available_pollables.each do |pollable| %>
        <tr>
          <td> <%= link_to pollable.name, pollable_path(id: pollable.name) %> </td>
          <td> <%= pollable.count %> </td>
          <td> <%= Aeternitas::WebUi::PollablesIndexStatistics.polls(pollable) %> </td>
          <td> <%= rate_ratio Aeternitas::WebUi::PollablesIndexStatistics.failure_ratio(pollable) %> </td>
          <td> <%= rate_ratio Aeternitas::WebUi::PollablesIndexStatistics.guard_locked_ratio(pollable) %> </td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <script>
    $(document).ready(function() {
      $('#pollables-list').DataTable();
    } );
  </script>
  <small>* within the last 24h</small>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aeternitas_web_ui-0.1.0 app/views/aeternitas/web_ui/pollables/index.html.erb