Class: DatadogAPIClient::V1::LogsArrayMapProcessor

Inherits:
Object
  • Object
show all
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

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

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_enabledObject

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

#nameObject

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_sourceObject

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

#processorsObject

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

#sourceObject

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

#targetObject

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

#typeObject

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