Method: BaseMonitor#initialize

Defined in:
lib/test_case/monitoring/base_monitor.rb

#initialize(testcase, result_hash) ⇒ BaseMonitor

Returns a new instance of BaseMonitor.



11
12
13
14
15
16
17
18
19
20
# File 'lib/test_case/monitoring/base_monitor.rb', line 11

def initialize(testcase, result_hash)
  #stuff to do when monitor created
  @test_case = testcase
  @job = @test_case.job
  @logger = @test_case.logger
  @dut = @test_case.dut
  @host = @test_case.host
  @identity = @test_case.job
  @health_hash = result_hash
end