Skip to content

Commit 47330bf

Browse files
authored
[Hub Generated] Review request for Microsoft.Insights to add version stable/2018-03-01 (#12372)
* fixed customer feedback * added reference to new example * added real reference * harel PR fixes * added target resource prop to multi examples * added suppression to model validation * fixed prettier check
1 parent cb26c82 commit 47330bf

16 files changed

+155
-27
lines changed

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"autoMitigate": false,
3333
"actions": [
3434
{
35-
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
35+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
3636
"webHookProperties": {
3737
"key11": "value11",
3838
"key12": "value12"
@@ -78,7 +78,7 @@
7878
"autoMitigate": false,
7979
"actions": [
8080
{
81-
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
81+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
8282
"webHookProperties": {
8383
"key11": "value11",
8484
"key12": "value12"

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"autoMitigate": false,
4242
"actions": [
4343
{
44-
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
44+
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
4545
"webHookProperties": {
4646
"key11": "value11",
4747
"key12": "value12"
@@ -95,7 +95,7 @@
9595
"autoMitigate": false,
9696
"actions": [
9797
{
98-
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
98+
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
9999
"webHookProperties": {
100100
"key11": "value11",
101101
"key12": "value12"

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
],
1717
"evaluationFrequency": "PT1M",
1818
"windowSize": "PT15M",
19-
"targetResourceType": "Microsoft.Compute/virtualMachines",
20-
"targetResourceRegion": "southcentralus",
2119
"criteria": {
2220
"odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
2321
"allOf": [
@@ -41,7 +39,7 @@
4139
"autoMitigate": false,
4240
"actions": [
4341
{
44-
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
42+
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
4543
"webHookProperties": {
4644
"key11": "value11",
4745
"key12": "value12"
@@ -95,7 +93,7 @@
9593
"autoMitigate": false,
9694
"actions": [
9795
{
98-
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
96+
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
9997
"webHookProperties": {
10098
"key11": "value11",
10199
"key12": "value12"

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertMultipleResource.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"autoMitigate": false,
3838
"actions": [
3939
{
40-
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
40+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
4141
"webHookProperties": {
4242
"key11": "value11",
4343
"key12": "value12"
@@ -87,7 +87,7 @@
8787
"autoMitigate": false,
8888
"actions": [
8989
{
90-
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
90+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
9191
"webHookProperties": {
9292
"key11": "value11",
9393
"key12": "value12"

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertResourceGroup.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"autoMitigate": false,
3838
"actions": [
3939
{
40-
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
40+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
4141
"webHookProperties": {
4242
"key11": "value11",
4343
"key12": "value12"
@@ -87,7 +87,7 @@
8787
"autoMitigate": false,
8888
"actions": [
8989
{
90-
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
90+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
9191
"webHookProperties": {
9292
"key11": "value11",
9393
"key12": "value12"

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"autoMitigate": false,
3434
"actions": [
3535
{
36-
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
36+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
3737
"webHookProperties": {
3838
"key11": "value11",
3939
"key12": "value12"
@@ -79,7 +79,7 @@
7979
"autoMitigate": false,
8080
"actions": [
8181
{
82-
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
82+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
8383
"webHookProperties": {
8484
"key11": "value11",
8585
"key12": "value12"

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSubscription.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"autoMitigate": false,
3737
"actions": [
3838
{
39-
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
39+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
4040
"webHookProperties": {
4141
"key11": "value11",
4242
"key12": "value12"
@@ -85,7 +85,7 @@
8585
"autoMitigate": false,
8686
"actions": [
8787
{
88-
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
88+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
8989
"webHookProperties": {
9090
"key11": "value11",
9191
"key12": "value12"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7",
4+
"resourceGroupName": "gigtest",
5+
"ruleName": "MetricAlertOnMultipleDimensions",
6+
"api-version": "2018-03-01",
7+
"parameters": {
8+
"location": "global",
9+
"tags": {},
10+
"properties": {
11+
"description": "This is the description of the rule1",
12+
"enabled": true,
13+
"severity": 3,
14+
"windowSize": "P1D",
15+
"evaluationFrequency": "PT1H",
16+
"scopes": [
17+
"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource"
18+
],
19+
"criteria": {
20+
"allOf": [
21+
{
22+
"metricName": "Availability",
23+
"metricNamespace": "Microsoft.KeyVault/vaults",
24+
"operator": "GreaterThan",
25+
"timeAggregation": "Average",
26+
"name": "Metric1",
27+
"dimensions": [
28+
{
29+
"name": "ActivityName",
30+
"operator": "Include",
31+
"values": [
32+
"*"
33+
]
34+
},
35+
{
36+
"name": "StatusCode",
37+
"operator": "Include",
38+
"values": [
39+
"200"
40+
]
41+
}
42+
],
43+
"criterionType": "StaticThresholdCriterion",
44+
"threshold": 55
45+
}
46+
],
47+
"odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"
48+
},
49+
"actions": [
50+
{
51+
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
52+
"webHookProperties": {
53+
"key11": "value11",
54+
"key12": "value12"
55+
}
56+
}
57+
],
58+
"autoMitigate": true
59+
}
60+
}
61+
},
62+
"responses": {
63+
"200": {
64+
"headers": {},
65+
"body": {
66+
"id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertWithDimensions",
67+
"type": "Microsoft.Insights/metricAlerts",
68+
"location": "global",
69+
"tags": {
70+
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource"
71+
},
72+
"properties": {
73+
"description": "This is the description of the rule1",
74+
"severity": 3,
75+
"enabled": true,
76+
"scopes": [
77+
"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource"
78+
],
79+
"evaluationFrequency": "PT1H",
80+
"windowSize": "P1D",
81+
"targetResourceType": "Microsoft.KeyVault/vaults",
82+
"targetResourceRegion": "southcentralus",
83+
"criteria": {
84+
"odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
85+
"allOf": [
86+
{
87+
"metricName": "Availability",
88+
"metricNamespace": "Microsoft.KeyVault/vaults",
89+
"operator": "GreaterThan",
90+
"timeAggregation": "Average",
91+
"name": "Metric1",
92+
"dimensions": [
93+
{
94+
"name": "ActivityName",
95+
"operator": "Include",
96+
"values": [
97+
"*"
98+
]
99+
},
100+
{
101+
"name": "StatusCode",
102+
"operator": "Include",
103+
"values": [
104+
"200"
105+
]
106+
}
107+
],
108+
"criterionType": "StaticThresholdCriterion",
109+
"threshold": 55
110+
}
111+
]
112+
},
113+
"autoMitigate": false,
114+
"actions": [
115+
{
116+
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
117+
"webHookProperties": {
118+
"key11": "value11",
119+
"key12": "value12"
120+
}
121+
}
122+
]
123+
}
124+
}
125+
}
126+
}
127+
}

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"autoMitigate": false,
5050
"actions": [
5151
{
52-
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
52+
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
5353
"webHookProperties": {
5454
"key11": "value11",
5555
"key12": "value12"

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"autoMitigate": false,
4848
"actions": [
4949
{
50-
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2",
50+
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
5151
"webHookProperties": {
5252
"key11": "value11",
5353
"key12": "value12"

0 commit comments

Comments
 (0)