Class: Salopulse::Configuration
- Inherits:
-
Object
- Object
- Salopulse::Configuration
- Defined in:
- lib/salopulse/configuration.rb
Instance Attribute Summary collapse
-
#before_send ⇒ Object
Returns the value of attribute before_send.
-
#dsn ⇒ Object
Returns the value of attribute dsn.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#flush_batch_size ⇒ Object
Returns the value of attribute flush_batch_size.
-
#flush_interval ⇒ Object
Returns the value of attribute flush_interval.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#max_buffer_size ⇒ Object
Returns the value of attribute max_buffer_size.
-
#n1_threshold ⇒ Object
Returns the value of attribute n1_threshold.
-
#release ⇒ Object
Returns the value of attribute release.
-
#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.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/salopulse/configuration.rb', line 9 def initialize @release = nil @environment = nil @sample_rate = 1.0 @flush_interval = 5 @flush_batch_size = 100 @n1_threshold = 10 @before_send = nil @logger = Logger.new($stdout, level: Logger::WARN) @enabled = true @max_buffer_size = 10_000 end |
Instance Attribute Details
#before_send ⇒ Object
Returns the value of attribute before_send.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def before_send @before_send end |
#dsn ⇒ Object
Returns the value of attribute dsn.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def dsn @dsn end |
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def enabled @enabled end |
#environment ⇒ Object
Returns the value of attribute environment.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def environment @environment end |
#flush_batch_size ⇒ Object
Returns the value of attribute flush_batch_size.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def flush_batch_size @flush_batch_size end |
#flush_interval ⇒ Object
Returns the value of attribute flush_interval.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def flush_interval @flush_interval end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def logger @logger end |
#max_buffer_size ⇒ Object
Returns the value of attribute max_buffer_size.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def max_buffer_size @max_buffer_size end |
#n1_threshold ⇒ Object
Returns the value of attribute n1_threshold.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def n1_threshold @n1_threshold end |
#release ⇒ Object
Returns the value of attribute release.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def release @release end |
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
5 6 7 |
# File 'lib/salopulse/configuration.rb', line 5 def sample_rate @sample_rate end |