Class: Datadog::Core::Telemetry::Event::AppEndpointsLoaded Private
- 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
-
#initialize(endpoints, is_first:) ⇒ AppEndpointsLoaded
constructor
private
A new instance of AppEndpointsLoaded.
- #payload ⇒ Object private
- #type ⇒ Object private
Methods inherited from Base
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
#payload ⇒ Object
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 |
#type ⇒ Object
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 |