Sha256: fed09597d7b0946a1ab32e22bad603a8aad48da2f6834e1ec76c7e0c5c144b12

Contents?: true

Size: 1.93 KB

Versions: 17

Compression:

Stored size: 1.93 KB

Contents

<% page_title "#{@adjective.capitalize} Checks" %>

<div class="page-header">
  <h2><%= @adjective.capitalize %> Checks</h2>
</div>

<p><%= h @count_failing_checks %> failing out of <%= h @count_all_checks %></p>

<table class="table table-bordered table-hover table-condensed tablesorter">
  <thead>
    <tr>
      <th data-placeholder="e.g. app[1-3]*">Entity</th>
      <th data-placeholder="e.g. disk">Check</th>
      <th data-placeholder="e.g. critical">State</th>
      <th data-placeholder="e.g. !simulated">Summary</th>
      <th data-placeholder="e.g. <2h 0m">Last State Change</th>
      <th data-placeholder="">Last Update</th>
      <th data-placeholder="">Last Notification</th>
    </tr>
  </thead>
  <tbody>
    <% @entities_sorted.each do |entity| %>
      <% row_entity = nil %>
      <% entity_link = "/entity/" << u(entity) %>
      <% @states[entity].each do |check, status, summary, changed, updated, in_unscheduled_outage, in_scheduled_outage, notified| %>
        <%
          row_colour = case status
          when 'critical', 'unknown'
            'danger'
          when 'ok', 'up'
            'success'
          else
            status
          end

          check_link = "/check?entity=" << u(entity) << "&amp;check=" << u(check)

        %>
        <tr class="<%= row_colour %>">
        <% unless row_entity && entity == row_entity %>
          <td>
            <a href="<%= entity_link %>"><%= h entity %></a>
          </td>
        <% end %>
          <td><a href="<%= check_link %>" title="check detail"><%= h check %></a></td>
          <td class="<%= status %>">
            <%= h status.upcase %>
            <% if in_unscheduled_outage%> (Ack'd)<% end %>
            <% if in_scheduled_outage %> (Sched)<% end %>
          </td>
          <td><%= h summary %></td>
          <td><%= h changed %></td>
          <td><%= h updated %></td>
          <td><%= h notified %></td>
        </tr>

      <% end %>
    <% end %>
  </tbody>
</table>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
flapjack-0.9.6 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.9.5 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.9.4 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.9.3 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.9.2 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.9.1 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.9.0 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.8.12 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.8.11 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.8.10 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.8.9 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.8.8 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.8.7 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.8.6 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.8.5 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.8.4 lib/flapjack/gateways/web/views/checks.html.erb
flapjack-0.8.3 lib/flapjack/gateways/web/views/checks.html.erb