Sha256: 0f0bb7cd708b278eaca1db976980558fcf0478114e68153c4cfc464b36b98f07

Contents?: true

Size: 1.17 KB

Versions: 15

Compression:

Stored size: 1.17 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'

module Contrast
  module Agent
    module Reporting
      # This is the new Poll class for the Heartbeat Service.
      class Poll < Contrast::Agent::Reporting::ApplicationReportingEvent
        def initialize
          @event_type = :heartbeat
          @event_endpoint = Contrast::Agent::Reporting::Endpoints.heartbeat
          super
        end

        def file_name
          'applications-heartbeat'
        end

        # This is commented out as I am not aware if we're supposed to send some information and/or parse it to hash
        # In https://github.com/Contrast-Security-Inc/contrast-service/blob/next/reporting/tsreporter.go
        #
        # Convert the instance variables on the class, and other information, into the identifiers required for
        # TeamServer to process the JSON form of this message.
        #
        # @return [Hash]
        # @raise [ArgumentError]
        # def to_controlled_hash; end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
contrast-agent-6.7.0 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.6.5 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.6.4 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.6.3 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.6.2 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.6.1 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.6.0 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.5.1 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.5.0 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.4.0 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.3.0 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.2.0 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.1.2 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.1.1 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.1.0 lib/contrast/agent/reporting/reporting_events/poll.rb