class OpticsAgent::Configuration
Public Class Methods
defaults()
click to toggle source
# File lib/optics-agent/agent.rb, line 229 def self.defaults { schema: nil, debug: false, disable_reporting: false, print_reports: false, report_traces: true, schema_report_delay_ms: 10 * 1000, report_interval_ms: 60 * 1000, api_key: ENV['OPTICS_API_KEY'], endpoint_url: ENV['OPTICS_ENDPOINT_URL'] || 'https://optics-report.apollodata.com' } end
new()
click to toggle source
# File lib/optics-agent/agent.rb, line 256 def initialize self.class.defaults.each { |key, value| self.send(key, value) } end