Hi <%= @alert.contact_first_name%>

Monitoring has detected the following:

<% if @alert.details %> <% end %> <% if @alert.time %> <% end %> <% if @alert.state_duration && @alert.state_duration > 40 %> <% end %> <% if @alert.last_state %> <% end %> <% if @alert.last_summary %> <% end %>
Entity <%= @alert.entity %>
Check <%= @alert.check %>
State <%= @alert.state_title_case %>
Summary <%= @alert.summary %>
Details <%= @alert.details %>
Time <%= Time.at(@alert.time.to_i).to_s %>
Duration <%= ChronicDuration.output(@alert.state_duration, :keep_zero => true) || '0 secs' %>
Previous State <%= @alert.last_state_title_case %>
Previous Summary <%= @alert.last_summary %>

Cheers,
Flapjack