Label Map
Label Map (label-map)
Map string values to canonical labels using ordered rules.
Transform json
Minimal example
actions: - label-map: field: ""JSON
{ "actions": [ { "label-map": { "field": "" } } ]}Contents
Fields
| Field | Type | Required | Description |
|---|---|---|---|
field | field (string) | ✅ | Field whose value will be mapped. Examples: data_field |
description | string | describe this step. | |
condition | lua-expression (string) | Only run this action if the specified condition is met. Examples: 2 * count() | |
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. |
Schema
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
| Field | Type | Required | Description |
|---|---|---|---|
r-match | R Match | ✅ | How the input should be matched. |
label | string | ✅ | Label applied when the rule matches. |