I need the count of a particular request from an App that I am running in Azure. I have created a query to do such stuff. Is there any way to periodically run this query and store the result (maybe email it automatically would be great) ? I do the query from App Insights.
CodePudding user response:
Build a small timer-triggered Azure Function, use the Azure Monitor Query SDK and for example an SendGrid output binding to send the mail.
https://learn.microsoft.com/en-us/dotnet/api/overview/azure/monitor.query-readme?view=azure-dotnet