Sha256: 09a581b2d53b6460f3a3486306c7eeb9f6a446e3b12eb9d06a328054856be57f

Contents?: true

Size: 792 Bytes

Versions: 2

Compression:

Stored size: 792 Bytes

Contents

# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

module Contrast
  module Config
    # Common Configuration settings. Those in this section pertain to the
    # core functionality of the Agent.
    class AgentConfiguration < BaseConfiguration
      KEYS = {
          enable: EMPTY_VALUE,
          start_bundled_service: true,
          omit_body: EMPTY_VALUE,
          service: Contrast::Config::ServiceConfiguration,
          logger: Contrast::Config::LoggerConfiguration,
          ruby: Contrast::Config::RubyConfiguration,
          heap_dump: Contrast::Config::HeapDumpConfiguration
      }.cs__freeze

      def initialize hsh
        super(hsh, KEYS)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contrast-agent-5.1.0 lib/contrast/config/agent_configuration.rb
contrast-agent-5.0.0 lib/contrast/config/agent_configuration.rb