I created some http functions using java and deployed to. Azure function app but now I need to trigger Email notifications to end users if function fail For this I have created alert rule resource with some condition query & Action group resources for sending emails and sms but, it is delaying sending notifications for 15min So please suggest me how to trigger notifications if my function fails?
In continuation to comments, please find below answer.
requests
| where duration > 1000
requests
is the table that contains our duration time,
source, result of function, etc.
Duration
is the time taken to completely run the azure function. If the function takes more than specified minutes, it sends an alert. So, it sends notification in form of alert.
1000 is in milliseconds.(1000 milliseconds)