Sha256: 7dd0808b167eb2ccba040e2f016155594e5a8e5f51c255a6860e65de48ed2373

Contents?: true

Size: 691 Bytes

Versions: 2

Compression:

Stored size: 691 Bytes

Contents

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

require 'contrast/agent/reporting/reporting_events/reporting_event'

module Contrast
  module Agent
    module Reporting
      # This class here will hold the needed preflights we will send for certain trace/traces
      class Preflight < Contrast::Agent::Reporting::ReportingEvent
        attr_accessor :messages

        def initialize
          super
          @event_type = :preflight
          @messages = []
        end

        def to_controlled_hash **_args
          { messages: @messages }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contrast-agent-4.14.1 lib/contrast/agent/reporting/reporting_events/preflight.rb
contrast-agent-4.14.0 lib/contrast/agent/reporting/reporting_events/preflight.rb