Module: Contrast::Agent::Reporting::ReporterClientUtils

Includes:
Endpoints, Resend, Components::Logger::InstanceMethods, Components::Scope::InstanceMethods
Included in:
ReporterClient
Defined in:
lib/contrast/agent/reporting/reporting_utilities/reporter_client_utils.rb

Overview

This module holds utilities required by the reporting service client

Constant Summary collapse

STRING_ENCODING =
'BINARY'
STARTUP_EVENTS =

List the events that need to be sent when agent starts up. The order here matters – DO NOT CHANGE IT!!! >_< - HM

If you add more, update the test in reporter_client_spec.rb

[
  Contrast::Agent::Reporting::AgentStartup,
  Contrast::Agent::Reporting::ApplicationStartup
].cs__freeze

Constants included from Endpoints

Endpoints::APP_LANGUAGE, Endpoints::ENDPOINT_VERSION, Endpoints::NG_ENDPOINTS

Constants included from Resend

Contrast::Agent::Reporting::Resend::END_RESENDING_MESSAGE, Contrast::Agent::Reporting::Resend::RESCUE_ATTEMPTS, Contrast::Agent::Reporting::Resend::RESENDING_MESSAGE, Contrast::Agent::Reporting::Resend::RETRY_ERRORS, Contrast::Agent::Reporting::Resend::TIMEOUT

Instance Method Summary collapse

Methods included from Endpoints

application_activity, application_inventory, application_settings, application_startup, effective_config, heartbeat, library_usage, observed_route, server_settings, trace_observed

Methods included from Components::Logger::InstanceMethods

#cef_logger, #logger

Methods included from Components::Scope::InstanceMethods

#contrast_enter_method_scopes!, #contrast_exit_method_scopes!, #with_app_scope, #with_contrast_scope, #with_deserialization_scope, #with_split_scope

Methods included from Resend

#end_of_rescue, #handle_resend, #handle_response_error, #try_resend

Instance Method Details

#auditObject



34
35
36
# File 'lib/contrast/agent/reporting/reporting_utilities/reporter_client_utils.rb', line 34

def audit
  @_audit ||= Contrast::Agent::Reporting::Audit.new
end