Skip to content

Commit d508101

Browse files
inballeibovitchmstrisoline
authored andcommitted
[Hub Generated] Review request for Microsoft.AlertsManagement to add version preview/2019-03-01-preview (Azure#17366)
* add description and actionStatus to alert properties * prettier fix
1 parent 4bff25e commit d508101

File tree

20 files changed

+190
-20
lines changed

20 files changed

+190
-20
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,16 @@
893893
}
894894
}
895895
},
896+
"actionStatus": {
897+
"type": "object",
898+
"description": "Action status",
899+
"properties": {
900+
"isSuppressed": {
901+
"type": "boolean",
902+
"description": "Value indicating whether alert is suppressed."
903+
}
904+
}
905+
},
896906
"alertProperties": {
897907
"type": "object",
898908
"description": "An alert created in alert management service.",
@@ -995,6 +1005,11 @@
9951005
"modelAsString": true
9961006
}
9971007
},
1008+
"alertRule": {
1009+
"type": "string",
1010+
"description": "Rule(monitor) which fired alert instance. Depending on the monitor service, this would be ARM id or name of the rule.",
1011+
"readOnly": true
1012+
},
9981013
"sourceCreatedId": {
9991014
"type": "string",
10001015
"description": "Unique Id created by monitor service",
@@ -1031,6 +1046,13 @@
10311046
"type": "object",
10321047
"description": "More details which are contextual to the monitor service.",
10331048
"readOnly": true
1049+
},
1050+
"actionStatus": {
1051+
"$ref": "#/definitions/actionStatus"
1052+
},
1053+
"description": {
1054+
"type": "string",
1055+
"description": "Alert description."
10341056
}
10351057
}
10361058
},

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/Alerts_ChangeState.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
"startDateTime": "2018-06-12T22:05:09Z",
2828
"lastModifiedDateTime": "2018-06-12T22:05:09Z",
2929
"lastModifiedUserName": "[email protected]",
30-
"payload": {}
30+
"payload": {},
31+
"actionStatus": {
32+
"isSuppressed": false
33+
},
34+
"description": "description of the alert"
3135
},
3236
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
3337
"type": "Microsoft.AlertsManagement/alerts",

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/Alerts_GetById.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
"startDateTime": "2018-06-12T22:05:09Z",
2424
"lastModifiedDateTime": "2018-06-12T22:05:09Z",
2525
"lastModifiedUserName": "System",
26-
"payload": {}
26+
"payload": {},
27+
"actionStatus": {
28+
"isSuppressed": false
29+
},
30+
"description": "description of the alert"
2731
},
2832
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
2933
"type": "Microsoft.AlertsManagement/alerts",

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/Alerts_List.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"startDateTime": "2018-06-12T22:05:09Z",
2626
"lastModifiedDateTime": "2018-06-12T22:05:09Z",
2727
"lastModifiedUserName": "System",
28-
"payload": {}
28+
"payload": {},
29+
"actionStatus": {
30+
"isSuppressed": false
31+
},
32+
"description": "description of the alert"
2933
},
3034
"id": "/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
3135
"type": "Microsoft.AlertsManagement/alerts",
@@ -48,7 +52,11 @@
4852
"startDateTime": "2018-06-12T21:40:09Z",
4953
"lastModifiedDateTime": "2018-06-12T21:40:09Z",
5054
"lastModifiedUserName": "System",
51-
"payload": {}
55+
"payload": {},
56+
"actionStatus": {
57+
"isSuppressed": false
58+
},
59+
"description": "description of the alert"
5260
},
5361
"id": "/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/providers/Microsoft.AlertsManagement/alerts/239f0e9f-9871-4c8b-a6a2-b893853d1066",
5462
"type": "Microsoft.AlertsManagement/alerts",

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,16 @@
10281028
"description": "Information specific to the monitor service that gives more contextual details about the alert.",
10291029
"readOnly": true
10301030
},
1031+
"actionStatus": {
1032+
"type": "object",
1033+
"description": "Action status",
1034+
"properties": {
1035+
"isSuppressed": {
1036+
"type": "boolean",
1037+
"description": "Value indicating whether alert is suppressed."
1038+
}
1039+
}
1040+
},
10311041
"essentials": {
10321042
"type": "object",
10331043
"description": "This object contains consistent fields across different monitor services.",
@@ -1172,6 +1182,13 @@
11721182
"type": "string",
11731183
"description": "User who last modified the alert, in case of monitor service updates user would be 'system', otherwise name of the user.",
11741184
"readOnly": true
1185+
},
1186+
"actionStatus": {
1187+
"$ref": "#/definitions/actionStatus"
1188+
},
1189+
"description": {
1190+
"type": "string",
1191+
"description": "Alert description."
11751192
}
11761193
}
11771194
},

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-03-01-preview/examples/Alerts_ChangeState.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
"startDateTime": "2018-09-13T15:51:02Z",
3030
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
3131
"lastModifiedUserName": "System",
32-
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z"
32+
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z",
33+
"actionStatus": {
34+
"isSuppressed": false
35+
},
36+
"description": "description of the alert"
3337
},
3438
"egressConfig": {},
3539
"context": {}

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-03-01-preview/examples/Alerts_GetById.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"startDateTime": "2018-09-13T15:51:02Z",
2626
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
2727
"lastModifiedUserName": "System",
28-
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z"
28+
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z",
29+
"actionStatus": {
30+
"isSuppressed": false
31+
},
32+
"description": "description of the alert"
2933
},
3034
"egressConfig": {},
3135
"context": {}

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-03-01-preview/examples/Alerts_List.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
"startDateTime": "2018-09-13T15:51:02Z",
2828
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
2929
"lastModifiedUserName": "System",
30-
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z"
30+
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z",
31+
"actionStatus": {
32+
"isSuppressed": false
33+
},
34+
"description": "description of the alert"
3135
},
3236
"egressConfig": {},
3337
"context": {}
@@ -55,7 +59,11 @@
5559
"startDateTime": "2018-09-13T15:51:02Z",
5660
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
5761
"lastModifiedUserName": "System",
58-
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z"
62+
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z",
63+
"actionStatus": {
64+
"isSuppressed": false
65+
},
66+
"description": "description of the alert"
5967
},
6068
"egressConfig": {},
6169
"context": {}

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,16 @@
840840
"description": "Information specific to the monitor service that gives more contextual details about the alert.",
841841
"readOnly": true
842842
},
843+
"actionStatus": {
844+
"type": "object",
845+
"description": "Action status",
846+
"properties": {
847+
"isSuppressed": {
848+
"type": "boolean",
849+
"description": "Value indicating whether alert is suppressed."
850+
}
851+
}
852+
},
843853
"essentials": {
844854
"type": "object",
845855
"description": "This object contains consistent fields across different monitor services.",
@@ -984,6 +994,13 @@
984994
"type": "string",
985995
"description": "User who last modified the alert, in case of monitor service updates user would be 'system', otherwise name of the user.",
986996
"readOnly": true
997+
},
998+
"actionStatus": {
999+
"$ref": "#/definitions/actionStatus"
1000+
},
1001+
"description": {
1002+
"type": "string",
1003+
"description": "Alert description."
9871004
}
9881005
}
9891006
},

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
"startDateTime": "2018-09-13T15:51:02Z",
3030
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
3131
"lastModifiedUserName": "System",
32-
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z"
32+
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z",
33+
"actionStatus": {
34+
"isSuppressed": false
35+
},
36+
"description": "description of the alert"
3337
},
3438
"egressConfig": {},
3539
"context": {}

0 commit comments

Comments
 (0)