Class: Contrast::Agent::Reporting::Poll

Inherits:
ApplicationReportingEvent show all
Defined in:
lib/contrast/agent/reporting/reporting_events/poll.rb

Overview

This is the new Poll class for the Heartbeat to TeamServer.

Instance Attribute Summary

Attributes inherited from ReportingEvent

#event_endpoint, #event_method

Instance Method Summary collapse

Methods inherited from ReportingEvent

#attach_headers

Methods inherited from ReportableHash

#event_json, #to_controlled_hash, #valid?, #validate

Methods included from Components::Logger::InstanceMethods

#cef_logger, #logger

Constructor Details

#initializePoll

Returns a new instance of Poll.



11
12
13
14
15
# File 'lib/contrast/agent/reporting/reporting_events/poll.rb', line 11

def initialize
  @event_type = :heartbeat
  @event_endpoint = Contrast::Agent::Reporting::Endpoints.heartbeat
  super()
end

Instance Method Details

#file_nameObject



17
18
19
# File 'lib/contrast/agent/reporting/reporting_events/poll.rb', line 17

def file_name
  'applications-heartbeat'
end