class InfluxReporter::Configuration
Constants
- DEFAULTS
Attributes
backoff_multiplier[RW]
context_lines[RW]
current_user_method[RW]
database[RW]
debug_traces[RW]
disable_errors[RW]
disable_performance[RW]
disable_worker[RW]
enabled_environments[RW]
environment[RW]
excluded_exceptions[RW]
filter_parameters[RW]
influx_db[RW]
logger[RW]
open_timeout[RW]
payload_values[RW]
timeout[RW]
transaction_post_interval[RW]
use_ssl[RW]
view_paths[RW]
worker_quit_timeout[RW]
Public Class Methods
new(opts = {}) { |self| ... }
click to toggle source
# File lib/influx_reporter/configuration.rb, line 69 def initialize(opts = {}) DEFAULTS.merge(opts).each do |k, v| send("#{k}=", v) end yield self if block_given? end
Public Instance Methods
validate!()
click to toggle source
# File lib/influx_reporter/configuration.rb, line 77 def validate! %w[database influx_db tags].each do |key| raise Error, "InfluxReporter Configuration missing `#{key}'" unless send(key) end true rescue Error => e logger.error e.message false end