Skip to content

Commit fed2c56

Browse files
avjerafiAvi Jerafi
authored andcommitted
[Hub Generated] Review request for Microsoft.Insights to add version preview/2022-08-01-preview (Azure#21339)
* Adds base for updating Microsoft.Insights from version stable/2022-06-15 to version 2022-08-01-preview * Updates readme * Updates API version in new specs and examples * Added Managed Identity field * Added publicNetworkAccess field for NSP * Added ruleResolveConfiguration field for TTM * Added missing apis to default tag * Updated package-composite-v1, added package-2022-08-01-preview-only tag * Fixed swagger path in package-composite-v1 * Reverted change to package-composite-v1 Co-authored-by: Avi Jerafi <[email protected]>
1 parent 5bd081a commit fed2c56

10 files changed

+1929
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "dd4bfc94-a096-412b-9c43-4bd13e35afbc",
4+
"resourceGroupName": "QueryResourceGroupName",
5+
"ruleName": "perf",
6+
"api-version": "2022-08-01-preview",
7+
"parameters": {
8+
"location": "eastus",
9+
"properties": {
10+
"description": "Performance rule",
11+
"severity": 4,
12+
"enabled": true,
13+
"evaluationFrequency": "PT5M",
14+
"scopes": [
15+
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1"
16+
],
17+
"windowSize": "PT10M",
18+
"criteria": {
19+
"allOf": [
20+
{
21+
"query": "Perf | where ObjectName == \"Processor\"",
22+
"timeAggregation": "Average",
23+
"metricMeasureColumn": "% Processor Time",
24+
"resourceIdColumn": "resourceId",
25+
"dimensions": [
26+
{
27+
"name": "ComputerIp",
28+
"operator": "Exclude",
29+
"values": [
30+
"192.168.1.1"
31+
]
32+
},
33+
{
34+
"name": "OSType",
35+
"operator": "Include",
36+
"values": [
37+
"*"
38+
]
39+
}
40+
],
41+
"operator": "GreaterThan",
42+
"threshold": 70,
43+
"failingPeriods": {
44+
"numberOfEvaluationPeriods": 1,
45+
"minFailingPeriodsToAlert": 1
46+
}
47+
}
48+
]
49+
},
50+
"muteActionsDuration": "PT30M",
51+
"actions": {
52+
"actionGroups": [
53+
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"
54+
],
55+
"customProperties": {
56+
"key11": "value11",
57+
"key12": "value12"
58+
}
59+
},
60+
"ruleResolveConfiguration": {
61+
"autoResolved": true,
62+
"timeToResolve": "PT10M"
63+
},
64+
"checkWorkspaceAlertsStorageConfigured": true,
65+
"skipQueryValidation": true
66+
}
67+
}
68+
},
69+
"responses": {
70+
"200": {
71+
"headers": {},
72+
"body": {
73+
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
74+
"name": "perf",
75+
"type": "microsoft.insights/scheduledqueryrules",
76+
"location": "eastus",
77+
"tags": {},
78+
"properties": {
79+
"description": "Performance rule",
80+
"severity": 4,
81+
"enabled": true,
82+
"evaluationFrequency": "PT5M",
83+
"scopes": [
84+
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1"
85+
],
86+
"windowSize": "PT10M",
87+
"criteria": {
88+
"allOf": [
89+
{
90+
"query": "Perf | where ObjectName == \"Processor\"",
91+
"timeAggregation": "Average",
92+
"metricMeasureColumn": "% Processor Time",
93+
"resourceIdColumn": "resourceId",
94+
"dimensions": [
95+
{
96+
"name": "ComputerIp",
97+
"operator": "Exclude",
98+
"values": [
99+
"192.168.1.1"
100+
]
101+
},
102+
{
103+
"name": "OSType",
104+
"operator": "Include",
105+
"values": [
106+
"*"
107+
]
108+
}
109+
],
110+
"operator": "GreaterThan",
111+
"threshold": 70,
112+
"failingPeriods": {
113+
"numberOfEvaluationPeriods": 1,
114+
"minFailingPeriodsToAlert": 1
115+
}
116+
}
117+
]
118+
},
119+
"muteActionsDuration": "PT30M",
120+
"actions": {
121+
"actionGroups": [
122+
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"
123+
],
124+
"customProperties": {
125+
"key11": "value11",
126+
"key12": "value12"
127+
}
128+
},
129+
"ruleResolveConfiguration": {
130+
"autoResolved": true,
131+
"timeToResolve": "PT10M"
132+
},
133+
"isWorkspaceAlertsStorageConfigured": true,
134+
"checkWorkspaceAlertsStorageConfigured": true,
135+
"skipQueryValidation": true
136+
}
137+
}
138+
},
139+
"201": {
140+
"headers": {},
141+
"body": {
142+
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
143+
"name": "perf",
144+
"type": "microsoft.insights/scheduledqueryrules",
145+
"location": "eastus",
146+
"tags": {},
147+
"properties": {
148+
"description": "Performance rule",
149+
"severity": 4,
150+
"enabled": true,
151+
"evaluationFrequency": "PT5M",
152+
"scopes": [
153+
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1"
154+
],
155+
"windowSize": "PT10M",
156+
"criteria": {
157+
"allOf": [
158+
{
159+
"query": "Perf | where ObjectName == \"Processor\"",
160+
"timeAggregation": "Average",
161+
"metricMeasureColumn": "% Processor Time",
162+
"resourceIdColumn": "resourceId",
163+
"dimensions": [
164+
{
165+
"name": "ComputerIp",
166+
"operator": "Exclude",
167+
"values": [
168+
"192.168.1.1"
169+
]
170+
},
171+
{
172+
"name": "OSType",
173+
"operator": "Include",
174+
"values": [
175+
"*"
176+
]
177+
}
178+
],
179+
"operator": "GreaterThan",
180+
"threshold": 70,
181+
"failingPeriods": {
182+
"numberOfEvaluationPeriods": 1,
183+
"minFailingPeriodsToAlert": 1
184+
}
185+
}
186+
]
187+
},
188+
"muteActionsDuration": "PT30M",
189+
"actions": {
190+
"actionGroups": [
191+
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"
192+
],
193+
"customProperties": {
194+
"key11": "value11",
195+
"key12": "value12"
196+
}
197+
},
198+
"ruleResolveConfiguration": {
199+
"autoResolved": true,
200+
"timeToResolve": "PT10M"
201+
},
202+
"isWorkspaceAlertsStorageConfigured": true,
203+
"checkWorkspaceAlertsStorageConfigured": true,
204+
"skipQueryValidation": true
205+
}
206+
}
207+
}
208+
}
209+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "dd4bfc94-a096-412b-9c43-4bd13e35afbc",
4+
"resourceGroupName": "QueryResourceGroupName",
5+
"ruleName": "heartbeat",
6+
"api-version": "2022-08-01-preview",
7+
"parameters": {
8+
"location": "eastus",
9+
"properties": {
10+
"description": "Health check rule",
11+
"severity": 4,
12+
"enabled": true,
13+
"evaluationFrequency": "PT5M",
14+
"scopes": [
15+
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1"
16+
],
17+
"targetResourceTypes": [
18+
"Microsoft.Compute/virtualMachines"
19+
],
20+
"windowSize": "PT10M",
21+
"criteria": {
22+
"allOf": [
23+
{
24+
"query": "Heartbeat",
25+
"timeAggregation": "Count",
26+
"dimensions": [],
27+
"operator": "GreaterThan",
28+
"threshold": 360,
29+
"failingPeriods": {
30+
"numberOfEvaluationPeriods": 1,
31+
"minFailingPeriodsToAlert": 1
32+
}
33+
}
34+
]
35+
},
36+
"muteActionsDuration": "PT30M",
37+
"actions": {
38+
"actionGroups": [
39+
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"
40+
],
41+
"customProperties": {
42+
"key11": "value11",
43+
"key12": "value12"
44+
}
45+
},
46+
"ruleResolveConfiguration": {
47+
"autoResolved": true,
48+
"timeToResolve": "PT10M"
49+
},
50+
"checkWorkspaceAlertsStorageConfigured": true,
51+
"skipQueryValidation": true
52+
}
53+
}
54+
},
55+
"responses": {
56+
"200": {
57+
"headers": {},
58+
"body": {
59+
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat",
60+
"name": "heartbeat",
61+
"type": "microsoft.insights/scheduledqueryrules",
62+
"location": "eastus",
63+
"tags": {},
64+
"properties": {
65+
"description": "Health check rule",
66+
"severity": 4,
67+
"enabled": true,
68+
"evaluationFrequency": "PT5M",
69+
"scopes": [
70+
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1"
71+
],
72+
"targetResourceTypes": [
73+
"Microsoft.Compute/virtualMachines"
74+
],
75+
"windowSize": "PT10M",
76+
"criteria": {
77+
"allOf": [
78+
{
79+
"query": "Heartbeat",
80+
"timeAggregation": "Count",
81+
"dimensions": [],
82+
"operator": "GreaterThan",
83+
"threshold": 360,
84+
"failingPeriods": {
85+
"numberOfEvaluationPeriods": 1,
86+
"minFailingPeriodsToAlert": 1
87+
}
88+
}
89+
]
90+
},
91+
"muteActionsDuration": "PT30M",
92+
"actions": {
93+
"actionGroups": [
94+
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"
95+
],
96+
"customProperties": {
97+
"key11": "value11",
98+
"key12": "value12"
99+
}
100+
},
101+
"ruleResolveConfiguration": {
102+
"autoResolved": true,
103+
"timeToResolve": "PT10M"
104+
},
105+
"isWorkspaceAlertsStorageConfigured": true,
106+
"checkWorkspaceAlertsStorageConfigured": true,
107+
"skipQueryValidation": true
108+
}
109+
}
110+
},
111+
"201": {
112+
"headers": {},
113+
"body": {
114+
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat",
115+
"name": "heartbeat",
116+
"type": "microsoft.insights/scheduledqueryrules",
117+
"location": "eastus",
118+
"tags": {},
119+
"properties": {
120+
"description": "Health check rule",
121+
"severity": 4,
122+
"enabled": true,
123+
"evaluationFrequency": "PT5M",
124+
"scopes": [
125+
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1"
126+
],
127+
"targetResourceTypes": [
128+
"Microsoft.Compute/virtualMachines"
129+
],
130+
"windowSize": "PT10M",
131+
"criteria": {
132+
"allOf": [
133+
{
134+
"query": "Heartbeat",
135+
"timeAggregation": "Count",
136+
"dimensions": [],
137+
"operator": "GreaterThan",
138+
"threshold": 360,
139+
"failingPeriods": {
140+
"numberOfEvaluationPeriods": 1,
141+
"minFailingPeriodsToAlert": 1
142+
}
143+
}
144+
]
145+
},
146+
"muteActionsDuration": "PT30M",
147+
"actions": {
148+
"actionGroups": [
149+
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup"
150+
],
151+
"customProperties": {
152+
"key11": "value11",
153+
"key12": "value12"
154+
}
155+
},
156+
"ruleResolveConfiguration": {
157+
"autoResolved": true,
158+
"timeToResolve": "PT10M"
159+
},
160+
"isWorkspaceAlertsStorageConfigured": true,
161+
"checkWorkspaceAlertsStorageConfigured": true,
162+
"skipQueryValidation": true
163+
}
164+
}
165+
}
166+
}
167+
}

0 commit comments

Comments
 (0)