Class: AwsAlertMonitor::Events::AutoScalingNotification
Instance Attribute Summary
#message_data, #raw_data
Instance Method Summary
collapse
#initialize
Instance Method Details
#body ⇒ Object
6
7
8
9
10
|
# File 'lib/aws-alert-monitor/events/auto_scaling_notification.rb', line 6
def body
cause = message_data['Cause']
description = message_data['Description']
"received an alert: \n\n #{description} \n\n #{cause}"
end
|
#subject ⇒ Object
12
13
14
|
# File 'lib/aws-alert-monitor/events/auto_scaling_notification.rb', line 12
def subject
"Alert: #{raw_data['Subject']}"
end
|
#type ⇒ Object
16
17
18
|
# File 'lib/aws-alert-monitor/events/auto_scaling_notification.rb', line 16
def type
message_data['Event']
end
|