Sha256: 7b4d42002ab5a6b3960842610a3433e0aaa2ae0792034f010c5a187c8f697298
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
Hi <%= @alert.medium.contact.name %> Monitoring has detected the following: <% check = @alert.check -%> Check: <%= check.name %> State: <%= @alert.state_title_case %> <% summary = @alert.summary -%> <% unless summary.nil? || summary.empty? -%> Summary: <%= summary %> <% end -%> <% details = @alert.details -%> <% unless details.nil? || details.empty? -%> Details: <%= details %> <% end -%> <% time = @alert.time -%> <% unless time.nil? -%> Time: <%= Time.at(time.to_i).to_s %> <% end -%> <% condition_duration = @alert.condition_duration -%> <% unless condition_duration.nil? || (condition_duration <= 40) -%> Duration: <%= ChronicDuration.output(condition_duration, :keep_zero => true) || '0 secs' %> <% end -%> <% unless @alert.last_state.nil? -%> Previous State: <%= @alert.last_state_title_case %> <% end -%> <% last_summary = @alert.last_summary -%> <% unless last_summary.nil? || last_summary.empty? -%> Previous Summary: <%= last_summary %> <% end -%> Cheers, Flapjack
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flapjack-2.0.0 | lib/flapjack/gateways/email/alert.text.erb |
flapjack-2.0.0rc1 | lib/flapjack/gateways/email/alert.text.erb |
flapjack-2.0.0b1 | lib/flapjack/gateways/email/alert.text.erb |