Class: Wakame::Event::ServiceMonitorStatusChanged
- Inherits:
-
ServiceStatus
- Object
- Base
- ServiceStatus
- Wakame::Event::ServiceMonitorStatusChanged
- Defined in:
- lib/wakame/event.rb
Overview
Event class for the change of ServiceInstance#monitor_status
Instance Attribute Summary collapse
-
#previous_status ⇒ Object
readonly
Returns the value of attribute previous_status.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Attributes inherited from ServiceStatus
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(instance_id, new_status, prev_status) ⇒ ServiceMonitorStatusChanged
constructor
A new instance of ServiceMonitorStatusChanged.
- #log_message ⇒ Object
Constructor Details
#initialize(instance_id, new_status, prev_status) ⇒ ServiceMonitorStatusChanged
Returns a new instance of ServiceMonitorStatusChanged.
81 82 83 84 85 |
# File 'lib/wakame/event.rb', line 81 def initialize(instance_id, new_status, prev_status) super(instance_id) @status = new_status @previous_status = prev_status end |
Instance Attribute Details
#previous_status ⇒ Object (readonly)
Returns the value of attribute previous_status.
80 81 82 |
# File 'lib/wakame/event.rb', line 80 def previous_status @previous_status end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
80 81 82 |
# File 'lib/wakame/event.rb', line 80 def status @status end |
Instance Method Details
#log_message ⇒ Object
87 88 89 |
# File 'lib/wakame/event.rb', line 87 def "#{instance_id}, #{@previous_status} -> #{@status}" end |