Class: RailsHealthChecks::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_health_checks/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_ipsObject

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_blockObject (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

#checksObject

Returns the value of attribute checks.



5
6
7
# File 'lib/rails_health_checks/configuration.rb', line 5

def checks
  @checks
end

#good_job_latencyObject

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_sizeObject

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_sizeObject

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_countObject

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

#timeoutObject

Returns the value of attribute timeout.



5
6
7
# File 'lib/rails_health_checks/configuration.rb', line 5

def timeout
  @timeout
end

#tokenObject

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