Class: Salopulse::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/salopulse/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_sendObject

Returns the value of attribute before_send.



5
6
7
# File 'lib/salopulse/configuration.rb', line 5

def before_send
  @before_send
end

#dsnObject

Returns the value of attribute dsn.



5
6
7
# File 'lib/salopulse/configuration.rb', line 5

def dsn
  @dsn
end

#enabledObject

Returns the value of attribute enabled.



5
6
7
# File 'lib/salopulse/configuration.rb', line 5

def enabled
  @enabled
end

#environmentObject

Returns the value of attribute environment.



5
6
7
# File 'lib/salopulse/configuration.rb', line 5

def environment
  @environment
end

#flush_batch_sizeObject

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_intervalObject

Returns the value of attribute flush_interval.



5
6
7
# File 'lib/salopulse/configuration.rb', line 5

def flush_interval
  @flush_interval
end

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/salopulse/configuration.rb', line 5

def logger
  @logger
end

#max_buffer_sizeObject

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_thresholdObject

Returns the value of attribute n1_threshold.



5
6
7
# File 'lib/salopulse/configuration.rb', line 5

def n1_threshold
  @n1_threshold
end

#releaseObject

Returns the value of attribute release.



5
6
7
# File 'lib/salopulse/configuration.rb', line 5

def release
  @release
end

#sample_rateObject

Returns the value of attribute sample_rate.



5
6
7
# File 'lib/salopulse/configuration.rb', line 5

def sample_rate
  @sample_rate
end