Class: Wakame::Triggers::LoadHistoryMonitor::AgentLoadHighEvent
- Inherits:
-
Event::Base
- Object
- Event::Base
- Wakame::Triggers::LoadHistoryMonitor::AgentLoadHighEvent
- Defined in:
- lib/wakame/triggers/load_history.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
-
#load_avg ⇒ Object
readonly
Returns the value of attribute load_avg.
Attributes inherited from Event::Base
Instance Method Summary collapse
-
#initialize(agent, load_avg) ⇒ AgentLoadHighEvent
constructor
A new instance of AgentLoadHighEvent.
Methods inherited from Event::Base
Constructor Details
#initialize(agent, load_avg) ⇒ AgentLoadHighEvent
Returns a new instance of AgentLoadHighEvent.
7 8 9 10 11 |
# File 'lib/wakame/triggers/load_history.rb', line 7 def initialize(agent, load_avg) super() @agent = agent @load_avg = load_avg end |
Instance Attribute Details
#agent ⇒ Object (readonly)
Returns the value of attribute agent.
6 7 8 |
# File 'lib/wakame/triggers/load_history.rb', line 6 def agent @agent end |
#load_avg ⇒ Object (readonly)
Returns the value of attribute load_avg.
6 7 8 |
# File 'lib/wakame/triggers/load_history.rb', line 6 def load_avg @load_avg end |