Sha256: 7679e8a641f60ee81003ab390cc5b727a56cf3358b6dfdecbc207034839834b9
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/agent/reporting/reporting_events/application_reporting_event' require 'contrast/agent/reporting/reporting_utilities/endpoints' require 'contrast/utils/timer' module Contrast module Agent module Reporting # This class will initialize a GET request to be send to TS. The application settings endpoint is the way # the Agent receives application sittings class ApplicationSettings < Contrast::Agent::Reporting::ApplicationReportingEvent def initialize @event_method = :GET @event_endpoint = Contrast::Agent::Reporting::Endpoints.application_settings super end def file_name 'application-settings' end # Attach the last server settings received timestamp to the request as it is required. # # If-Modified-Since: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT # @param request [Net::HTTPRequest] def attach_headers request request['If-Modified-Since'] = since_last_update_httpdate end # @return [Hash] # @raise [ArgumentError] def to_controlled_hash {} end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
contrast-agent-6.11.0 | lib/contrast/agent/reporting/reporting_events/application_settings.rb |
contrast-agent-6.10.0 | lib/contrast/agent/reporting/reporting_events/application_settings.rb |