24 lines
781 B
Plaintext
24 lines
781 B
Plaintext
# Map enum values according to given table.
|
|
[[processors.enum]]
|
|
[[processors.enum.mapping]]
|
|
## Names of the fields to map. Globs accepted.
|
|
fields = ["status"]
|
|
|
|
## Name of the tags to map. Globs accepted.
|
|
# tags = ["status"]
|
|
|
|
## Destination tag or field to be used for the mapped value. By default the
|
|
## source tag or field is used, overwriting the original value.
|
|
dest = "status_code"
|
|
|
|
## Default value to be used for all values not contained in the mapping
|
|
## table. When unset and no match is found, the original field will remain
|
|
## unmodified and the destination tag or field will not be created.
|
|
# default = 0
|
|
|
|
## Table of mappings
|
|
[processors.enum.mapping.value_mappings]
|
|
green = 1
|
|
amber = 2
|
|
red = 3
|