Add more details to the custom mapping payload alert key
Since the payload alert key uses the field name as a drop-down label, that sometimes can lead to ambiguity when there are several fields with the same name but by different paths.
The following payload has two "name" and two "desc" fields.
{
"alert": {
"name": "Alert with nested fields (without the custom mapping)",
"desc": "An alert description example",
"tool": {
"name": "Monitoring tool",
"desc": "Monitoring tool description"
}
}
}
The drop-down displays all of them, but that's not obvious which field is which.
Proposal
Introduce an ellipse as an indicator that there is additional content to be revealed. On hover, reveal a tooltip with the full path described. The tooltip would say, for example:
"alert.name", "alert.desc", "tool.name", and "tool.desc"
The ellipse can appear either before the dropdown items or in the middle of the string, depending on which option will be easiest to implement/give us a consistently readable result in the dropdown.
If at the beginning of the item, it would look like this:
... Name
... Desc
... Name
... Desc