Class: DatadogAPIClient::V1::LogsArrayMapProcessor
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::LogsArrayMapProcessor
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v1/models/logs_array_map_processor.rb
Overview
The array-map processor transforms each element of a source array by applying
sub-processors in order and collecting the results into a target array.
Results can be written to a new array, to the source array (in-place), or to
an existing target array. Sub-processors can read from $sourceElem.<field>
(object element field), bare $sourceElem (primitive element), or any parent
log attribute path. Sub-processors write to $targetElem.<field> (object
output field) or bare $targetElem (primitive output).
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#is_enabled ⇒ Object
Whether or not the processor is enabled.
-
#name ⇒ Object
Name of the processor.
-
#preserve_source ⇒ Object
When
falseandsource != target, the source attribute is removed after processing. -
#processors ⇒ Object
readonly
Sub-processors applied to each element.
-
#source ⇒ Object
readonly
Attribute path of the source array.
-
#target ⇒ Object
readonly
Attribute path of the output array.
-
#type ⇒ Object
readonly
Type of logs array-map processor.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
55 56 57 |
# File 'lib/datadog_api_client/v1/models/logs_array_map_processor.rb', line 55 def additional_properties @additional_properties end |
#is_enabled ⇒ Object
Whether or not the processor is enabled.
31 32 33 |
# File 'lib/datadog_api_client/v1/models/logs_array_map_processor.rb', line 31 def is_enabled @is_enabled end |
#name ⇒ Object
Name of the processor.
34 35 36 |
# File 'lib/datadog_api_client/v1/models/logs_array_map_processor.rb', line 34 def name @name end |
#preserve_source ⇒ Object
When false and source != target, the source attribute is removed after
processing. Cannot be false when source == target.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/logs_array_map_processor.rb', line 38 def preserve_source @preserve_source end |
#processors ⇒ Object
Sub-processors applied to each element. Allowed types: attribute-remapper,
string-builder-processor, arithmetic-processor, category-processor.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/logs_array_map_processor.rb', line 42 def processors @processors end |
#source ⇒ Object
Attribute path of the source array. Elements are read-only via $sourceElem
inside sub-processors.
46 47 48 |
# File 'lib/datadog_api_client/v1/models/logs_array_map_processor.rb', line 46 def source @source end |
#target ⇒ Object
Attribute path of the output array. Sub-processors write to $targetElem
(or $targetElem.<field>) to build each output element.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/logs_array_map_processor.rb', line 50 def target @target end |
#type ⇒ Object
Type of logs array-map processor.
53 54 55 |
# File 'lib/datadog_api_client/v1/models/logs_array_map_processor.rb', line 53 def type @type end |