Module: Datadog::Core::Configuration::Option::Precedence

Defined in:
lib/datadog/core/configuration/option.rb

Overview

Option setting precedence.

Defined Under Namespace

Classes: Value

Constant Summary collapse

REMOTE_CONFIGURATION =

Remote configuration provided through the Datadog app.

Value.new(5, :remote_configuration).freeze
PROGRAMMATIC =

Configuration provided in Ruby code, in this same process

Value.new(4, :programmatic).freeze
FLEET_STABLE =

Configuration provided by fleet managed stable config

Value.new(3, :fleet_stable).freeze
ENVIRONMENT =

Configuration provided via environment variable

Value.new(2, :environment).freeze
LOCAL_STABLE =

Configuration provided by local stable config file

Value.new(1, :local_stable).freeze
DEFAULT =

Configuration that comes from default values

Value.new(0, :default).freeze
LIST =

All precedences, sorted from highest to lowest

[REMOTE_CONFIGURATION, PROGRAMMATIC, FLEET_STABLE, ENVIRONMENT, LOCAL_STABLE, DEFAULT].sort.reverse.freeze