class Tpt::Rails::Config

Attributes

app_env[RW]

E.g. production/integration/jordan123

app_name[RW]

E.g. earnings/resource-write/tpt-data

bugsnag_api_key[RW]

A project-specific api key from Bugsnag

datadog_statsd_url[RW]

Set this in the form of: statsd://:[port]'

datadog_trace_url[RW]

Set this in the form of: datadog://:[port]'

redis_url[RW]

Set this in the form of: redis://:@[hostname]:/[db]

rollbar_access_token[RW]

A project-specific access token from rollbar

rollbar_enabled[RW]

Allow enabling/disabling Rollbar. Defaults to false.

Public Instance Methods

health_check(name, &block) click to toggle source

Add a health check to the endpoint provided at `/internal/health-check` by Tpt::Rails::HealthChecksController.

The block provided to this method should return a truthy/falsey value for success/failure.

Example:

config.health_check(:foo) { 'foo' == 'foo' }
# File lib/tpt/rails/config.rb, line 36
def health_check(name, &block)
  @health_checks.add(name, &block)
end