Label Map
Label Map (label-map)
Section titled “Label Map (label-map)”Map string values to canonical labels using ordered rules.
Transform json
Minimal example
Section titled “Minimal example”actions: - label-map: field: ""JSON
{ "actions": [ { "label-map": { "field": "" } } ]}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
Fields
Section titled “Fields”| 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 |
Schema
Section titled “Schema”Rules - R Match Options
Section titled “Rules - R Match Options”| Option | Name | Type | Description |
|---|---|---|---|
literal |
Literal | string |
Exact string match. |
substring |
Substring | string |
Case-insensitive substring match. |
regex |
Regex | string |
Regular expression match. |
Rules Fields
Section titled “Rules Fields”| 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. |