Sha256: b45e1283d45e669b97b4ee47c9d078572b1397afc9b88c1ab7f55e8902032e6a

Contents?: true

Size: 941 Bytes

Versions: 18

Compression:

Stored size: 941 Bytes

Contents

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

require 'contrast/components/protect'

module Contrast
  module Agent
    module Reporting
      # This is the new ApplicationStartupInstrumentation class which will include all the needed information for the
      # system to report the instrumentation mode to which the agent was set by local configuration.
      class ApplicationStartupInstrumentation
        # Convert the instance variables on the class, and other information, into the identifiers required for
        # TeamServer to process the JSON form of this message.
        #
        # @return [Hash]
        # @raise [ArgumentError]
        def to_controlled_hash
          {
              protect: {
                  enable: ::Contrast::PROTECT.enabled?
              }
          }
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
contrast-agent-7.6.1 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-7.6.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-7.5.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-7.4.1 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-7.4.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-7.3.2 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-7.3.1 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-7.3.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-7.2.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-7.1.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-7.0.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-6.15.3 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-6.15.2 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-6.15.1 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-6.15.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-6.14.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-6.13.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb
contrast-agent-6.12.0 lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb