Class: Sidekiq::ProcessHealth::Check::Configuration
- Inherits:
-
Object
- Object
- Sidekiq::ProcessHealth::Check::Configuration
- 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
-
#expected_number_of_processes ⇒ Object
Returns the value of attribute expected_number_of_processes.
-
#job_threshold ⇒ Object
Returns the value of attribute job_threshold.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_processes ⇒ Object
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_threshold ⇒ Object
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 |