Sha256: a2d98f5b3081093cf3903612d7684004b249a50e852e12cb1d75300a3f76cb24

Contents?: true

Size: 1.56 KB

Versions: 1

Compression:

Stored size: 1.56 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><strong>Entity</strong></td>
      <td><%= @entity_name %></td>
    </tr>

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

    <tr>
      <td><strong>State</strong></td>
      <td><%= ['ok'].include?(@state) ? @state.upcase : @state.titleize %></td>
    </tr>

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

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

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

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

    <% if @last_state %>
      <tr>
        <td><strong>Previous State</strong></td>
        <td><%= ['ok'].include?(@last_state) ? @last_state.upcase : @last_state.titleize %></td>
      </tr>
    <% end %>

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

  </tbody>
</table>

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

Version data entries

1 entries across 1 versions & 1 rubygems

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