Sha256: eb75835c352c84de373001a910512e8da05f8b9b582833ed616b064a56194d0c
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
module AwsAlertMonitor module Events class ProcessDown < Event def body message = "received an alert: \n\n " message << "#{description}\n\n " message << "Environment: #{environment}\n\n " message << "Host: #{host}\n\n " message << "At #{created_at}" end def subject "Alert: process #{process} down #{environment}" end def type 'process_down' end private %w[created_at environment host required_count running_count process].each do |m| define_method(m) { message_data[m] } end def description message_data['body'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aws-alert-monitor-0.1.0 | lib/aws-alert-monitor/events/process_down.rb |