Sha256: 4599753d72b9174480394f3e5cb1f50f5827f96fa48bce00fd841bc73b4486f0

Contents?: true

Size: 1.61 KB

Versions: 40

Compression:

Stored size: 1.61 KB

Contents

<style type="text/css" media="screen">
  #container {
    text-transform: uppercase;
  }
  table {
    border-collapse: collapse;
  }
  table, th, td {
    border: 1px solid #666;
    padding: 4px;
  }
</style>

<p>Hi <%= @alert.contact_first_name%></p>

<p>Monitoring has detected the following:</p>

<table>
  <tbody>
    <tr>
      <td><strong>Entity</strong></td>
      <td><%= @alert.entity %></td>
    </tr>

    <tr>
      <td><strong>Check</strong></td>
      <td><%= @alert.check %></td>
    </tr>

    <tr>
      <td><strong>State</strong></td>
      <td><%= @alert.state_title_case %></td>
    </tr>

    <tr>
      <td><strong>Summary</strong></td>
      <td><%= @alert.summary %></td>
    </tr>

    <% if @alert.details %>
      <tr>
        <td><strong>Details</strong></td>
        <td><%= @alert.details %></td>
      </tr>
    <% end %>

    <% if @alert.time %>
      <tr>
        <td><strong>Time</strong></td>
        <td><%= Time.at(@alert.time.to_i).to_s %></td>
      </tr>
    <% end %>

    <% if @alert.state_duration && @alert.state_duration > 40 %>
      <tr>
        <td><strong>Duration</strong></td>
        <td><%= ChronicDuration.output(@alert.state_duration, :keep_zero => true) || '0 secs' %></td>
      </tr>
    <% end %>

    <% if @alert.last_state %>
      <tr>
        <td><strong>Previous State</strong></td>
        <td><%= @alert.last_state_title_case %></td>
      </tr>
    <% end %>

    <% if @alert.last_summary %>
      <tr>
        <td><strong>Previous Summary</strong></td>
        <td><%= @alert.last_summary %></td>
      </tr>
    <% end %>

  </tbody>
</table>

<p>Cheers,<br/>
Flapjack</p>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
flapjack-1.2.1 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.2.1rc3 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.2.1rc2 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.2.1rc1 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.2.0 lib/flapjack/gateways/email/alert.html.erb
flapjack-0.9.6 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.2.0rc2 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.2.0rc1 lib/flapjack/gateways/email/alert.html.erb
flapjack-0.9.5 lib/flapjack/gateways/email/alert.html.erb
flapjack-0.9.4 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.1.0 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.0.0 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.0.0rc6 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.0.0rc5 lib/flapjack/gateways/email/alert.html.erb
flapjack-0.9.3 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.0.0rc3 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.0.0rc2 lib/flapjack/gateways/email/alert.html.erb
flapjack-0.9.2 lib/flapjack/gateways/email/alert.html.erb
flapjack-0.9.1 lib/flapjack/gateways/email/alert.html.erb
flapjack-1.0.0rc1 lib/flapjack/gateways/email/alert.html.erb