Class: Sidekiq::ProcessHealth::Check::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/process_health/check/configuration.rb

Constant Summary collapse

DEFAULT_EXPECTED_PROCESS_NUMBER =
1
DEFAULT_JOB_THRESHOLD =
50

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
# File 'lib/sidekiq/process_health/check/configuration.rb', line 11

def initialize
  @expected_number_of_processes = DEFAULT_EXPECTED_PROCESS_NUMBER
  @job_threshold = DEFAULT_JOB_THRESHOLD
end

Instance Attribute Details

#expected_number_of_processesObject

Returns the value of attribute expected_number_of_processes.



9
10
11
# File 'lib/sidekiq/process_health/check/configuration.rb', line 9

def expected_number_of_processes
  @expected_number_of_processes
end

#job_thresholdObject

Returns the value of attribute job_threshold.



9
10
11
# File 'lib/sidekiq/process_health/check/configuration.rb', line 9

def job_threshold
  @job_threshold
end