Hi <%= @contact_first_name%>

Monitoring has detected the following:

<% if @details %> <% end %> <% if @time %> <% end %> <% if @duration && @duration > 40 %> <% end %> <% if @last_state %> <% end %> <% if @last_summary %> <% end %>
Entity <%= @entity_name %>
Check <%= @check %>
State <%= ['ok'].include?(@state) ? @state.upcase : @state.titleize %>
Summary <%= @summary %>
Details <%= @details %>
Time <%= Time.at(@time.to_i).to_s %>
Duration <%= ChronicDuration.output(@duration) %>
Previous State <%= ['ok'].include?(@last_state) ? @last_state.upcase : @last_state.titleize %>
Previous Summary <%= @last_summary %>

Cheers,
Flapjack