Skip to content

Label Map

Map string values to canonical labels using ordered rules.

Transform json

actions:
- label-map:
field: ""
JSON
{
"actions": [
{
"label-map": {
"field": ""
}
}
]
}

A ✓ marks a field that accepts a context variable such as {{ VARIABLE }}.

Field Type Required Description
description string describe this step.
condition lua-expression (string) Only run this action if the specified condition is met.
Examples: 2 * count()
field field (string) Field whose value will be mapped.
Examples: data_field
rules Rules[] Ordered mapping rules.
default-label string Label used when no rule matches.
output-field field (string) Field that receives the mapped label (defaults to overwriting the source field).
Examples: data_field
case-sensitive boolean (bool) Treat comparisons as case sensitive when true.
Default: false
Option Name Type Description
literal Literal string Exact string match.
substring Substring string Case-insensitive substring match.
regex Regex string Regular expression match.
Field Type Required Description
r-match R Match How the input should be matched.
Allowed values: literal, substring, regex
label string Label applied when the rule matches.