Skip to content

Commit

Permalink
AlertsManagement RP Public preview Swagger Spec (#3431)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikram-m authored and sergey-shandar committed Jul 18, 2018
1 parent c14b067 commit 31bbba8
Show file tree
Hide file tree
Showing 11 changed files with 2,310 additions and 0 deletions.

Large diffs are not rendered by default.

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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}

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"
}
]
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
Loading

0 comments on commit 31bbba8

Please sign in to comment.