Class: HTTPigeon::Configuration
- Inherits:
-
Object
- Object
- HTTPigeon::Configuration
- Defined in:
- lib/httpigeon/configuration.rb
Instance Attribute Summary collapse
-
#auto_generate_request_id ⇒ Object
Returns the value of attribute auto_generate_request_id.
-
#default_event_type ⇒ Object
Returns the value of attribute default_event_type.
-
#default_filter_keys ⇒ Object
Returns the value of attribute default_filter_keys.
-
#event_logger ⇒ Object
Returns the value of attribute event_logger.
-
#exception_notifier ⇒ Object
Returns the value of attribute exception_notifier.
-
#fuse_error_codes_watchlist ⇒ Object
Returns the value of attribute fuse_error_codes_watchlist.
-
#fuse_failure_rate_threshold ⇒ Object
Returns the value of attribute fuse_failure_rate_threshold.
-
#fuse_max_failures_count ⇒ Object
Returns the value of attribute fuse_max_failures_count.
-
#fuse_min_failures_count ⇒ Object
Returns the value of attribute fuse_min_failures_count.
-
#fuse_on_circuit_closed ⇒ Object
Returns the value of attribute fuse_on_circuit_closed.
-
#fuse_on_circuit_opened ⇒ Object
Returns the value of attribute fuse_on_circuit_opened.
-
#fuse_open_circuit_handler ⇒ Object
Returns the value of attribute fuse_open_circuit_handler.
-
#fuse_open_circuit_sleep_window ⇒ Object
Returns the value of attribute fuse_open_circuit_sleep_window.
-
#fuse_sample_window ⇒ Object
Returns the value of attribute fuse_sample_window.
-
#log_circuit_events ⇒ Object
Returns the value of attribute log_circuit_events.
-
#log_redactor ⇒ Object
Returns the value of attribute log_redactor.
-
#mount_circuit_breaker ⇒ Object
Returns the value of attribute mount_circuit_breaker.
-
#notify_all_exceptions ⇒ Object
Returns the value of attribute notify_all_exceptions.
-
#redactor_string ⇒ Object
Returns the value of attribute redactor_string.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/httpigeon/configuration.rb', line 23 def initialize @default_event_type = 'http.outbound' @default_filter_keys = [] @redactor_string = '[FILTERED]' @log_redactor = nil @event_logger = nil @auto_generate_request_id = true @notify_all_exceptions = false @exception_notifier = nil @mount_circuit_breaker = false @log_circuit_events = true @fuse_error_codes_watchlist = [] @fuse_on_circuit_opened = ->(*_args) {} @fuse_on_circuit_closed = ->(*_args) {} @fuse_open_circuit_handler = nil @fuse_max_failures_count = 10 @fuse_min_failures_count = 5 @fuse_failure_rate_threshold = 0.5 @fuse_sample_window = 60 @fuse_open_circuit_sleep_window = 30 end |
Instance Attribute Details
#auto_generate_request_id ⇒ Object
Returns the value of attribute auto_generate_request_id.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def auto_generate_request_id @auto_generate_request_id end |
#default_event_type ⇒ Object
Returns the value of attribute default_event_type.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def default_event_type @default_event_type end |
#default_filter_keys ⇒ Object
Returns the value of attribute default_filter_keys.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def default_filter_keys @default_filter_keys end |
#event_logger ⇒ Object
Returns the value of attribute event_logger.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def event_logger @event_logger end |
#exception_notifier ⇒ Object
Returns the value of attribute exception_notifier.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def exception_notifier @exception_notifier end |
#fuse_error_codes_watchlist ⇒ Object
Returns the value of attribute fuse_error_codes_watchlist.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def fuse_error_codes_watchlist @fuse_error_codes_watchlist end |
#fuse_failure_rate_threshold ⇒ Object
Returns the value of attribute fuse_failure_rate_threshold.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def fuse_failure_rate_threshold @fuse_failure_rate_threshold end |
#fuse_max_failures_count ⇒ Object
Returns the value of attribute fuse_max_failures_count.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def fuse_max_failures_count @fuse_max_failures_count end |
#fuse_min_failures_count ⇒ Object
Returns the value of attribute fuse_min_failures_count.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def fuse_min_failures_count @fuse_min_failures_count end |
#fuse_on_circuit_closed ⇒ Object
Returns the value of attribute fuse_on_circuit_closed.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def fuse_on_circuit_closed @fuse_on_circuit_closed end |
#fuse_on_circuit_opened ⇒ Object
Returns the value of attribute fuse_on_circuit_opened.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def fuse_on_circuit_opened @fuse_on_circuit_opened end |
#fuse_open_circuit_handler ⇒ Object
Returns the value of attribute fuse_open_circuit_handler.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def fuse_open_circuit_handler @fuse_open_circuit_handler end |
#fuse_open_circuit_sleep_window ⇒ Object
Returns the value of attribute fuse_open_circuit_sleep_window.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def fuse_open_circuit_sleep_window @fuse_open_circuit_sleep_window end |
#fuse_sample_window ⇒ Object
Returns the value of attribute fuse_sample_window.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def fuse_sample_window @fuse_sample_window end |
#log_circuit_events ⇒ Object
Returns the value of attribute log_circuit_events.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def log_circuit_events @log_circuit_events end |
#log_redactor ⇒ Object
Returns the value of attribute log_redactor.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def log_redactor @log_redactor end |
#mount_circuit_breaker ⇒ Object
Returns the value of attribute mount_circuit_breaker.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def mount_circuit_breaker @mount_circuit_breaker end |
#notify_all_exceptions ⇒ Object
Returns the value of attribute notify_all_exceptions.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def notify_all_exceptions @notify_all_exceptions end |
#redactor_string ⇒ Object
Returns the value of attribute redactor_string.
3 4 5 |
# File 'lib/httpigeon/configuration.rb', line 3 def redactor_string @redactor_string end |