Module: D13n::Configuration
- Defined in:
- lib/d13n/configuration.rb,
lib/d13n/configuration/manager.rb,
lib/d13n/configuration/dotted_hash.rb,
lib/d13n/configuration/yaml_source.rb,
lib/d13n/configuration/manual_source.rb,
lib/d13n/configuration/mask_defaults.rb,
lib/d13n/configuration/server_source.rb,
lib/d13n/configuration/default_source.rb,
lib/d13n/configuration/environment_source.rb
Defined Under Namespace
Classes: Boolean, DefaultSource, DottedHash, EnvironmentSource, Manager, ManualSource, ServerSource, YamlSource
Constant Summary collapse
- MASK_DEFAULTS =
{ }
- DEFAULTS =
{ :app_name => { :default => Proc.new{"#{D13n.app_name}"}, :public => true, :type => String, :allowed_from_server => false, :description => 'Define Application Name' }, :port => { :default => 3000, :public => true, :type => Integer, :description => 'Define service port' }, :host => { :default => '0.0.0.0', :public => true, :type => String, :description => 'Define service host' }, # # Log config # :log_level => { :default => 'info', :public => true, :type => String, :description => 'Sets the level of detail of log messages. Possible log levels, in increasing verbosity, are: <code>error</code>, <code>warn</code>, <code>info</code> or <code>debug</code>.' }, :log_file_path => { :default => 'stdout', :public => true, :type => String, :description => 'Defines a path to the log file, excluding the filename.' }, :log_file_name => { :default => Proc.new{"#{D13n.app_name}.log"}, :public => true, :type => String, :description => 'Defines a name for the log file.' }, # # YAML file Config # :config_path => { :default => DefaultSource.config_path, :public => true, :type => String, :description => 'Path to <b>application.yml</b>. If undefined, the agent checks the following directories (in order): <b>config/application.yml</b>, <b>application.yml</b>, <b>$HOME/.d13n/application.yml</b> and <b>$HOME/application.yml</b>.' }, :config_search_paths => { :default => DefaultSource.config_search_paths, :public => false, :type => Array, :allowed_from_server => false, :description => "An array of candidate locations for the service\'s configuration file." }, :'metric.channel.type' => { :default => 'logger', :public => true, :type => String, :allowed_from_server => true, :description => 'Metric Channel Type.' }, :'metric.app.http.in.apdex_t' => { :default => 300, :public => true, :type => Integer, :allowed_from_server => true, :description => 'Metric HTTP IN Apdex Config Value.' }, :'metric.app.http.in.tracable' => { :default => true, :public => true, :type => D13n::Configuration::Boolean, :description => 'Metric HTTP IN trace enable switch' }, :'metric.app.http.in.sinatra.enable' => { :default => true, :public => true, :type => D13n::Configuration::Boolean, :description => 'enable http in trace for sinatra' }, :'metric.app.http.in.sinatra.auto_middleware.enable' => { :default => true, :public => true, :type => D13n::Configuration::Boolean, :description => 'enable sinatra auto load middleware' }, :'metric.app.http.out.tracable' => { :default => true, :public => true, :type => D13n::Configuration::Boolean, :allowed_from_server => true, :description => "Metric HTTP OUT trace enable switch" } }