Class: OmniEvent::Configuration
- Inherits:
-
Object
- Object
- OmniEvent::Configuration
- Defined in:
- lib/omni_event/configuration.rb
Instance Attribute Summary collapse
-
#custom_log_types ⇒ Object
Returns the value of attribute custom_log_types.
-
#new_relic_account_id ⇒ Object
Returns the value of attribute new_relic_account_id.
-
#new_relic_api_key ⇒ Object
Returns the value of attribute new_relic_api_key.
-
#new_relic_enabled ⇒ Object
Returns the value of attribute new_relic_enabled.
-
#process_async ⇒ Object
Returns the value of attribute process_async.
-
#processors ⇒ Object
Returns the value of attribute processors.
-
#retention_days ⇒ Object
Returns the value of attribute retention_days.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 20 21 |
# File 'lib/omni_event/configuration.rb', line 13 def initialize @new_relic_enabled = false @new_relic_api_key = nil @new_relic_account_id = nil @retention_days = 30 @process_async = true @custom_log_types = { system_info: 0, system_error: 1 } @processors = {} end |
Instance Attribute Details
#custom_log_types ⇒ Object
Returns the value of attribute custom_log_types.
5 6 7 |
# File 'lib/omni_event/configuration.rb', line 5 def custom_log_types @custom_log_types end |
#new_relic_account_id ⇒ Object
Returns the value of attribute new_relic_account_id.
5 6 7 |
# File 'lib/omni_event/configuration.rb', line 5 def new_relic_account_id @new_relic_account_id end |
#new_relic_api_key ⇒ Object
Returns the value of attribute new_relic_api_key.
5 6 7 |
# File 'lib/omni_event/configuration.rb', line 5 def new_relic_api_key @new_relic_api_key end |
#new_relic_enabled ⇒ Object
Returns the value of attribute new_relic_enabled.
5 6 7 |
# File 'lib/omni_event/configuration.rb', line 5 def new_relic_enabled @new_relic_enabled end |
#process_async ⇒ Object
Returns the value of attribute process_async.
5 6 7 |
# File 'lib/omni_event/configuration.rb', line 5 def process_async @process_async end |
#processors ⇒ Object
Returns the value of attribute processors.
5 6 7 |
# File 'lib/omni_event/configuration.rb', line 5 def processors @processors end |
#retention_days ⇒ Object
Returns the value of attribute retention_days.
5 6 7 |
# File 'lib/omni_event/configuration.rb', line 5 def retention_days @retention_days end |