Sha256: 29f1cccc03addee46e4050c1f761cd62984032f13a56039bb8271e9a2026f654

Contents?: true

Size: 1.31 KB

Versions: 19

Compression:

Stored size: 1.31 KB

Contents

HealthCheck::Engine.routes_manually_defined = true

HealthCheck.setup do |config|

  # Text output upon success
  config.success = 'success'

  # Timeout in seconds used when checking smtp server
  config.smtp_timeout = 30.0

  # http status code used when plain text error message is output
  # Set to 200 if you want your want to distinguish between partial (text does not include success) and
  # total failure of rails application (http status of 500 etc)

  config.http_status_for_error_text = 500

  # http status code used when an error object is output (json or xml)
  # Set to 200 if you want your want to distinguish between partial (healthy property == false) and
  # total failure of rails application (http status of 500 etc)

  config.http_status_for_error_object = 500

  # You can customize which checks happen on a standard health check
  config.standard_checks = [ 'database', 'migrations', 'custom' ]

  # You can set what tests are run with the 'full' or 'all' parameter
  config.full_checks = ['database', 'migrations', 'cache', 'custom']

  # Add one or more custom checks that return a blank string if ok, or an error message if there is an error
  config.add_custom_check do
    # any code that returns blank on success and non blank string upon failure
    MnoEnterprise::HealthCheck.perform_mno_hub_check
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
mno-enterprise-api-2.0.9 config/initializers/health_check.rb
mno-enterprise-api-2.0.8 config/initializers/health_check.rb
mno-enterprise-api-3.1.2 config/initializers/health_check.rb
mno-enterprise-api-3.0.5 config/initializers/health_check.rb
mno-enterprise-api-2.0.7 config/initializers/health_check.rb
mno-enterprise-api-2.0.6 config/initializers/health_check.rb
mno-enterprise-api-2.0.5 config/initializers/health_check.rb
mno-enterprise-api-3.1.1 config/initializers/health_check.rb
mno-enterprise-api-3.0.4 config/initializers/health_check.rb
mno-enterprise-api-2.0.4 config/initializers/health_check.rb
mno-enterprise-api-3.1.0 config/initializers/health_check.rb
mno-enterprise-api-3.0.3 config/initializers/health_check.rb
mno-enterprise-api-2.0.3 config/initializers/health_check.rb
mno-enterprise-api-3.0.2 config/initializers/health_check.rb
mno-enterprise-api-2.0.2 config/initializers/health_check.rb
mno-enterprise-api-3.0.1 config/initializers/health_check.rb
mno-enterprise-api-2.0.1 config/initializers/health_check.rb
mno-enterprise-api-3.0.0 config/initializers/health_check.rb
mno-enterprise-api-2.0.0 config/initializers/health_check.rb