Sha256: 698721689c4f7227b23ca4bf70704f36d57089a15816d7f671654f153babce40
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
<% state_counts = @rollup_alerts.inject({}) do |memo, alert| puts "alert: #{alert.inspect}" memo[alert[1]['state']] = (memo[alert[1]['state']] || 0) + 1 memo end states_summary = ['critical', 'warning', 'unknown'].inject([]) do |memo, state| next memo unless state_counts[state] memo << "#{state.titleize}: #{state_counts[state]}" memo end.join(', ') -%> <% case @rollup -%> <% when "problem" -%> <%= "Problem summary: " -%> <% when "recovery" -%> <%= "Problem summaries finishing: " -%> <% end -%> <%= states_summary -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flapjack-0.7.28 | lib/flapjack/gateways/email/rollup_subject.text.erb |