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).

Hierarchy

  • LogsArrayMapProcessor

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
isEnabled?: boolean

Whether or not the processor is enabled.

name?: string

Name of the processor.

preserveSource?: boolean

When false and source != target, the source attribute is removed after processing. Cannot be false when source == target.

Sub-processors applied to each element. Allowed types: attribute-remapper, string-builder-processor, arithmetic-processor, category-processor.

source: string

Attribute path of the source array. Elements are read-only via $sourceElem inside sub-processors.

target: string

Attribute path of the output array. Sub-processors write to $targetElem (or $targetElem.<field>) to build each output element.

Type of logs array-map processor.

Generated using TypeDoc