We have several APIs deployed on Azure API Management and we have created alerts in AppInsights which triggers when failed APIs are detected.
However, the triggered mail has only information on count of the APIs that have failed. We specifically require the API names and more detail about the failed APIs like request body / response body / API path etc in the alert mail itself.
I guess this can be achieved by custom webhook, but I couldn't find any proper documentation on how the failed API name and other details can be fetched from the Alert payload and can be used in custom payload.
Any guidance w.r.t. custom payload example will be very helpful.