Class: Wakame::Triggers::LoadHistoryMonitor::AgentLoadHighEvent

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) ⇒ 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

#agentObject (readonly)

Returns the value of attribute agent.



6
7
8
# File 'lib/wakame/triggers/load_history.rb', line 6

def agent
  @agent
end

#load_avgObject (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