Torch Log Service
Parameters | Parameter type | Required | Default value | Description |
Parameters | Parameter type | Required | Default value | Description |
value | String | Yes | / | Target table. When you use the res_rds_mysql resource function as the data source, set the primary_keys parameter if possible to improve processing performance. For details, see res_rds_mysql function. |
field | String | Yes | / | Source log field that is mapped to table data. Separate multiple fields with commas, such as "id,age". If the corresponding field does not exist in the log, this function will not perform any operation. |
output_fields | String | Yes | / | The fields to be output after mapping. Multiple fields are separated with commas, such as "name,desc". |
missing | String | No | / | Default value. When no matching field value is found, assign the value of the missing parameter to output_fields. |
mode | String | No | overwrite | Field cover mode. Including:
|
id | age | name | desc |
id | age | name | desc |
1 | 10 | zhangsan | Man out of law |
2 | 18 | lisi | Hey man, what can i say! |
id | age | name | desc |
id | age | name | desc |
1 | 10 | zhangsan | Man out of law |
Parameters | Parameter type | Required | Default value | Value range | Description |
Parameters | Parameter type | Required | Default value | Value range | Description |
value | Dict | Yes | / | / | String dictionary used for mapping. Both key and value must be in string format. |
fields | String | Yes | / | / | The name of a field or a list of field names. These field names are separated by commas. If multiple field names are specified:
|
output_field | String | Yes | / | / | The name of output field. |
missing | String | No | / | / | If there is no match for the default field, the value of this parameter will be assigned to the output field output_field. The default value None means no mapping or assignment operation will be performed. |
mode | String | No | overwrite |
| Specify the cover mode for the output field.
|