0

我正在使用 ARM 模板为 azure 创建日志警报。我如何定义电子邮件主题以从电子邮件主题中删除时间戳你能帮我吗,我如何在其中定义电子邮件主题?

 "resources": [
        {
            "type": "microsoft.insights/scheduledqueryrules",
            "apiVersion": "2020-05-01-preview",
            "name": "[parameters('alertName')]",
            "location": "[parameters('location')]",
            "properties": {
                "displayName": "[parameters('alertName')]",
                "description": "[parameters('alertDescription')]",
                "severity": "[parameters('alertSeverity')]",
                "enabled": "[parameters('isEnabled')]",
                "evaluationFrequency": "[parameters('evaluationFrequency')]",
                "scopes": ["[parameters('resourceId')]"],
                "windowSize": "[parameters('windowSize')]",
                "criteria": {
                    "allOf": [
                        {
                            "query": "[parameters('query')]",
                            "timeAggregation": "[parameters('timeAggregation')]",
                            "operator": "[parameters('operator')]",
                            "threshold" : "[parameters('threshold')]",
                            "failingPeriods": {
                                "numberOfEvaluationPeriods": "[parameters('numberOfEvaluationPeriods')]",
                                "minFailingPeriodsToAlert": "[parameters('minFailingPeriodsToAlert')]"
                            }
                        }
                    ]
                },
                "actions": [
                    {
                        "actionGroupId": "[parameters('actionGroupId')]"
                    }
                ]
            }
4

0 回答 0