Class: Datadog::Core::Configuration::ComponentsState

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/core/configuration/components_state.rb

Overview

Stores the state of component tree when replacing the tree.

Instance Method Summary collapse

Constructor Details

#initialize(telemetry_enabled:, remote_started:) ⇒ ComponentsState

Returns a new instance of ComponentsState.



8
9
10
11
# File 'lib/datadog/core/configuration/components_state.rb', line 8

def initialize(telemetry_enabled:, remote_started:)
  @telemetry_enabled = !!telemetry_enabled
  @remote_started = !!remote_started
end

Instance Method Details

#remote_started?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/datadog/core/configuration/components_state.rb', line 17

def remote_started?
  @remote_started
end

#telemetry_enabled?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/datadog/core/configuration/components_state.rb', line 13

def telemetry_enabled?
  @telemetry_enabled
end