Sha256: f38129b08d9e58acfe3334651498a3a1356b7d79b6cf8b59c830eeea458a30c6

Contents?: true

Size: 685 Bytes

Versions: 4

Compression:

Stored size: 685 Bytes

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 to TeamServer.
      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
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
contrast-agent-6.11.0 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.10.0 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.9.0 lib/contrast/agent/reporting/reporting_events/poll.rb
contrast-agent-6.8.0 lib/contrast/agent/reporting/reporting_events/poll.rb