Class: Sentiero::Reporter::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/sentiero/reporter/configuration.rb', line 17

def initialize
  @endpoint = nil
  @ingest_key = nil
  @project = nil
  @environment = nil
  @release = nil
  @default_filter_keys = Scrubber::DEFAULT_KEYS.dup
  @filter_keys = []
  @enabled = true
  @async = true
  @max_queue = 100
  @open_timeout = 2
  @read_timeout = 3
  @session_cookie_name = "sentiero_sid"
  @window_cookie_name = "sentiero_wid"
  @transport = nil
  @ignore_exceptions = []
  @before_notify = nil
end

Instance Attribute Details

#asyncObject

Returns the value of attribute async.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def async
  @async
end

#before_notifyObject

Returns the value of attribute before_notify.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def before_notify
  @before_notify
end

#default_filter_keysObject

Returns the value of attribute default_filter_keys.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def default_filter_keys
  @default_filter_keys
end

#enabledObject

Returns the value of attribute enabled.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def enabled
  @enabled
end

#endpointObject

Returns the value of attribute endpoint.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def endpoint
  @endpoint
end

#environmentObject

Returns the value of attribute environment.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def environment
  @environment
end

#filter_keysObject

Returns the value of attribute filter_keys.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def filter_keys
  @filter_keys
end

#ignore_exceptionsObject

Returns the value of attribute ignore_exceptions.



15
16
17
# File 'lib/sentiero/reporter/configuration.rb', line 15

def ignore_exceptions
  @ignore_exceptions
end

#ingest_keyObject

Returns the value of attribute ingest_key.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def ingest_key
  @ingest_key
end

#max_queueObject

Returns the value of attribute max_queue.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def max_queue
  @max_queue
end

#open_timeoutObject

Returns the value of attribute open_timeout.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def open_timeout
  @open_timeout
end

#projectObject

Returns the value of attribute project.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def project
  @project
end

#read_timeoutObject

Returns the value of attribute read_timeout.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def read_timeout
  @read_timeout
end

#releaseObject

Returns the value of attribute release.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def release
  @release
end

Returns the value of attribute session_cookie_name.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def session_cookie_name
  @session_cookie_name
end

#transportObject

Returns the value of attribute transport.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def transport
  @transport
end

Returns the value of attribute window_cookie_name.



8
9
10
# File 'lib/sentiero/reporter/configuration.rb', line 8

def window_cookie_name
  @window_cookie_name
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/sentiero/reporter/configuration.rb', line 45

def active?
  enabled && configured?
end

#configured?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/sentiero/reporter/configuration.rb', line 41

def configured?
  !endpoint.nil? && !ingest_key.nil? && !project.nil?
end