forked from Azure/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres-app-insights-alert-rules.bicep
23 lines (23 loc) · 1.4 KB
/
res-app-insights-alert-rules.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Application Insights Alert Rules
resource /*${1:appInsightsAlertRules}*/appInsightsAlertRules 'Microsoft.Insights/alertrules@2016-03-01' = {
name: /*${2:'name'}*/'name'
location: resourceGroup().location
properties: {
name: /*${3:'name'}*/'name'
description: /*${4:'description'}*/'description'
isEnabled: false
condition: {
failedLocationCount: /*${5:'failedLocationCount'}*/'failedLocationCount'
'odata.type': /*'${6|Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition,Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition,Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition|}'*/'Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition'
dataSource: {
'odata.type': /*'${7|Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource,Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource|}'*/'Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource'
resourceUri: /*${8:'resourceUri'}*/'resourceUri'
}
windowSize: /*${9:'windowSize'}*/'windowSize'
}
action: {
'odata.type': /*'${10|Microsoft.Azure.Management.Insights.Models.RuleEmailAction,Microsoft.Azure.Management.Insights.Models.RuleWebhookAction|}'*/'Microsoft.Azure.Management.Insights.Models.RuleEmailAction'
sendToServiceOwners: true
}
}
}