Class: Datadog::Core::Telemetry::Event::AppStarted Private

Inherits:
Base
  • Object
show all
Defined in:
lib/datadog/core/telemetry/event/app_started.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 class for the ‘app-started’ event

Direct Known Subclasses

SynthAppClientConfigurationChange

Instance Method Summary collapse

Methods inherited from Base

#==, #hash

Constructor Details

#initialize(components:) ⇒ AppStarted

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 AppStarted.



11
12
13
14
15
16
17
# File 'lib/datadog/core/telemetry/event/app_started.rb', line 11

def initialize(components:)
  # To not hold a reference to the component tree, generate
  # the event payload here in the constructor.
  @configuration = configuration(components.settings, components.agent_settings)
  @install_signature = install_signature(components.settings)
  @products = products(components)
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.



23
24
25
26
27
28
29
30
31
# File 'lib/datadog/core/telemetry/event/app_started.rb', line 23

def payload
  {
    products: @products,
    configuration: @configuration,
    install_signature: @install_signature,
    # DEV: Not implemented yet
    # error: error, # Start-up errors
  }
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.



19
20
21
# File 'lib/datadog/core/telemetry/event/app_started.rb', line 19

def type
  'app-started'
end