Class: AwsAlertMonitor::Event
- Inherits:
-
Object
- Object
- AwsAlertMonitor::Event
- Defined in:
- lib/aws-alert-monitor/event.rb
Direct Known Subclasses
AwsAlertMonitor::Events::AutoScalingNotification, AwsAlertMonitor::Events::CloudWatchAlarm, AwsAlertMonitor::Events::ProcessDown, AwsAlertMonitor::Events::Unknown
Instance Attribute Summary collapse
-
#message_data ⇒ Object
readonly
Returns the value of attribute message_data.
-
#raw_data ⇒ Object
readonly
Returns the value of attribute raw_data.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(message) ⇒ Event
constructor
A new instance of Event.
- #subject ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(message) ⇒ Event
Returns a new instance of Event.
8 9 10 11 |
# File 'lib/aws-alert-monitor/event.rb', line 8 def initialize() @raw_data = JSON.parse() @message_data = end |
Instance Attribute Details
#message_data ⇒ Object (readonly)
Returns the value of attribute message_data.
5 6 7 |
# File 'lib/aws-alert-monitor/event.rb', line 5 def @message_data end |
#raw_data ⇒ Object (readonly)
Returns the value of attribute raw_data.
6 7 8 |
# File 'lib/aws-alert-monitor/event.rb', line 6 def raw_data @raw_data end |
Instance Method Details
#body ⇒ Object
13 14 15 |
# File 'lib/aws-alert-monitor/event.rb', line 13 def body raise NotImplementedError end |
#subject ⇒ Object
17 18 19 |
# File 'lib/aws-alert-monitor/event.rb', line 17 def subject @raw_data['Subject'] end |
#type ⇒ Object
21 22 23 |
# File 'lib/aws-alert-monitor/event.rb', line 21 def type raise NotImplementedError end |