Hello @Dima Kaminin ,
welcome to this moderated Azure community forum.
I tried this alerting feature for myself in the past and it is very sensitive regarding the configuration.
Can you check out if you get the example implementation seen in this blog post works for you first?
Perhaps it gives you some pointers regarding your own solution.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.