Class: AwsAlertMonitor::Events::ProcessDown
Instance Attribute Summary
#message_data, #raw_data
Instance Method Summary
collapse
#initialize
Instance Method Details
#body ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/aws-alert-monitor/events/process_down.rb', line 6
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
|
#subject ⇒ Object
14
15
16
|
# File 'lib/aws-alert-monitor/events/process_down.rb', line 14
def subject
"Alert: process #{process} down #{environment}"
end
|
#type ⇒ Object
18
19
20
|
# File 'lib/aws-alert-monitor/events/process_down.rb', line 18
def type
'process_down'
end
|