Class: Wakame::Triggers::LoadHistoryMonitor::AgentLoadNormalEvent

Inherits:
Event::Base
  • Object
show all
Defined in:
lib/wakame/triggers/load_history.rb

Instance Attribute Summary collapse

Attributes inherited from Event::Base

#time

Instance Method Summary collapse

Methods inherited from Event::Base

#log_message

Constructor Details

#initialize(agent, load_avg) ⇒ AgentLoadNormalEvent

Returns a new instance of AgentLoadNormalEvent.



15
16
17
18
19
# File 'lib/wakame/triggers/load_history.rb', line 15

def initialize(agent, load_avg)
  super()
  @agent = agent
  @load_avg = load_avg
end

Instance Attribute Details

#agentObject (readonly)

Returns the value of attribute agent.



14
15
16
# File 'lib/wakame/triggers/load_history.rb', line 14

def agent
  @agent
end

#load_avgObject (readonly)

Returns the value of attribute load_avg.



14
15
16
# File 'lib/wakame/triggers/load_history.rb', line 14

def load_avg
  @load_avg
end