Class: Datadog::DI::CaptureExpressionEvaluator::Result Private
- Inherits:
-
Object
- Object
- Datadog::DI::CaptureExpressionEvaluator::Result
- Defined in:
- lib/datadog/di/capture_expression_evaluator/result.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.
The result of evaluating a probe's capture expressions: the serialized values and the evaluation errors.
Instance Attribute Summary collapse
-
#errors ⇒ Array<EvaluationFailure>
readonly
private
The evaluation errors; one entry per expression that failed to evaluate or serialize.
-
#serialized_values ⇒ Hash{String => untyped}
readonly
private
The serialized values keyed by capture expression name.
Instance Method Summary collapse
-
#initialize(serialized_values:, errors:) ⇒ void
constructor
private
Initializes the result.
Constructor Details
#initialize(serialized_values:, errors:) ⇒ void
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.
Initializes the result.
14 15 16 17 |
# File 'lib/datadog/di/capture_expression_evaluator/result.rb', line 14 def initialize(serialized_values:, errors:) @serialized_values = serialized_values @errors = errors end |
Instance Attribute Details
#errors ⇒ Array<EvaluationFailure> (readonly)
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.
The evaluation errors; one entry per expression that failed to evaluate or serialize.
26 27 28 |
# File 'lib/datadog/di/capture_expression_evaluator/result.rb', line 26 def errors @errors end |
#serialized_values ⇒ Hash{String => untyped} (readonly)
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.
The serialized values keyed by capture expression name.
21 22 23 |
# File 'lib/datadog/di/capture_expression_evaluator/result.rb', line 21 def serialized_values @serialized_values end |