Class: AwsAlertMonitor::Events::CloudWatchAlarm
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/cloud_watch_alarm.rb', line 6
def body
message = "received an alert: \n\n #{alarm_description} \n\n"
message << " #{alarm_new_state_reason} \n\n"
message << " At #{alarm_state_change_time}"
end
|
#subject ⇒ Object
12
13
14
|
# File 'lib/aws-alert-monitor/events/cloud_watch_alarm.rb', line 12
def subject
"Alert: #{alarm_name}"
end
|
#type ⇒ Object
16
17
18
|
# File 'lib/aws-alert-monitor/events/cloud_watch_alarm.rb', line 16
def type
"cloudwatch:#{metric_namespace}-#{metric_name}"
end
|