Module: Contrast::Components::Settings

Defined in:
lib/contrast/components/settings.rb

Overview

This component encapsulates the statefulness of settings. When we say ‘settings’, we’re referring specifically to external directives (likely provided by TeamServer) about product operation. ‘Settings’ is not a generic term for ‘configurable stuff’.

Defined Under Namespace

Classes: Interface

Constant Summary collapse

AGENT_STATE_BASE =
Struct.new(:logger_path, :logger_level, :cef_logger_path, :cef_logger_level).
new(nil, nil, nil, nil)
APPLICATION_STATE_BASE =
Struct.new(:modes_by_id).new({})
PROTECT_STATE_BASE =
Struct.new(:enabled).new(false)
ASSESS_STATE_BASE =
Struct.new(:enabled, :sampling_settings, :disabled_assess_rules, :session_id).
    new(false, nil, [], nil) do
  def sampling_settings= new_val
    @sampling_settings = new_val
    Contrast::Utils::Assess::SamplingUtil.instance.update
  end
end
SENSITIVE_DATA_MASKING_BASE =
Contrast::Agent::Reporting::Settings::SensitiveDataMasking.new