应用程序监控与Azure SQL数据库使用指南
1. 应用程序洞察警报设置
1.1 警报概述
警报是一种在异常情况发生时通知用户的功能。设置警报有多种方式,例如使用ARM模板。以下是一个ARM模板示例:
{ "name": "[variables('myFirstAlertName')]", "type": "Microsoft.Insights/alertrules", "apiVersion": "2014-04-01", "location": "[parameters('appLocation')]", "dependsOn": [ "[resourceId('Microsoft.Insights/components',parameters('myApplicationName'))]" ], "tags": { "[concat('hidden-link:', resourceId('Microsoft.Insights/components',parameters('myApplicationName')))]": "Resource" }, "properties": { "name": "[variables('responseAlertName')]", "description": "response time alert", "isEnabled": true, "condition": { "$type": "Microsoft.WindowsAzure.Management.Monitoring.