Class: RailsHealthChecks::Configuration
- Inherits:
-
Object
- Object
- RailsHealthChecks::Configuration
- Defined in:
- lib/rails_health_checks/configuration.rb
Instance Attribute Summary collapse
-
#allowed_ips ⇒ Object
Returns the value of attribute allowed_ips.
-
#authenticate_block ⇒ Object
readonly
Returns the value of attribute authenticate_block.
-
#checks ⇒ Object
Returns the value of attribute checks.
-
#good_job_latency ⇒ Object
Returns the value of attribute good_job_latency.
-
#resque_queue_size ⇒ Object
Returns the value of attribute resque_queue_size.
-
#sidekiq_queue_size ⇒ Object
Returns the value of attribute sidekiq_queue_size.
-
#solid_queue_job_count ⇒ Object
Returns the value of attribute solid_queue_job_count.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
- #authenticate(&block) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rails_health_checks/configuration.rb', line 9 def initialize @checks = [:database] @timeout = 5 @allowed_ips = nil @token = nil @authenticate_block = nil @sidekiq_queue_size = nil @solid_queue_job_count = nil @good_job_latency = nil @resque_queue_size = nil end |
Instance Attribute Details
#allowed_ips ⇒ Object
Returns the value of attribute allowed_ips.
5 6 7 |
# File 'lib/rails_health_checks/configuration.rb', line 5 def allowed_ips @allowed_ips end |
#authenticate_block ⇒ Object (readonly)
Returns the value of attribute authenticate_block.
7 8 9 |
# File 'lib/rails_health_checks/configuration.rb', line 7 def authenticate_block @authenticate_block end |
#checks ⇒ Object
Returns the value of attribute checks.
5 6 7 |
# File 'lib/rails_health_checks/configuration.rb', line 5 def checks @checks end |
#good_job_latency ⇒ Object
Returns the value of attribute good_job_latency.
5 6 7 |
# File 'lib/rails_health_checks/configuration.rb', line 5 def good_job_latency @good_job_latency end |
#resque_queue_size ⇒ Object
Returns the value of attribute resque_queue_size.
5 6 7 |
# File 'lib/rails_health_checks/configuration.rb', line 5 def resque_queue_size @resque_queue_size end |
#sidekiq_queue_size ⇒ Object
Returns the value of attribute sidekiq_queue_size.
5 6 7 |
# File 'lib/rails_health_checks/configuration.rb', line 5 def sidekiq_queue_size @sidekiq_queue_size end |
#solid_queue_job_count ⇒ Object
Returns the value of attribute solid_queue_job_count.
5 6 7 |
# File 'lib/rails_health_checks/configuration.rb', line 5 def solid_queue_job_count @solid_queue_job_count end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/rails_health_checks/configuration.rb', line 5 def timeout @timeout end |
#token ⇒ Object
Returns the value of attribute token.
5 6 7 |
# File 'lib/rails_health_checks/configuration.rb', line 5 def token @token end |
Instance Method Details
#authenticate(&block) ⇒ Object
21 22 23 |
# File 'lib/rails_health_checks/configuration.rb', line 21 def authenticate(&block) @authenticate_block = block end |