Hi <%= @alert.contact_first_name %> Monitoring has detected the following: Entity: <%= @alert.entity %> Check: <%= @alert.check %> State: <%= @alert.state_title_case %> Summary: <%= @alert.summary %> <% if @alert.details -%> Details: <%= @alert.details %> <% end -%> <% if @alert.time -%> Time: <%= Time.at(@alert.time.to_i).to_s %> <% end -%> <% if @alert.state_duration && @alert.state_duration > 40 -%> Duration: <%= ChronicDuration.output(@alert.state_duration) %> <% end -%> <% if @alert.last_state -%> Previous State: <%= @alert.last_state_title_case %> <% end -%> <% if @alert.last_summary -%> Previous Summary: <%= @alert.last_summary %> <% end -%> Cheers, Flapjack