Sha256: 44d3cdfabebffc5f7d38121e22cbc407cc8863cbcd05dc899fc0d21fc0f36374

Contents?: true

Size: 1.43 KB

Versions: 22

Compression:

Stored size: 1.43 KB

Contents

<% if @auto_refresh %>
<meta http-equiv="refresh" content="<%= @auto_refresh %>" >
<% end %>
<% page_title "#{h(@entity)} (entity)" %>

<div class="page-header">
  <h2><%= h @entity %></h2>
</div>
<% if @states.empty? %>
  <div>
    <p>This entity has no check output associated with it</p>
  </div>
<% else %>
  <table class="table table-bordered table-hover table-condensed">
    <tr>
      <th>Check</th>
      <th>State</th>
      <th>Summary</th>
      <th>Last State Change</th>
      <th>Last Update</th>
      <th>Last Notification</th>
    </tr>
    <% @states.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 = @base_url + "check?entity=" << u(@entity) << "&amp;check=" << u(check)

      %>
      <tr class="<%= row_colour %>">
        <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 %>
  </table>
<% end %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
flapjack-1.6.0 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.6.0rc4 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.6.0rc3 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.6.0rc2 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.6.0rc1 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.5.0 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.5.0rc1 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.4.0 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.4.0rc1 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.3.0 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.3.0rc3 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.3.0rc2 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.3.0rc1 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.2.2 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.2.1 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.2.1rc3 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.2.1rc2 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.2.1rc1 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.2.0 lib/flapjack/gateways/web/views/entity.html.erb
flapjack-1.2.0rc2 lib/flapjack/gateways/web/views/entity.html.erb