Convert (convert)
Convert fields from one type to another, e.g. strings to numbers.
Contents
Fields
| Field | Type | Required | Description |
|---|
description | string | | describe this step. |
condition | lua-expression (string) | | Only run this action if the specified condition is met. |
auto | boolean (bool) | | Allows auto-conversion, which helps when there are many fields. |
null-behaviour | Null Behaviour | | Controls what occurs when a field’s value is null or empty. |
conversions | Conversions | | Simple conversions. |
units | Units | | Unit conversions. |
suppress-warnings | boolean (bool) | | Suppress warnings generated by this action. |
Conversions Fields
| Field | Type | Required | Description |
|---|
field | string | ✅ | event field to be converted in-place. |
conversion | symbol | ✅ | conversion operation. |
Units Fields
| Field | Type | Required | Description |
|---|
field | string | ✅ | event field to be converted in-place. |
to | symbol | ✅ | the unit we are converting to. |
from | symbol | | optional unit we are converting from. |
Null Behaviour Options
| Value | Name | Description |
|---|
keep | keep | Pass through null or empty values |
default | default | Convert bool fields to false, num fields to 0 or str fields to an empty string |