The copy function mapping defines a simple conversion of the field. It has a “from” field and a “to” field that define a field name translation, leaving the value unchanged. The mapping types are defined with “function type” and "function" attributes in the mapping. The default string function is "Copy".
The translations between the Test Message field and the Test result field are highlighted in red.
All mappings can have regular expressions in the from field. This regular expression needs to include a capture group that can be referenced in the to field.
This is used in messages that have an arrays in them.
To select a field from all elements of the array, we use the following expression in the from field. Notice the capture group in the regular expression.
To reference the capture group, we use the format $n$, where n is the number of the capture group. Content of the to field:
event/metrics/$1$/description
CODE