Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AlertsManagement RP GA version #3894

Merged
merged 6 commits into from
Sep 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"api-version": "2018-05-05",
"subscriptionId": "9e261de7-c804-4b9d-9ebf-6f50fe350a9a",
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100",
"newState": "Acknowledged",
"body":{
"comments" : "Acknowledging alert"
}
},
"responses": {
"200": {
"body": {
"properties": {
"essentials": {
"severity": "Sev3",
"signalType": "Log",
"alertState": "Acknowledged",
"monitorCondition": "Fired",
"monitorService": "Application Insights",
"targetResource": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight",
"targetResourceName": "servicedeskappinsight",
"targetResourceGroup": "servicedeskresourcegroup",
"targetResourceType": "components",
"sourceCreatedId": "6cd6b2ce-8c54-468f-aff0-9d12aebb7e49",
"smartGroupId": "23d6b2ce-8c54-468f-aff0-sd32aebb7e56",
"smartGroupingReason": "Occurred frequently with other alerts",
"alertRule": "https://servisdfsdfappinsight.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=",
"startDateTime": "2018-09-13T15:51:02Z",
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
"lastModifiedUserName": "System",
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z"
},
"egressConfig": {},
"context": {}
},
"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,39 @@
{
"parameters": {
"api-version": "2018-05-05",
"subscriptionId": "9e261de7-c804-4b9d-9ebf-6f50fe350a9a",
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100"
},
"responses": {
"200": {
"body": {
"properties": {
"essentials": {
"severity": "Sev3",
"signalType": "Log",
"alertState": "Acknowledged",
"monitorCondition": "Fired",
"monitorService": "Application Insights",
"targetResource": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight",
"targetResourceName": "servicedeskappinsight",
"targetResourceGroup": "servicedeskresourcegroup",
"targetResourceType": "components",
"sourceCreatedId": "6cd6b2ce-8c54-468f-aff0-9d12aebb7e49",
"smartGroupId": "23d6b2ce-8c54-468f-aff0-sd32aebb7e56",
"smartGroupingReason": "Occurred frequently with other alerts",
"alertRule": "https://sersdfsdfinsight.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=",
"startDateTime": "2018-09-13T15:51:02Z",
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
"lastModifiedUserName": "System",
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z"
},
"egressConfig": {},
"context": {}
},
"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",
"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":"[email protected]",
"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,71 @@
{
"parameters": {
"api-version": "2018-05-05",
"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": {
"essentials": {
"severity": "Sev3",
"signalType": "Log",
"alertState": "Acknowledged",
"monitorCondition": "Fired",
"monitorService": "Application Insights",
"targetResource": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight",
"targetResourceName": "servicedeskappinsight",
"targetResourceGroup": "servicedeskresourcegroup",
"targetResourceType": "components",
"sourceCreatedId": "6cd6b2ce-8c54-468f-aff0-9d12aebb7e49",
"smartGroupId": "23d6b2ce-8c54-468f-aff0-sd32aebb7e56",
"smartGroupingReason": "Occurred frequently with other alerts",
"alertRule": "https://servisdffsdf.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=",
"startDateTime": "2018-09-13T15:51:02Z",
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
"lastModifiedUserName": "System",
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z"
},
"egressConfig": {},
"context": {}
},
"id":"/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
"type":"Microsoft.AlertsManagement/alerts",
"name":"cpu alert"
},
{
"properties": {
"essentials": {
"severity": "Sev3",
"signalType": "Log",
"alertState": "New",
"monitorCondition": "Fired",
"monitorService": "Application Insights",
"targetResource": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/cind/providers/microsoft.operationalinsights/workspaces/servicedeskwcus",
"targetResourceName": "servicedeskwcus",
"targetResourceGroup": "servicedeskresourcegroup",
"targetResourceType": "components",
"sourceCreatedId": "6cd6b2ce-8c54-468f-aff0-9d12aebb7e49",
"smartGroupId": "d1c49c89-ea95-4697-a299-c0f5ebac62f1",
"smartGroupingReason": "Alerts that frequently occur together have been grouped.",
"alertRule": "https://servicsdfsdf.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=",
"startDateTime": "2018-09-13T15:51:02Z",
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
"lastModifiedUserName": "System",
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z"
},
"egressConfig": {},
"context": {}
},
"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,118 @@
{
"parameters": {
"api-version": "2018-05-05",
"subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d",
"groupby": "severity,alertState"
},
"responses": {
"200": {
"body": {
"properties": {
"groupedby": "severity",
"smartGroupsCount": 100,
"total": 14189,
"values": [
{
"name": "Sev0",
"count": 6517,
"groupedby": "alertState",
"values": [
{
"name": "New",
"count": 6517
},
{
"name": "Acknowledged",
"count": 0
},
{
"name": "Closed",
"count": 0
}
]
},
{
"name": "Sev1",
"count": 3175,
"groupedby": "alertState",
"values": [
{
"name": "New",
"count": 3175
},
{
"name": "Acknowledged",
"count": 0
},
{
"name": "Closed",
"count": 0
}
]
},
{
"name": "Sev2",
"count": 1120,
"groupedby": "alertState",
"values": [
{
"name": "New",
"count": 1120
},
{
"name": "Acknowledged",
"count": 0
},
{
"name": "Closed",
"count": 0
}
]
},
{
"name": "Sev3",
"count": 1902,
"groupedby": "alertState",
"values": [
{
"name": "New",
"count": 1902
},
{
"name": "Acknowledged",
"count": 0
},
{
"name": "Closed",
"count": 0
}
]
},
{
"name": "Sev4",
"count": 1475,
"groupedby": "alertState",
"values": [
{
"name": "New",
"count": 1475
},
{
"name": "Acknowledged",
"count": 0
},
{
"name": "Closed",
"count": 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",
"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