Sha256: 1c19b8d3f06e7988cd83e777d1055a48323673c462dc8534386ba4e1c77d15cb

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 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 <%= @contact_first_name%></p>

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

<table>
  <tbody>
    <tr>
      <td>Entity</td>
      <td><%= @entity_name %></td>
    </tr>

    <tr>
      <td>Check</td>
      <td><%= @check %></td>
    </tr>

    <tr>
      <td>State</td>
      <td><%= @state.upcase %></td>
    </tr>

    <tr>
      <td>Summary</td>
      <td><%= @summary %></td>
    </tr>

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

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

    <% if @duration %>
      <tr>
        <td>Duration</td>
        <td><%= ChronicDuration.output(@duration) %></td>
      </tr>
    <% end %>

    <% if @last_state %>
      <tr>
        <td>Previous state</td>
        <td><%= @last_state %></td>
      </tr>
    <% end %>

    <% if @last_summary %>
      <tr>
        <td>Previous summary</td>
        <td><%= @last_summary %></td>
      </tr>
    <% end %>

  </tbody>
</table>

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flapjack-0.7.22 lib/flapjack/gateways/email/alert.html.erb
flapjack-0.7.21 lib/flapjack/gateways/email/alert.html.erb