class SecureNative::Config::ConfigurationBuilder

Attributes

api_key[RW]
api_url[RW]
auto_send[RW]
disable[RW]
fail_over_strategy[RW]
interval[RW]
log_level[RW]
max_events[RW]
proxy_headers[RW]
timeout[RW]

Public Class Methods

default_securenative_options() click to toggle source
# File lib/securenative/config/configuration_builder.rb, line 24
def self.default_securenative_options
  Options.new
end
new(api_key: nil, api_url: 'https://api.securenative.com/collector/api/v1', interval: 1000, max_events: 1000, timeout: 1500, auto_send: true, disable: false, log_level: 'FATAL', fail_over_strategy: SecureNative::FailOverStrategy::FAIL_OPEN, proxy_headers: nil) click to toggle source
# File lib/securenative/config/configuration_builder.rb, line 9
def initialize(api_key: nil, api_url: 'https://api.securenative.com/collector/api/v1', interval: 1000,
               max_events: 1000, timeout: 1500, auto_send: true, disable: false, log_level: 'FATAL',
               fail_over_strategy: SecureNative::FailOverStrategy::FAIL_OPEN, proxy_headers: nil)
  @api_key = api_key
  @api_url = api_url
  @interval = interval
  @max_events = max_events
  @timeout = timeout
  @auto_send = auto_send
  @disable = disable
  @log_level = log_level
  @fail_over_strategy = fail_over_strategy
  @proxy_headers = proxy_headers
end