Skip to content

Commit 297eb0d

Browse files
noneumarjnlycklama
authored andcommitted
[Hub Generated] Review request for Microsoft.AlertsManagement to add version preview/2023-07-12-preview (#25472)
* Adds base for updating Microsoft.AlertsManagement from version preview/2019-05-05-preview to version 2023-07-12-preview * Updates readme * Updates API version in new specs and examples * added enrichments api * fixing errors * fixed more erros * cont * cont * cont * cont * cont * trying to fix errors * cont * cont * cont * cont * used v5/types.json * Used Resource definition from common-types * Updated descriptions. * set "x-ms-parameter-location": "method" for "scope" parameter * Suppress lint err * another try to suppress lint err
1 parent 1f2352c commit 297eb0d

File tree

11 files changed

+2341
-1
lines changed

11 files changed

+2341
-1
lines changed

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2023-07-12-preview/AlertsManagement.json

Lines changed: 1568 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-12-preview",
4+
"identifier": "MonitorServiceList"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"properties": {
10+
"metadataIdentifier": "MonitorServiceList",
11+
"data": [
12+
{
13+
"name": "ActivityLog Administrative",
14+
"displayName": "Activity Log - Administrative"
15+
},
16+
{
17+
"name": "ActivityLog Autoscale",
18+
"displayName": "Activity Log - Autoscale"
19+
},
20+
{
21+
"name": "ActivityLog Policy",
22+
"displayName": "Activity Log - Policy"
23+
},
24+
{
25+
"name": "ActivityLog Recommendation",
26+
"displayName": "Activity Log - Recommendation"
27+
},
28+
{
29+
"name": "ActivityLog Security",
30+
"displayName": "Activity Log - Security"
31+
},
32+
{
33+
"name": "Application Insights",
34+
"displayName": "Application Insights"
35+
},
36+
{
37+
"name": "Azure Backup",
38+
"displayName": "Azure Backup"
39+
},
40+
{
41+
"name": "Custom",
42+
"displayName": "Custom"
43+
},
44+
{
45+
"name": "Data Box Edge",
46+
"displayName": "Data Box Edge"
47+
},
48+
{
49+
"name": "VM Insights",
50+
"displayName": "VM Insights"
51+
},
52+
{
53+
"name": "Log Analytics",
54+
"displayName": "Log Analytics"
55+
},
56+
{
57+
"name": "Nagios",
58+
"displayName": "NAGIOS"
59+
},
60+
{
61+
"name": "Platform",
62+
"displayName": "Platform"
63+
},
64+
{
65+
"name": "Resource Health",
66+
"displayName": "Resource Health"
67+
},
68+
{
69+
"name": "SCOM",
70+
"displayName": "SCOM"
71+
},
72+
{
73+
"name": "ServiceHealth",
74+
"displayName": "Service Health"
75+
},
76+
{
77+
"name": "Smart Detector",
78+
"displayName": "SmartDetector"
79+
},
80+
{
81+
"name": "Zabbix",
82+
"displayName": "ZABBIX"
83+
}
84+
]
85+
}
86+
}
87+
}
88+
}
89+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-12-preview",
4+
"scope": "subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a",
5+
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100",
6+
"newState": "Acknowledged",
7+
"body": {
8+
"comment": "Acknowledging alert"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"properties": {
15+
"essentials": {
16+
"severity": "Sev3",
17+
"signalType": "Log",
18+
"alertState": "Acknowledged",
19+
"monitorCondition": "Fired",
20+
"monitorService": "Application Insights",
21+
"targetResource": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight",
22+
"targetResourceName": "servicedeskappinsight",
23+
"targetResourceGroup": "servicedeskresourcegroup",
24+
"targetResourceType": "components",
25+
"sourceCreatedId": "6cd6b2ce-8c54-468f-aff0-9d12aebb7e49",
26+
"smartGroupId": "23d6b2ce-8c54-468f-aff0-sd32aebb7e56",
27+
"smartGroupingReason": "Occurred frequently with other alerts",
28+
"alertRule": "https://servisdfsdfappinsight.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=",
29+
"startDateTime": "2018-09-13T15:51:02Z",
30+
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
31+
"lastModifiedUserName": "System",
32+
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z",
33+
"actionStatus": {
34+
"isSuppressed": false
35+
},
36+
"description": "description of the alert"
37+
},
38+
"egressConfig": {},
39+
"context": {}
40+
},
41+
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
42+
"type": "Microsoft.AlertsManagement/alerts",
43+
"name": "cpu alert"
44+
}
45+
}
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-12-preview",
4+
"scope": "subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a",
5+
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"properties": {
11+
"essentials": {
12+
"severity": "Sev3",
13+
"signalType": "Log",
14+
"alertState": "Acknowledged",
15+
"monitorCondition": "Fired",
16+
"monitorService": "Application Insights",
17+
"targetResource": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight",
18+
"targetResourceName": "servicedeskappinsight",
19+
"targetResourceGroup": "servicedeskresourcegroup",
20+
"targetResourceType": "components",
21+
"sourceCreatedId": "6cd6b2ce-8c54-468f-aff0-9d12aebb7e49",
22+
"smartGroupId": "23d6b2ce-8c54-468f-aff0-sd32aebb7e56",
23+
"smartGroupingReason": "Occurred frequently with other alerts",
24+
"alertRule": "https://sersdfsdfinsight.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=",
25+
"startDateTime": "2018-09-13T15:51:02Z",
26+
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
27+
"lastModifiedUserName": "System",
28+
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z",
29+
"actionStatus": {
30+
"isSuppressed": false
31+
},
32+
"description": "description of the alert"
33+
},
34+
"egressConfig": {},
35+
"context": {}
36+
},
37+
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
38+
"type": "Microsoft.AlertsManagement/alerts",
39+
"name": "cpu alert"
40+
}
41+
}
42+
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-12-preview",
4+
"scope": "subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81",
5+
"alertId": "66114d64-d9d9-478b-95c9-b789d6502101"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"properties": {
11+
"alertId": "66114d64-d9d9-478b-95c9-b789d6502101",
12+
"enrichments": [
13+
{
14+
"title": "Number of OOM killed events by container",
15+
"description": "Enrichment description",
16+
"status": "Succeeded",
17+
"type": "PrometheusInstantQuery",
18+
"grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
19+
"linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
20+
"datasources": [
21+
"/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
22+
],
23+
"query": "sum by (cluster,container,replicaset,namespace)(label_replace( kube_pod_container_status_last_terminated_reason{reason='OOMKilled', cluster='cluster1', namespace='namespace1'}'}, 'replicaset', '$1', 'pod', '(.*)(-[a-z0-9]{5})$')) > 0",
24+
"time": "2015-07-01T20:10:51.781Z"
25+
},
26+
{
27+
"title": "Number of OOM killed events by container",
28+
"description": "Enrichment description",
29+
"status": "Succeeded",
30+
"type": "PrometheusRangeQuery",
31+
"linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
32+
"grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
33+
"datasources": [
34+
"/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
35+
],
36+
"query": "sum by (cluster,container,replicaset,namespace)(label_replace( kube_pod_container_status_last_terminated_reason{reason='OOMKilled', cluster='cluster1', namespace='namespace'}'}, 'replicaset', '$1', 'pod', '(.*)(-[a-z0-9]{5})$')) > 0",
37+
"start": "2015-07-01T20:10:51.781Z",
38+
"end": "2015-07-01T20:20:51.781Z",
39+
"step": "PT15S"
40+
},
41+
{
42+
"title": "Number of OOM killed events by container",
43+
"description": "Enrichment description",
44+
"status": "Failed",
45+
"type": "PrometheusRangeQuery",
46+
"linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
47+
"grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
48+
"errorMessage": "Calling Prometheus query API failed",
49+
"datasources": [
50+
"/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
51+
],
52+
"query": "sum by (cluster,container,replicaset,namespace)(label_replace( kube_pod_container_status_last_terminated_reason{reason='OOMKilled', cluster='cluster1', namespace='namespace'}'}, 'replicaset', '$1', 'pod', '(.*)(-[a-z0-9]{5})$')) > 0",
53+
"start": "2015-07-01T20:10:51.781Z",
54+
"end": "2015-07-01T20:20:51.781Z",
55+
"step": "PT15S"
56+
}
57+
]
58+
},
59+
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502101/enrichments/default",
60+
"type": "Microsoft.AlertsManagement/alerts/enrichments",
61+
"name": "default"
62+
}
63+
}
64+
}
65+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-12-preview",
4+
"scope": "subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a",
5+
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"properties": {
11+
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100",
12+
"modifications": [
13+
{
14+
"modificationEvent": "StateChange",
15+
"oldValue": "New",
16+
"newValue": "Acknowledged",
17+
"modifiedAt": "2018-06-13T06:14:15.7378737Z",
18+
"modifiedBy": "vikramm@microsoft.com",
19+
"comments": "Acknowledging alert",
20+
"description": "State changed from 'New' to 'Acknowledged'"
21+
},
22+
{
23+
"modificationEvent": "AlertCreated",
24+
"oldValue": "",
25+
"newValue": "",
26+
"modifiedAt": "2018-06-13T06:09:01Z",
27+
"modifiedBy": "System",
28+
"comments": "",
29+
"description": "New Alert Object is created"
30+
}
31+
]
32+
},
33+
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100/history/default",
34+
"type": "Microsoft.AlertsManagement/alerts",
35+
"name": "CPU Alert"
36+
}
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-12-preview",
4+
"scope": "subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"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",
10+
"value": [
11+
{
12+
"properties": {
13+
"essentials": {
14+
"severity": "Sev3",
15+
"signalType": "Log",
16+
"alertState": "Acknowledged",
17+
"monitorCondition": "Fired",
18+
"monitorService": "Application Insights",
19+
"targetResource": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight",
20+
"targetResourceName": "servicedeskappinsight",
21+
"targetResourceGroup": "servicedeskresourcegroup",
22+
"targetResourceType": "components",
23+
"sourceCreatedId": "6cd6b2ce-8c54-468f-aff0-9d12aebb7e49",
24+
"smartGroupId": "23d6b2ce-8c54-468f-aff0-sd32aebb7e56",
25+
"smartGroupingReason": "Occurred frequently with other alerts",
26+
"alertRule": "https://servisdffsdf.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=",
27+
"startDateTime": "2018-09-13T15:51:02Z",
28+
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
29+
"lastModifiedUserName": "System",
30+
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z",
31+
"actionStatus": {
32+
"isSuppressed": false
33+
},
34+
"description": "description of the alert"
35+
},
36+
"egressConfig": {},
37+
"context": {}
38+
},
39+
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
40+
"type": "Microsoft.AlertsManagement/alerts",
41+
"name": "cpu alert"
42+
},
43+
{
44+
"properties": {
45+
"essentials": {
46+
"severity": "Sev3",
47+
"signalType": "Log",
48+
"alertState": "New",
49+
"monitorCondition": "Fired",
50+
"monitorService": "Application Insights",
51+
"targetResource": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/cind/providers/microsoft.operationalinsights/workspaces/servicedeskwcus",
52+
"targetResourceName": "servicedeskwcus",
53+
"targetResourceGroup": "servicedeskresourcegroup",
54+
"targetResourceType": "components",
55+
"sourceCreatedId": "6cd6b2ce-8c54-468f-aff0-9d12aebb7e49",
56+
"smartGroupId": "d1c49c89-ea95-4697-a299-c0f5ebac62f1",
57+
"smartGroupingReason": "Alerts that frequently occur together have been grouped.",
58+
"alertRule": "https://servicsdfsdf.portal.mms.microsoft.com/#Workspace/overview/settings/details/Edit Alert Rule/details/index?savedSearchId=&scheduleId=",
59+
"startDateTime": "2018-09-13T15:51:02Z",
60+
"lastModifiedDateTime": "2018-09-13T15:51:02Z",
61+
"lastModifiedUserName": "System",
62+
"monitorConditionResolvedDateTime": "2018-09-13T15:51:02Z",
63+
"actionStatus": {
64+
"isSuppressed": false
65+
},
66+
"description": "description of the alert"
67+
},
68+
"egressConfig": {},
69+
"context": {}
70+
},
71+
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
72+
"type": "Microsoft.AlertsManagement/alerts",
73+
"name": "cpu alert"
74+
}
75+
]
76+
}
77+
}
78+
}
79+
}

0 commit comments

Comments
 (0)