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: /*${3:location}*/'location'
properties: {
name: /*${4:'name'}*/'name'
description: /*${5:'description'}*/'description'
isEnabled: false
condition: {
failedLocationCount: /*${6:'failedLocationCount'}*/'failedLocationCount'
'odata.type': /*'${7|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': /*'${8|Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource,Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource|}'*/'Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource'
resourceUri: /*${9:'resourceUri'}*/'resourceUri'
}
windowSize: /*${10:'windowSize'}*/'windowSize'
}
action: {
'odata.type': /*'${11|Microsoft.Azure.Management.Insights.Models.RuleEmailAction,Microsoft.Azure.Management.Insights.Models.RuleWebhookAction|}'*/'Microsoft.Azure.Management.Insights.Models.RuleEmailAction'
sendToServiceOwners: true
}
}
}