Skip to content

Commit e93eb18

Browse files
authored
Merge pull request #123453 from ry0y4n/patch-5
fix type of `threshold` from "string" to "int"
2 parents e3d28ac + feeb972 commit e93eb18

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

articles/azure-monitor/alerts/resource-manager-alerts-log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ resource alert 'Microsoft.Insights/scheduledQueryRules@2021-08-01' = {
467467
"value": "GreaterThan"
468468
},
469469
"threshold": {
470-
"value": "80"
470+
"value": 80
471471
},
472472
"timeAggregation": {
473473
"value": "Average"

articles/azure-monitor/alerts/resource-manager-alerts-metric.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
347347
"value": "GreaterThan"
348348
},
349349
"threshold": {
350-
"value": "80"
350+
"value": 80
351351
},
352352
"timeAggregation": {
353353
"value": "Average"
@@ -1014,7 +1014,7 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
10141014
}
10151015
],
10161016
"operator": "GreaterThan",
1017-
"threshold": "5",
1017+
"threshold": 5,
10181018
"timeAggregation": "Total"
10191019
}
10201020
},
@@ -1030,7 +1030,7 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
10301030
}
10311031
],
10321032
"operator": "GreaterThan",
1033-
"threshold": "250",
1033+
"threshold": 250,
10341034
"timeAggregation": "Average"
10351035
}
10361036
},
@@ -1307,7 +1307,7 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
13071307
}
13081308
],
13091309
"operator": "GreaterThan",
1310-
"threshold": "5",
1310+
"threshold": 5,
13111311
"timeAggregation": "Total"
13121312
}
13131313
},
@@ -1940,7 +1940,7 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
19401940
"value": "GreaterThan"
19411941
},
19421942
"threshold": {
1943-
"value": "80"
1943+
"value": 80
19441944
},
19451945
"timeAggregation": {
19461946
"value": "Average"
@@ -2282,8 +2282,8 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
22822282
}
22832283
},
22842284
"threshold": {
2285-
"type": "string",
2286-
"defaultValue": "0",
2285+
"type": "int",
2286+
"defaultValue": 0,
22872287
"metadata": {
22882288
"description": "The threshold value at which the alert is activated."
22892289
}
@@ -2420,7 +2420,7 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
24202420
"value": "GreaterThan"
24212421
},
24222422
"threshold": {
2423-
"value": "0"
2423+
"value": 0
24242424
},
24252425
"timeAggregation": {
24262426
"value": "Average"
@@ -3231,8 +3231,8 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
32313231
}
32323232
},
32333233
"threshold": {
3234-
"type": "string",
3235-
"defaultValue": "0",
3234+
"type": "int",
3235+
"defaultValue": 0,
32363236
"metadata": {
32373237
"description": "The threshold value at which the alert is activated."
32383238
}
@@ -3369,7 +3369,7 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
33693369
"value": "GreaterThan"
33703370
},
33713371
"threshold": {
3372-
"value": "0"
3372+
"value": 0
33733373
},
33743374
"timeAggregation": {
33753375
"value": "Average"
@@ -4179,8 +4179,8 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
41794179
}
41804180
},
41814181
"threshold": {
4182-
"type": "string",
4183-
"defaultValue": "0",
4182+
"type": "int",
4183+
"defaultValue": 0,
41844184
"metadata": {
41854185
"description": "The threshold value at which the alert is activated."
41864186
}
@@ -4318,7 +4318,7 @@ resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = {
43184318
"value": "GreaterThan"
43194319
},
43204320
"threshold": {
4321-
"value": "0"
4321+
"value": 0
43224322
},
43234323
"timeAggregation": {
43244324
"value": "Average"

0 commit comments

Comments
 (0)