Skip to content

Commit c1478e2

Browse files
authored
Adding missing dividePerInstance property to Autoscale MetricTrigger (#13991)
* Add dividePerInstance property to the autoscale metric trigger * Update examples for autoscale to include 'dividePerInstance' * Update examples for correctness * update example for correctness
1 parent 7f3fdac commit c1478e2

File tree

6 files changed

+68
-32
lines changed

6 files changed

+68
-32
lines changed

specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/autoscale_API.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@
453453
"$ref": "#/definitions/ScaleRuleMetricDimension"
454454
},
455455
"description": "List of dimension conditions. For example: [{\"DimensionName\":\"AppName\",\"Operator\":\"Equals\",\"Values\":[\"App1\"]},{\"DimensionName\":\"Deployment\",\"Operator\":\"Equals\",\"Values\":[\"default\"]}]."
456+
},
457+
"dividePerInstance": {
458+
"type": "boolean",
459+
"description": "a value indicating whether metric should divide per instance."
456460
}
457461
},
458462
"description": "The trigger that results in a scaling action."

specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/createOrUpdateAutoscaleSetting.json

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"timeWindow": "PT5M",
2727
"timeAggregation": "Average",
2828
"operator": "GreaterThan",
29-
"threshold": 10.0
29+
"threshold": 10.0,
30+
"dividePerInstance": false
3031
},
3132
"scaleAction": {
3233
"direction": "Increase",
@@ -44,7 +45,8 @@
4445
"timeWindow": "PT5M",
4546
"timeAggregation": "Average",
4647
"operator": "GreaterThan",
47-
"threshold": 15.0
48+
"threshold": 15.0,
49+
"dividePerInstance": false
4850
},
4951
"scaleAction": {
5052
"direction": "Decrease",
@@ -77,7 +79,8 @@
7779
"timeWindow": "PT5M",
7880
"timeAggregation": "Average",
7981
"operator": "GreaterThan",
80-
"threshold": 10.0
82+
"threshold": 10.0,
83+
"dividePerInstance": false
8184
},
8285
"scaleAction": {
8386
"direction": "Increase",
@@ -95,7 +98,8 @@
9598
"timeWindow": "PT5M",
9699
"timeAggregation": "Average",
97100
"operator": "GreaterThan",
98-
"threshold": 15.0
101+
"threshold": 15.0,
102+
"dividePerInstance": false
99103
},
100104
"scaleAction": {
101105
"direction": "Decrease",
@@ -176,7 +180,8 @@
176180
"timeWindow": "PT5M",
177181
"timeAggregation": "Average",
178182
"operator": "GreaterThan",
179-
"threshold": 10.0
183+
"threshold": 10.0,
184+
"dividePerInstance": false
180185
},
181186
"scaleAction": {
182187
"direction": "Increase",
@@ -194,7 +199,8 @@
194199
"timeWindow": "PT5M",
195200
"timeAggregation": "Average",
196201
"operator": "GreaterThan",
197-
"threshold": 15.0
202+
"threshold": 15.0,
203+
"dividePerInstance": false
198204
},
199205
"scaleAction": {
200206
"direction": "Decrease",
@@ -227,7 +233,8 @@
227233
"timeWindow": "PT5M",
228234
"timeAggregation": "Average",
229235
"operator": "GreaterThan",
230-
"threshold": 10.0
236+
"threshold": 10.0,
237+
"dividePerInstance": false
231238
},
232239
"scaleAction": {
233240
"direction": "Increase",
@@ -245,7 +252,8 @@
245252
"timeWindow": "PT5M",
246253
"timeAggregation": "Average",
247254
"operator": "GreaterThan",
248-
"threshold": 15.0
255+
"threshold": 15.0,
256+
"dividePerInstance": false
249257
},
250258
"scaleAction": {
251259
"direction": "Decrease",
@@ -326,7 +334,8 @@
326334
"timeWindow": "PT5M",
327335
"timeAggregation": "Average",
328336
"operator": "GreaterThan",
329-
"threshold": 10.0
337+
"threshold": 10.0,
338+
"dividePerInstance": false
330339
},
331340
"scaleAction": {
332341
"direction": "Increase",
@@ -344,7 +353,8 @@
344353
"timeWindow": "PT5M",
345354
"timeAggregation": "Average",
346355
"operator": "GreaterThan",
347-
"threshold": 15.0
356+
"threshold": 15.0,
357+
"dividePerInstance": false
348358
},
349359
"scaleAction": {
350360
"direction": "Decrease",
@@ -377,7 +387,8 @@
377387
"timeWindow": "PT5M",
378388
"timeAggregation": "Average",
379389
"operator": "GreaterThan",
380-
"threshold": 10.0
390+
"threshold": 10.0,
391+
"dividePerInstance": false
381392
},
382393
"scaleAction": {
383394
"direction": "Increase",
@@ -395,7 +406,8 @@
395406
"timeWindow": "PT5M",
396407
"timeAggregation": "Average",
397408
"operator": "GreaterThan",
398-
"threshold": 15.0
409+
"threshold": 15.0,
410+
"dividePerInstance": false
399411
},
400412
"scaleAction": {
401413
"direction": "Decrease",

specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/getAutoscaleSetting.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"timeWindow": "PT5M",
3636
"timeAggregation": "Average",
3737
"operator": "GreaterThan",
38-
"threshold": 10.0
38+
"threshold": 10.0,
39+
"dividePerInstance": false
3940
},
4041
"scaleAction": {
4142
"direction": "Increase",
@@ -53,7 +54,8 @@
5354
"timeWindow": "PT5M",
5455
"timeAggregation": "Average",
5556
"operator": "GreaterThan",
56-
"threshold": 15.0
57+
"threshold": 15.0,
58+
"dividePerInstance": false
5759
},
5860
"scaleAction": {
5961
"direction": "Decrease",
@@ -86,7 +88,8 @@
8688
"timeWindow": "PT5M",
8789
"timeAggregation": "Average",
8890
"operator": "GreaterThan",
89-
"threshold": 10.0
91+
"threshold": 10.0,
92+
"dividePerInstance": false
9093
},
9194
"scaleAction": {
9295
"direction": "Increase",
@@ -104,7 +107,8 @@
104107
"timeWindow": "PT5M",
105108
"timeAggregation": "Average",
106109
"operator": "GreaterThan",
107-
"threshold": 15.0
110+
"threshold": 15.0,
111+
"dividePerInstance": false
108112
},
109113
"scaleAction": {
110114
"direction": "Decrease",

specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSetting.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"timeWindow": "PT5M",
3737
"timeAggregation": "Average",
3838
"operator": "GreaterThan",
39-
"threshold": 10.0
39+
"threshold": 10.0,
40+
"dividePerInstance": false
4041
},
4142
"scaleAction": {
4243
"direction": "Increase",
@@ -54,7 +55,8 @@
5455
"timeWindow": "PT5M",
5556
"timeAggregation": "Average",
5657
"operator": "GreaterThan",
57-
"threshold": 15.0
58+
"threshold": 15.0,
59+
"dividePerInstance": false
5860
},
5961
"scaleAction": {
6062
"direction": "Decrease",
@@ -87,7 +89,8 @@
8789
"timeWindow": "PT5M",
8890
"timeAggregation": "Average",
8991
"operator": "GreaterThan",
90-
"threshold": 10.0
92+
"threshold": 10.0,
93+
"dividePerInstance": false
9194
},
9295
"scaleAction": {
9396
"direction": "Increase",
@@ -105,7 +108,8 @@
105108
"timeWindow": "PT5M",
106109
"timeAggregation": "Average",
107110
"operator": "GreaterThan",
108-
"threshold": 15.0
111+
"threshold": 15.0,
112+
"dividePerInstance": false
109113
},
110114
"scaleAction": {
111115
"direction": "Decrease",

specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSettingBySubscription.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"timeWindow": "PT5M",
3636
"timeAggregation": "Average",
3737
"operator": "GreaterThan",
38-
"threshold": 10.0
38+
"threshold": 10.0,
39+
"dividePerInstance": false
3940
},
4041
"scaleAction": {
4142
"direction": "Increase",
@@ -53,7 +54,8 @@
5354
"timeWindow": "PT5M",
5455
"timeAggregation": "Average",
5556
"operator": "GreaterThan",
56-
"threshold": 15.0
57+
"threshold": 15.0,
58+
"dividePerInstance": false
5759
},
5860
"scaleAction": {
5961
"direction": "Decrease",
@@ -86,7 +88,8 @@
8688
"timeWindow": "PT5M",
8789
"timeAggregation": "Average",
8890
"operator": "GreaterThan",
89-
"threshold": 10.0
91+
"threshold": 10.0,
92+
"dividePerInstance": false
9093
},
9194
"scaleAction": {
9295
"direction": "Increase",
@@ -104,7 +107,8 @@
104107
"timeWindow": "PT5M",
105108
"timeAggregation": "Average",
106109
"operator": "GreaterThan",
107-
"threshold": 15.0
110+
"threshold": 15.0,
111+
"dividePerInstance": false
108112
},
109113
"scaleAction": {
110114
"direction": "Decrease",

specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/patchAutoscaleSetting.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"timeWindow": "PT5M",
2828
"timeAggregation": "Average",
2929
"operator": "GreaterThan",
30-
"threshold": 10.0
30+
"threshold": 10.0,
31+
"dividePerInstance": false
3132
},
3233
"scaleAction": {
3334
"direction": "Increase",
@@ -45,7 +46,8 @@
4546
"timeWindow": "PT5M",
4647
"timeAggregation": "Average",
4748
"operator": "GreaterThan",
48-
"threshold": 15.0
49+
"threshold": 15.0,
50+
"dividePerInstance": false
4951
},
5052
"scaleAction": {
5153
"direction": "Decrease",
@@ -78,7 +80,8 @@
7880
"timeWindow": "PT5M",
7981
"timeAggregation": "Average",
8082
"operator": "GreaterThan",
81-
"threshold": 10.0
83+
"threshold": 10.0,
84+
"dividePerInstance": false
8285
},
8386
"scaleAction": {
8487
"direction": "Increase",
@@ -96,7 +99,8 @@
9699
"timeWindow": "PT5M",
97100
"timeAggregation": "Average",
98101
"operator": "GreaterThan",
99-
"threshold": 15.0
102+
"threshold": 15.0,
103+
"dividePerInstance": false
100104
},
101105
"scaleAction": {
102106
"direction": "Decrease",
@@ -177,7 +181,8 @@
177181
"timeWindow": "PT5M",
178182
"timeAggregation": "Average",
179183
"operator": "GreaterThan",
180-
"threshold": 10.0
184+
"threshold": 10.0,
185+
"dividePerInstance": false
181186
},
182187
"scaleAction": {
183188
"direction": "Increase",
@@ -195,7 +200,8 @@
195200
"timeWindow": "PT5M",
196201
"timeAggregation": "Average",
197202
"operator": "GreaterThan",
198-
"threshold": 15.0
203+
"threshold": 15.0,
204+
"dividePerInstance": false
199205
},
200206
"scaleAction": {
201207
"direction": "Decrease",
@@ -228,7 +234,8 @@
228234
"timeWindow": "PT5M",
229235
"timeAggregation": "Average",
230236
"operator": "GreaterThan",
231-
"threshold": 10.0
237+
"threshold": 10.0,
238+
"dividePerInstance": false
232239
},
233240
"scaleAction": {
234241
"direction": "Increase",
@@ -246,7 +253,8 @@
246253
"timeWindow": "PT5M",
247254
"timeAggregation": "Average",
248255
"operator": "GreaterThan",
249-
"threshold": 15.0
256+
"threshold": 15.0,
257+
"dividePerInstance": false
250258
},
251259
"scaleAction": {
252260
"direction": "Decrease",

0 commit comments

Comments
 (0)