Class: Datadog::Core::Telemetry::Event::AppEndpointsLoaded Private

Inherits:
Base
  • Object
show all
Defined in:
lib/datadog/core/telemetry/event/app_endpoints_loaded.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Telemetry event class for sending ‘app-endpoints’ payload

Instance Method Summary collapse

Methods inherited from Base

#==, #hash

Constructor Details

#initialize(endpoints, is_first:) ⇒ AppEndpointsLoaded

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AppEndpointsLoaded.



11
12
13
14
# File 'lib/datadog/core/telemetry/event/app_endpoints_loaded.rb', line 11

def initialize(endpoints, is_first:)
  @endpoints = endpoints
  @is_first = !!is_first
end

Instance Method Details

#payloadObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
23
24
25
# File 'lib/datadog/core/telemetry/event/app_endpoints_loaded.rb', line 20

def payload
  {
    is_first: @is_first,
    endpoints: @endpoints
  }
end

#typeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
# File 'lib/datadog/core/telemetry/event/app_endpoints_loaded.rb', line 16

def type
  'app-endpoints'
end