Class: Datadog::Core::Configuration::Settings::DSL::Remote

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/core/configuration/settings.rb

Overview

Remote configuration

Instance Attribute Summary collapse

Instance Attribute Details

#enabledBoolean

Enable remote configuration. This allows fetching of remote configuration for live updates.

Returns:

  • (Boolean)

Defaults to:

  • DD_REMOTE_CONFIGURATION_ENABLED environment variable, otherwise true. By default, remote configuration is disabled in development environments.



600
601
602
# File 'lib/datadog/core/configuration/settings.rb', line 600

def enabled
  @enabled
end

#serviceString?

Declare service name to bind to remote configuration. Use when DD_SERVICE does not match the correct integration for which remote configuration applies.

Returns:

  • (String, nil)

Defaults to:

  • nil.



634
635
636
# File 'lib/datadog/core/configuration/settings.rb', line 634

def service
  @service
end