Class: Datadog::Core::Configuration::ComponentsState
- Inherits:
-
Object
- Object
- Datadog::Core::Configuration::ComponentsState
- Defined in:
- lib/datadog/core/configuration/components_state.rb
Overview
Stores the state of component tree when replacing the tree.
Instance Method Summary collapse
-
#initialize(telemetry_enabled:, remote_started:) ⇒ ComponentsState
constructor
A new instance of ComponentsState.
- #remote_started? ⇒ Boolean
- #telemetry_enabled? ⇒ Boolean
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
17 18 19 |
# File 'lib/datadog/core/configuration/components_state.rb', line 17 def remote_started? @remote_started end |
#telemetry_enabled? ⇒ Boolean
13 14 15 |
# File 'lib/datadog/core/configuration/components_state.rb', line 13 def telemetry_enabled? @telemetry_enabled end |