Class: Datadog::Core::Telemetry::V1::Configuration
- Inherits:
-
Object
- Object
- Datadog::Core::Telemetry::V1::Configuration
- Defined in:
- lib/datadog/core/telemetry/v1/configuration.rb
Overview
Describes attributes for additional payload or configuration object
Constant Summary collapse
- ERROR_NIL_NAME_MESSAGE =
':name must not be nil'.freeze
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name:, value: nil) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(name:, value: nil) ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 |
# File 'lib/datadog/core/telemetry/v1/configuration.rb', line 15 def initialize(name:, value: nil) raise ArgumentError, ERROR_NIL_NAME_MESSAGE if name.nil? @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/datadog/core/telemetry/v1/configuration.rb', line 9 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/datadog/core/telemetry/v1/configuration.rb', line 9 def value @value end |