Class: Datadog::Core::Telemetry::Event::AppExtendedHeartbeat Private

Inherits:
AppStarted
  • Object
show all
Defined in:
lib/datadog/core/telemetry/event/app_extended_heartbeat.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-extended-heartbeat' event

Instance Method Summary collapse

Methods inherited from Base

#==, #hash

Constructor Details

#initialize(settings:, agent_settings:) ⇒ AppExtendedHeartbeat

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



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

def initialize(settings:, agent_settings:)
  @configuration = configuration(settings, agent_settings)
end

Instance Method Details

#app_started? ⇒ Boolean

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:

  • (Boolean)


25
26
27
# File 'lib/datadog/core/telemetry/event/app_extended_heartbeat.rb', line 25

def app_started?
  false
end

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



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

def payload
  {
    configuration: @configuration,
  }
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.



15
16
17
# File 'lib/datadog/core/telemetry/event/app_extended_heartbeat.rb', line 15

def type
  "app-extended-heartbeat"
end