Skip to content

Commit af6062e

Browse files
moshemalMoshe Malka
authored andcommitted
Dev monitor microsoft.insights 2020 05 01 preview (Azure#10101)
* Adds base for updating Microsoft.Insights from version stable/2018-04-16 to version 2020-05-01-preview * Updates readme * Updates API version in new specs and examples * add ScheduledQueryRules 2020-05-01-preview * unchange auto generated readme * only scheduledQueryRule_API.json on readme Co-authored-by: Moshe Malka <[email protected]>
1 parent abc2cd8 commit af6062e

10 files changed

+1557
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "dd4bfc94-a096-412b-9c43-4bd13e35afbc",
4+
"resourceGroupName": "QueryResourceGroupName",
5+
"ruleName": "perf",
6+
"api-version": "2020-05-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+
{
53+
"actionGroupId": "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup",
54+
"webHookProperties": {
55+
"key11": "value11",
56+
"key12": "value12"
57+
}
58+
}
59+
]
60+
}
61+
}
62+
},
63+
"responses": {
64+
"200": {
65+
"headers": {},
66+
"body": {
67+
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
68+
"name": "perf",
69+
"type": "microsoft.insights/scheduledqueryrules",
70+
"location": "eastus",
71+
"tags": {},
72+
"properties": {
73+
"description": "Performance rule",
74+
"severity": 4,
75+
"enabled": true,
76+
"evaluationFrequency": "PT5M",
77+
"scopes": [
78+
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1"
79+
],
80+
"windowSize": "PT10M",
81+
"criteria": {
82+
"allOf": [
83+
{
84+
"query": "Perf | where ObjectName == \"Processor\"",
85+
"timeAggregation": "Average",
86+
"metricMeasureColumn": "% Processor Time",
87+
"resourceIdColumn": "resourceId",
88+
"dimensions": [
89+
{
90+
"name": "ComputerIp",
91+
"operator": "Exclude",
92+
"values": [
93+
"192.168.1.1"
94+
]
95+
},
96+
{
97+
"name": "OSType",
98+
"operator": "Include",
99+
"values": [
100+
"*"
101+
]
102+
}
103+
],
104+
"operator": "GreaterThan",
105+
"threshold": 70,
106+
"failingPeriods": {
107+
"numberOfEvaluationPeriods": 1,
108+
"minFailingPeriodsToAlert": 1
109+
}
110+
}
111+
]
112+
},
113+
"muteActionsDuration": "PT30M",
114+
"actions": [
115+
{
116+
"actionGroupId": "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup",
117+
"webHookProperties": {
118+
"key11": "value11",
119+
"key12": "value12"
120+
}
121+
}
122+
]
123+
}
124+
}
125+
},
126+
"201": {
127+
"headers": {},
128+
"body": {
129+
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
130+
"name": "perf",
131+
"type": "microsoft.insights/scheduledqueryrules",
132+
"location": "eastus",
133+
"tags": {},
134+
"properties": {
135+
"description": "Performance rule",
136+
"severity": 4,
137+
"enabled": true,
138+
"evaluationFrequency": "PT5M",
139+
"scopes": [
140+
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1"
141+
],
142+
"windowSize": "PT10M",
143+
"criteria": {
144+
"allOf": [
145+
{
146+
"query": "Perf | where ObjectName == \"Processor\"",
147+
"timeAggregation": "Average",
148+
"metricMeasureColumn": "% Processor Time",
149+
"resourceIdColumn": "resourceId",
150+
"dimensions": [
151+
{
152+
"name": "ComputerIp",
153+
"operator": "Exclude",
154+
"values": [
155+
"192.168.1.1"
156+
]
157+
},
158+
{
159+
"name": "OSType",
160+
"operator": "Include",
161+
"values": [
162+
"*"
163+
]
164+
}
165+
],
166+
"operator": "GreaterThan",
167+
"threshold": 70,
168+
"failingPeriods": {
169+
"numberOfEvaluationPeriods": 1,
170+
"minFailingPeriodsToAlert": 1
171+
}
172+
}
173+
]
174+
},
175+
"muteActionsDuration": "PT30M",
176+
"actions": [
177+
{
178+
"actionGroupId": "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup",
179+
"webHookProperties": {
180+
"key11": "value11",
181+
"key12": "value12"
182+
}
183+
}
184+
]
185+
}
186+
}
187+
}
188+
}
189+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "dd4bfc94-a096-412b-9c43-4bd13e35afbc",
4+
"resourceGroupName": "QueryResourceGroupName",
5+
"ruleName": "heartbeat",
6+
"api-version": "2020-05-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+
{
39+
"actionGroupId": "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup",
40+
"webHookProperties": {
41+
"key11": "value11",
42+
"key12": "value12"
43+
}
44+
}
45+
]
46+
}
47+
}
48+
},
49+
"responses": {
50+
"200": {
51+
"headers": {},
52+
"body": {
53+
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat",
54+
"name": "heartbeat",
55+
"type": "microsoft.insights/scheduledqueryrules",
56+
"location": "eastus",
57+
"tags": {},
58+
"properties": {
59+
"description": "Health check rule",
60+
"severity": 4,
61+
"enabled": true,
62+
"evaluationFrequency": "PT5M",
63+
"scopes": [
64+
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1"
65+
],
66+
"targetResourceTypes": [
67+
"Microsoft.Compute/virtualMachines"
68+
],
69+
"windowSize": "PT10M",
70+
"criteria": {
71+
"allOf": [
72+
{
73+
"query": "Heartbeat",
74+
"timeAggregation": "Count",
75+
"dimensions": [],
76+
"operator": "GreaterThan",
77+
"threshold": 360,
78+
"failingPeriods": {
79+
"numberOfEvaluationPeriods": 1,
80+
"minFailingPeriodsToAlert": 1
81+
}
82+
}
83+
]
84+
},
85+
"muteActionsDuration": "PT30M",
86+
"actions": [
87+
{
88+
"actionGroupId": "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup",
89+
"webHookProperties": {
90+
"key11": "value11",
91+
"key12": "value12"
92+
}
93+
}
94+
]
95+
}
96+
}
97+
},
98+
"201": {
99+
"headers": {},
100+
"body": {
101+
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat",
102+
"name": "heartbeat",
103+
"type": "microsoft.insights/scheduledqueryrules",
104+
"location": "eastus",
105+
"tags": {},
106+
"properties": {
107+
"description": "Health check rule",
108+
"severity": 4,
109+
"enabled": true,
110+
"evaluationFrequency": "PT5M",
111+
"scopes": [
112+
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1"
113+
],
114+
"targetResourceTypes": [
115+
"Microsoft.Compute/virtualMachines"
116+
],
117+
"windowSize": "PT10M",
118+
"criteria": {
119+
"allOf": [
120+
{
121+
"query": "Heartbeat",
122+
"timeAggregation": "Count",
123+
"dimensions": [],
124+
"operator": "GreaterThan",
125+
"threshold": 360,
126+
"failingPeriods": {
127+
"numberOfEvaluationPeriods": 1,
128+
"minFailingPeriodsToAlert": 1
129+
}
130+
}
131+
]
132+
},
133+
"muteActionsDuration": "PT30M",
134+
"actions": [
135+
{
136+
"actionGroupId": "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup",
137+
"webHookProperties": {
138+
"key11": "value11",
139+
"key12": "value12"
140+
}
141+
}
142+
]
143+
}
144+
}
145+
}
146+
}
147+
}

0 commit comments

Comments
 (0)