-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AlertsManagement RP Public preview Swagger Spec (#3431)
- Loading branch information
1 parent
c14b067
commit 31bbba8
Showing
11 changed files
with
2,310 additions
and
0 deletions.
There are no files selected for viewing
1,589 changes: 1,589 additions & 0 deletions
1,589
...ource-manager/Microsoft.AlertsManagement/preview/2018-05-05-preview/AlertsManagement.json
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
...er/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/Alerts_ChangeState.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-05-preview", | ||
"subscriptionId": "9e261de7-c804-4b9d-9ebf-6f50fe350a9a", | ||
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100", | ||
"newState": "Acknowledged", | ||
"body":{ | ||
"comments" : "Acknowledging alert" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"severity":"Sev3", | ||
"signalType":"Log", | ||
"alertState":"New", | ||
"monitorCondition":"Fired", | ||
"monitorService":"Application Insights", | ||
"targetResourceName":"alertscorrelationworkerrole_int", | ||
"targetResourceGroup":"alertscorrelationrg", | ||
"targetResource":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/resourcegroups/alertscorrelationrg/providers/microsoft.insights/components/alertscorrelationworkerrole_int", | ||
"targetResourceType":"components", | ||
"sourceCreatedId":"57c049b5-9654-4bb4-a443-3bac3f725d34", | ||
"smartGroupId":"a808445e-bb38-4751-85c2-1b109ccc1059", | ||
"smartGroupingReason":"Alerts that frequently occur together have been grouped.", | ||
"startDateTime":"2018-06-12T22:05:09Z", | ||
"lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
"lastModifiedUserName":"vikramm@microsoft.com", | ||
"payload":{} | ||
}, | ||
"id":"/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100", | ||
"type":"Microsoft.AlertsManagement/alerts", | ||
"name":"cpu alert" | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...anager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/Alerts_GetbyId.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-05-preview", | ||
"subscriptionId": "9e261de7-c804-4b9d-9ebf-6f50fe350a9a", | ||
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
|
||
"properties":{ | ||
"severity":"Sev3", | ||
"signalType":"Log", | ||
"alertState":"New", | ||
"monitorCondition":"Fired", | ||
"monitorService":"Application Insights", | ||
"targetResourceName":"alertscorrelationworkerrole_int", | ||
"targetResourceGroup":"alertscorrelationrg", | ||
"targetResource":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/resourcegroups/alertscorrelationrg/providers/microsoft.insights/components/alertscorrelationworkerrole_int", | ||
"targetResourceType":"components", | ||
"sourceCreatedId":"57c049b5-9654-4bb4-a443-3bac3f725d34", | ||
"smartGroupId":"a808445e-bb38-4751-85c2-1b109ccc1059", | ||
"smartGroupingReason":"Alerts that frequently occur together have been grouped.", | ||
"startDateTime":"2018-06-12T22:05:09Z", | ||
"lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
"lastModifiedUserName":"System", | ||
"payload":{} | ||
}, | ||
"id":"/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100", | ||
"type":"Microsoft.AlertsManagement/alerts", | ||
"name":"cpu alert" | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...anager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/Alerts_History.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-05-preview", | ||
"subscriptionId": "9e261de7-c804-4b9d-9ebf-6f50fe350a9a", | ||
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties":{ | ||
"alertId":"66114d64-d9d9-478b-95c9-b789d6502100", | ||
"modifications":[ | ||
{ | ||
"modificationEvent":"StateChange", | ||
"oldValue":"New", | ||
"newValue":"Acknowledged", | ||
"modifiedAt":"2018-06-13T06:14:15.7378737Z", | ||
"modifiedBy":"vikramm@microsoft.com", | ||
"comments":"Acknowledging alert", | ||
"description":"State changed from 'New' to 'Acknowledged'" | ||
}, | ||
{ | ||
"modificationEvent":"AlertCreated", | ||
"oldValue":"", | ||
"newValue":"", | ||
"modifiedAt":"2018-06-13T06:09:01Z", | ||
"modifiedBy":"System", | ||
"comments":"", | ||
"description":"New Alert Object is created" | ||
} | ||
] | ||
}, | ||
"id":"/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100/history/default", | ||
"type":"Microsoft.AlertsManagement/alerts", | ||
"name":"CPU Alert" | ||
} | ||
} | ||
} | ||
} | ||
|
61 changes: 61 additions & 0 deletions
61
...e-manager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/Alerts_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-05-preview", | ||
"subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nextLink":"https://management.azure.com:443/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/providers/Microsoft.AlertsManagement/alerts?api-version=2018-05-05-preview&timeRange=1d&ctoken=%2bRID%3aPlwOAPHEGwB9UwEAAAAgCw%3d%3d%23RT%3a2%23TRC%3a500%23RTD%3aqtQyMDE4LTA2LTEyVDE1OjEyOjE1", | ||
"value": [ | ||
{ | ||
"properties":{ | ||
"severity":"Sev3", | ||
"signalType":"Log", | ||
"alertState":"New", | ||
"monitorCondition":"Fired", | ||
"monitorService":"Application Insights", | ||
"targetResourceName":"alertscorrelationworkerrole_int", | ||
"targetResourceGroup":"alertscorrelationrg", | ||
"targetResource":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourcegroups/alertscorrelationrg/providers/microsoft.insights/components/alertscorrelationworkerrole_int", | ||
"targetResourceType":"components", | ||
"sourceCreatedId":"57c049b5-9654-4bb4-a443-3bac3f725d34", | ||
"smartGroupId":"a808445e-bb38-4751-85c2-1b109ccc1059", | ||
"smartGroupingReason":"Alerts that frequently occur together have been grouped.", | ||
"startDateTime":"2018-06-12T22:05:09Z", | ||
"lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
"lastModifiedUserName":"System", | ||
"payload":{} | ||
}, | ||
"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100", | ||
"type":"Microsoft.AlertsManagement/alerts", | ||
"name":"cpu alert" | ||
}, | ||
{ | ||
"properties":{ | ||
"severity":"Sev3", | ||
"signalType":"Log", | ||
"alertState":"New", | ||
"monitorCondition":"Fired", | ||
"monitorService":"Application Insights", | ||
"targetResourceName":"alertscorrelationworkerrole_int", | ||
"targetResourceGroup":"alertscorrelationrg", | ||
"targetResource":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourcegroups/alertscorrelationrg/providers/microsoft.insights/components/alertscorrelationworkerrole_int", | ||
"targetResourceType":"components", | ||
"sourceCreatedId":"e1c5c974-b796-46a1-bb59-740eeca48c15", | ||
"smartGroupId":"a808445e-bb38-4751-85c2-1b109ccc1059", | ||
"smartGroupingReason":"Alerts that frequently occur together have been grouped.", | ||
"startDateTime":"2018-06-12T21:40:09Z", | ||
"lastModifiedDateTime":"2018-06-12T21:40:09Z", | ||
"lastModifiedUserName":"System", | ||
"payload":{} | ||
}, | ||
"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/providers/Microsoft.AlertsManagement/alerts/239f0e9f-9871-4c8b-a6a2-b893853d1066", | ||
"type":"Microsoft.AlertsManagement/alerts", | ||
"name":"cpu alert" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
89 changes: 89 additions & 0 deletions
89
...anager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/Alerts_Summary.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-05-preview", | ||
"subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties":{ | ||
"total":885, | ||
"smartGroupsCount":2, | ||
"summaryByState":{ | ||
"new":884, | ||
"acknowledged":1, | ||
"closed":0 | ||
}, | ||
"summaryBySeverity":{ | ||
"sev0":{ | ||
"new":286, | ||
"acknowledged":0, | ||
"closed":0 | ||
}, | ||
"sev1":{ | ||
"new":309, | ||
"acknowledged":0, | ||
"closed":0 | ||
}, | ||
"sev2":{ | ||
"new":0, | ||
"acknowledged":0, | ||
"closed":0 | ||
}, | ||
"sev3":{ | ||
"new":289, | ||
"acknowledged":1, | ||
"closed":0 | ||
}, | ||
"sev4":{ | ||
"new":0, | ||
"acknowledged":0, | ||
"closed":0 | ||
} | ||
}, | ||
"summaryBySeverityAndMonitorCondition":{ | ||
"sev0":{ | ||
"fired":286, | ||
"resolved":0 | ||
}, | ||
"sev1":{ | ||
"fired":309, | ||
"resolved":0 | ||
}, | ||
"sev2":{ | ||
"fired":0, | ||
"resolved":0 | ||
}, | ||
"sev3":{ | ||
"fired":290, | ||
"resolved":0 | ||
}, | ||
"sev4":{ | ||
"fired":0, | ||
"resolved":0 | ||
} | ||
}, | ||
"summaryByMonitorService":{ | ||
"platform":0, | ||
"application Insights":290, | ||
"log Analytics":595, | ||
"zabbix":0, | ||
"scom":0, | ||
"nagios":0, | ||
"infrastructure Insights":0, | ||
"activityLog Administrative":0, | ||
"activityLog Security":0, | ||
"activityLog Recommendation":0, | ||
"activityLog Policy":0, | ||
"activityLog Autoscale":0, | ||
"serviceHealth":0, | ||
"smartDetector":0 | ||
} | ||
}, | ||
"id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/providers/Microsoft.AlertsManagement/alertsSummary/current", | ||
"type":"Microsoft.AlertsManagement/alertsSummary", | ||
"name":"current" | ||
} | ||
} | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
...crosoft.AlertsManagement/preview/2018-05-05-preview/examples/SmartGroups_ChangeState.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-05-05-preview", | ||
"subscriptionId": "dd91de05-d791-4ceb-b6dc-988682dc7d72", | ||
"smartGroupId": "a808445e-bb38-4751-85c2-1b109ccc1059", | ||
"newState": "Acknowledged", | ||
"body":{ | ||
"comments" : "Acknowledging smart group" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties":{ | ||
"alertsCount":1942, | ||
"smartGroupState":"Acknowledged", | ||
"severity":"Sev3", | ||
"startDateTime":"2018-06-06T12:35:09Z", | ||
"lastModifiedDateTime":"2018-06-13T06:30:09Z", | ||
"lastModifiedUserName":"System", | ||
"resources":[ | ||
{ | ||
"name":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/resourcegroups/alertscorrelationrg/providers/microsoft.insights/components/alertscorrelationworkerrole_int", | ||
"count":1942 | ||
} | ||
], | ||
"resourceTypes":[ | ||
{ | ||
"name":"components", | ||
"count":1942 | ||
} | ||
], | ||
"resourceGroups":[ | ||
{ | ||
"name":"alertscorrelationrg", | ||
"count":1942 | ||
} | ||
], | ||
"monitorServices":[ | ||
{ | ||
"name":"Application Insights", | ||
"count":1942 | ||
} | ||
], | ||
"monitorConditions":[ | ||
{ | ||
"name":"Fired", | ||
"count":1942 | ||
} | ||
], | ||
"alertStates":[ | ||
{ | ||
"name":"New", | ||
"count":1941 | ||
}, | ||
{ | ||
"name":"Acknowledged", | ||
"count":1 | ||
} | ||
], | ||
"alertSeverities":[ | ||
{ | ||
"name":"Sev3", | ||
"count":1942 | ||
} | ||
] | ||
}, | ||
"id":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/providers/Microsoft.AlertsManagement/smartGroups/a808445e-bb38-4751-85c2-1b109ccc1059", | ||
"type":"Microsoft.AlertsManagement/smartGroups", | ||
"name":"cpu alert" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.