Class: Contrast::Agent::Reporting::ApplicationStartupInstrumentation

Inherits:
Object
  • Object
show all
Defined in:
lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb

Overview

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.

Instance Method Summary collapse

Instance Method Details

#to_controlled_hashHash

Convert the instance variables on the class, and other information, into the identifiers required for TeamServer to process the JSON form of this message.

Returns:

Raises:

  • (ArgumentError)


17
18
19
20
21
22
23
# File 'lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb', line 17

def to_controlled_hash
  {
      protect: {
          enable: ::Contrast::PROTECT.enabled?
      }
  }
end