Class: Apidepth::Configuration
- Inherits:
-
Object
- Object
- Apidepth::Configuration
- Defined in:
- lib/apidepth/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#collector_url ⇒ Object
Returns the value of attribute collector_url.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#extra_vendors ⇒ Object
Returns the value of attribute extra_vendors.
-
#flush_interval ⇒ Object
Returns the value of attribute flush_interval.
-
#ignored_hosts ⇒ Object
Returns the value of attribute ignored_hosts.
-
#on_flush_error ⇒ Object
Returns the value of attribute on_flush_error.
-
#registry_cache_path ⇒ Object
Returns the value of attribute registry_cache_path.
-
#registry_refresh_interval ⇒ Object
Returns the value of attribute registry_refresh_interval.
-
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/apidepth/configuration.rb', line 17 def initialize @enabled = true @flush_interval = 20 @registry_refresh_interval = 6 * 60 * 60 @registry_cache_path = "/tmp/apidepth_registry.json" @collector_url = nil @ignored_hosts = [] @on_flush_error = nil @environment = nil # Railtie sets this to Rails.env at boot @sample_rate = 1.0 # capture everything by default @extra_vendors = {} # customer-defined host mappings end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def api_key @api_key end |
#collector_url ⇒ Object
Returns the value of attribute collector_url.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def collector_url @collector_url end |
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def enabled @enabled end |
#environment ⇒ Object
Returns the value of attribute environment.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def environment @environment end |
#extra_vendors ⇒ Object
Returns the value of attribute extra_vendors.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def extra_vendors @extra_vendors end |
#flush_interval ⇒ Object
Returns the value of attribute flush_interval.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def flush_interval @flush_interval end |
#ignored_hosts ⇒ Object
Returns the value of attribute ignored_hosts.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def ignored_hosts @ignored_hosts end |
#on_flush_error ⇒ Object
Returns the value of attribute on_flush_error.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def on_flush_error @on_flush_error end |
#registry_cache_path ⇒ Object
Returns the value of attribute registry_cache_path.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def registry_cache_path @registry_cache_path end |
#registry_refresh_interval ⇒ Object
Returns the value of attribute registry_refresh_interval.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def registry_refresh_interval @registry_refresh_interval end |
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
5 6 7 |
# File 'lib/apidepth/configuration.rb', line 5 def sample_rate @sample_rate end |