# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/components/assess' require 'contrast/utils/string_utils' require 'contrast/agent/reporting/reporting_events/reportable_hash' module Contrast module Agent module Reporting # This is the new PreflightMessage class which will include all the needed information for the new reporting # system to report a single message, part of the main Preflight, to TeamServer. This message represents the # identifying information of a Finding/Trace, which TeamServer will use to determine if it requires the full # information of the Finding/Trace to be reported. class PreflightMessage < Contrast::Agent::Reporting::ReportableHash # @return [String] the message identifier; rule_id,hash attr_accessor :data # @return [String] CRC checksum of the finding to which this message pertains attr_accessor :hash_code # @return [Array