Sha256: de38c09b8c3f33cbe8f50579b844c92b3cf06f0d790b0ef03c916831d5514748

Contents?: true

Size: 1018 Bytes

Versions: 10

Compression:

Stored size: 1018 Bytes

Contents

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

require 'contrast/config/default_value'
require 'contrast/utils/object_share'

module Contrast
  module Config
    # Common Configuration settings. Those in this section pertain to the
    # application identification functionality of the Agent.
    class ApplicationConfiguration < BaseConfiguration
      KEYS = {
          name: EMPTY_VALUE,
          version: EMPTY_VALUE,
          language: EMPTY_VALUE,
          path: EMPTY_VALUE,
          group: EMPTY_VALUE,
          tags: EMPTY_VALUE,
          code: EMPTY_VALUE,
          metadata: EMPTY_VALUE,
          session_id: Contrast::Config::DefaultValue.new(Contrast::Utils::ObjectShare::EMPTY_STRING),
          session_metadata: Contrast::Config::DefaultValue.new(Contrast::Utils::ObjectShare::EMPTY_STRING)
      }.cs__freeze

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
contrast-agent-4.4.1 lib/contrast/config/application_configuration.rb
contrast-agent-4.4.0 lib/contrast/config/application_configuration.rb
contrast-agent-4.3.2 lib/contrast/config/application_configuration.rb
contrast-agent-4.3.1 lib/contrast/config/application_configuration.rb
contrast-agent-4.3.0 lib/contrast/config/application_configuration.rb
contrast-agent-4.2.0 lib/contrast/config/application_configuration.rb
contrast-agent-4.1.0 lib/contrast/config/application_configuration.rb
contrast-agent-4.0.0 lib/contrast/config/application_configuration.rb
contrast-agent-3.16.0 lib/contrast/config/application_configuration.rb
contrast-agent-3.15.0 lib/contrast/config/application_configuration.rb