Class: Contrast::Agent::Reporting::AgentStartup
- Inherits:
-
ServerReportingEvent
- Object
- ReportableHash
- ReportingEvent
- ServerReportingEvent
- Contrast::Agent::Reporting::AgentStartup
- Defined in:
- lib/contrast/agent/reporting/reporting_events/agent_startup.rb
Overview
AgentStartup Event which sends the agent data to TeamServer on the startup of a server or process, used to create a new Server entity there.
Instance Attribute Summary
Attributes inherited from ReportingEvent
#event_endpoint, #event_method
Instance Method Summary collapse
- #file_name ⇒ Object
-
#initialize ⇒ AgentStartup
constructor
A new instance of AgentStartup.
- #to_controlled_hash ⇒ Object
Methods inherited from ReportingEvent
Methods inherited from ReportableHash
#event_json, #valid?, #validate
Methods included from Components::Logger::InstanceMethods
Constructor Details
#initialize ⇒ AgentStartup
Returns a new instance of AgentStartup.
13 14 15 16 17 18 |
# File 'lib/contrast/agent/reporting/reporting_events/agent_startup.rb', line 13 def initialize @event_method = :PUT @event_endpoint = Contrast::Agent::Reporting::Endpoints::NG_ENDPOINTS[:agent_startup] @event_type = :agent_startup super() end |
Instance Method Details
#file_name ⇒ Object
20 21 22 |
# File 'lib/contrast/agent/reporting/reporting_events/agent_startup.rb', line 20 def file_name 'agent-startup' end |