Skip to content

Commit 73356bf

Browse files
[Hub Generated] Review request for Microsoft.AlertsManagement to add version preview/2021-08-08-preview (#16564)
* rename action rules to alert processing rules * rename in examples * remove alertsmanagement from 2021-08-08 * fix lintdif * update operations descriptions * prettier fix * fix lntDiff error * remove * add default response * add type object * fix descriptions and integer format * fix errors * fix errors
1 parent 1133744 commit 73356bf

16 files changed

+176
-258
lines changed

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
"schema": {
4646
"$ref": "#/definitions/operationsList"
4747
}
48+
},
49+
"default": {
50+
"description": "Error response describing why the operation failed.",
51+
"schema": {
52+
"$ref": "#/definitions/errorResponse"
53+
}
4854
}
4955
},
5056
"x-ms-pageable": {
@@ -73,6 +79,12 @@
7379
"schema": {
7480
"$ref": "#/definitions/alertsMetaData"
7581
}
82+
},
83+
"default": {
84+
"description": "Error response describing why the operation failed.",
85+
"schema": {
86+
"$ref": "#/definitions/errorResponse"
87+
}
7688
}
7789
},
7890
"x-ms-examples": {
@@ -579,6 +591,7 @@
579591
"description": "Determines number of alerts returned per page in response. Permissible value is between 1 to 250. When the \"includeContent\" filter is selected, maximum value allowed is 25. Default value is 25.",
580592
"name": "pageCount",
581593
"type": "integer",
594+
"format": "int64",
582595
"in": "query",
583596
"required": false,
584597
"x-ms-parameter-location": "method"
@@ -768,6 +781,7 @@
768781
}
769782
},
770783
"alert": {
784+
"type": "object",
771785
"description": "An alert created in alert management service.",
772786
"allOf": [
773787
{
@@ -781,6 +795,7 @@
781795
}
782796
},
783797
"alertsList": {
798+
"type": "object",
784799
"description": "List the alerts.",
785800
"properties": {
786801
"nextLink": {
@@ -969,6 +984,7 @@
969984
}
970985
},
971986
"alertModification": {
987+
"type": "object",
972988
"description": "Alert Modification details",
973989
"allOf": [
974990
{
@@ -1000,6 +1016,7 @@
10001016
}
10011017
},
10021018
"alertModificationItem": {
1019+
"type": "object",
10031020
"description": "Alert modification item.",
10041021
"properties": {
10051022
"modificationEvent": {
@@ -1047,6 +1064,7 @@
10471064
}
10481065
},
10491066
"alertsSummary": {
1067+
"type": "object",
10501068
"description": "Summary of alerts based on the input filters and 'groupby' parameters.",
10511069
"allOf": [
10521070
{
@@ -1065,10 +1083,12 @@
10651083
"properties": {
10661084
"total": {
10671085
"type": "integer",
1086+
"format": "int64",
10681087
"description": "Total count of the result set."
10691088
},
10701089
"smartGroupsCount": {
10711090
"type": "integer",
1091+
"format": "int64",
10721092
"description": "Total count of the smart groups."
10731093
},
10741094
"groupedby": {
@@ -1094,6 +1114,7 @@
10941114
},
10951115
"count": {
10961116
"type": "integer",
1117+
"format": "int64",
10971118
"description": "Count of the aggregated field"
10981119
},
10991120
"groupedby": {
@@ -1110,6 +1131,7 @@
11101131
}
11111132
},
11121133
"alertsMetaData": {
1134+
"type": "object",
11131135
"description": "alert meta data information.",
11141136
"properties": {
11151137
"properties": {
@@ -1118,6 +1140,7 @@
11181140
}
11191141
},
11201142
"alertsMetaDataProperties": {
1143+
"type": "object",
11211144
"description": "alert meta data property bag",
11221145
"discriminator": "metadataIdentifier",
11231146
"required": [
@@ -1138,6 +1161,7 @@
11381161
}
11391162
},
11401163
"MonitorServiceList": {
1164+
"type": "object",
11411165
"title": "Monitor service details",
11421166
"description": "Monitor service details",
11431167
"required": [
@@ -1162,6 +1186,7 @@
11621186
}
11631187
},
11641188
"MonitorServiceDetails": {
1189+
"type": "object",
11651190
"description": "Details of a monitor service",
11661191
"properties": {
11671192
"name": {

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/SmartGroups.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@
403403
"description": "Determines number of alerts returned per page in response. Permissible value is between 1 to 250. When the \"includeContent\" filter is selected, maximum value allowed is 25. Default value is 25.",
404404
"name": "pageCount",
405405
"type": "integer",
406+
"format": "int64",
406407
"in": "query",
407408
"required": false,
408409
"x-ms-parameter-location": "method"
@@ -494,6 +495,7 @@
494495
}
495496
},
496497
"smartGroupModification": {
498+
"type": "object",
497499
"description": "Alert Modification details",
498500
"allOf": [
499501
{
@@ -507,6 +509,7 @@
507509
}
508510
},
509511
"smartGroupModificationProperties": {
512+
"type": "object",
510513
"description": "Properties of the smartGroup modification item.",
511514
"properties": {
512515
"smartGroupId": {
@@ -528,6 +531,7 @@
528531
}
529532
},
530533
"smartGroupModificationItem": {
534+
"type": "object",
531535
"description": "smartGroup modification item.",
532536
"properties": {
533537
"modificationEvent": {
@@ -570,6 +574,7 @@
570574
}
571575
},
572576
"smartGroupsList": {
577+
"type": "object",
573578
"description": "List the alerts.",
574579
"properties": {
575580
"nextLink": {
@@ -586,6 +591,7 @@
586591
}
587592
},
588593
"smartGroup": {
594+
"type": "object",
589595
"description": "Set of related alerts grouped together smartly by AMS.",
590596
"allOf": [
591597
{
@@ -605,6 +611,7 @@
605611
"properties": {
606612
"alertsCount": {
607613
"type": "integer",
614+
"format": "int64",
608615
"description": "Total number of alerts in smart group"
609616
},
610617
"smartGroupState": {
@@ -719,6 +726,7 @@
719726
},
720727
"count": {
721728
"type": "integer",
729+
"format": "int64",
722730
"description": "Total number of items of type."
723731
}
724732
}

0 commit comments

Comments
 (0)