Sha256: f7dfae5a0aba8bfcbcc367ac7e3858c86a2c5db05766d920b8a7c18a6b8cab50
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 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/server_reporting_event' require 'contrast/config' module Contrast module Agent module Reporting # 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. class AgentStartup < Contrast::Agent::Reporting::ServerReportingEvent def initialize @event_method = :PUT @event_endpoint = Contrast::Agent::Reporting::Endpoints::NG_ENDPOINTS[:agent_startup] @event_type = :agent_startup super end def file_name 'agent-startup' end def to_controlled_hash { environment: ::Contrast::CONFIG.server.environment, tags: ::Contrast::CONFIG.server.tags, version: Contrast::Agent::VERSION } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems