Skip to content

Commit 378197a

Browse files
emi273Emmy Filtseryogev2125Yogev Kleinberger
authored
Release alert microsoft.alerts management preview/2025 05 25 preview (2) (#35970)
* Copy files from stable/2019-03-01 Copied the files in a separate commit. This allows reviewers to easily diff subsequent changes against the previous spec. * Update version to preview/2025-05-25-preview Updated the API version from stable/2019-03-01 to preview/2025-05-25-preview. * Added tag for 2025-05-25-preview in readme file * add changes 2025 * change alertmanagment * delete "old" * remove smartGroupId property * add smartGroupId * add "format": "int64", * delete int64 * add x-ms-enum to sortOrder * delete x-ms-enum * add "type": "object" * delete "type":"object" * Chage Alerts_ListEnrichments to get, and delete get * fix Alerts_GetEnrichments * go sdk * remove smart groups modifi * add "format": "int64" (try2) * add x-ms-enum to sortOrder (try2) * add "type": "object" (try 2) * delete smartGroupId,smartGroupState,smartGroupsSortBy,smartGroupsListsmartGroup,, smartGroupProperties,(try 2) and a lot more * #/parameters/api-version * add were * add where * וupdare where * add suppress * remove some * some tryes * / * . * / * add "x-ms-pageable" * . * . * add where (try 2) * more where * more where * more where * . * / * . * severitychange --------- Co-authored-by: Emmy Filtser <[email protected]> Co-authored-by: yogev2125 <[email protected]> Co-authored-by: Yogev Kleinberger <[email protected]>
1 parent 8dbe725 commit 378197a

File tree

10 files changed

+2724
-2
lines changed

10 files changed

+2724
-2
lines changed

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

Lines changed: 1837 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-05-25-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+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-05-25-preview",
4+
"scope": "subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight",
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/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
42+
"type": "Microsoft.AlertsManagement/alerts",
43+
"name": "cpu alert"
44+
}
45+
}
46+
}
47+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-05-25-preview",
4+
"scope": "subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight",
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+
"customProperties": {
37+
"key1": "value1",
38+
"key2": "value2"
39+
}
40+
},
41+
"id": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
42+
"type": "Microsoft.AlertsManagement/alerts",
43+
"name": "cpu alert"
44+
}
45+
}
46+
}
47+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-05-25-preview",
4+
"scope": "subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81",
5+
"alertId": "66114d64-d9d9-478b-95c9-b789d6502101"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502101/enrichments/default",
13+
"type": "Microsoft.AlertsManagement/alerts/enrichments",
14+
"name": "default",
15+
"properties": {
16+
"alertId": "66114d64-d9d9-478b-95c9-b789d6502101",
17+
"enrichments": [
18+
{
19+
"title": "Number of OOM killed events by container",
20+
"description": "Enrichment description",
21+
"status": "Succeeded",
22+
"type": "PrometheusInstantQuery",
23+
"grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
24+
"linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
25+
"datasources": [
26+
"/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
27+
],
28+
"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",
29+
"time": "2015-07-01T20:10:51.781Z"
30+
},
31+
{
32+
"title": "Number of OOM killed events by container",
33+
"description": "Enrichment description",
34+
"status": "Succeeded",
35+
"type": "PrometheusRangeQuery",
36+
"linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
37+
"grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
38+
"datasources": [
39+
"/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
40+
],
41+
"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",
42+
"start": "2015-07-01T20:10:51.781Z",
43+
"end": "2015-07-01T20:20:51.781Z",
44+
"step": "PT15S"
45+
},
46+
{
47+
"title": "Number of OOM killed events by container",
48+
"description": "Enrichment description",
49+
"status": "Failed",
50+
"type": "PrometheusRangeQuery",
51+
"linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
52+
"grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
53+
"errorMessage": "Calling Prometheus query API failed",
54+
"datasources": [
55+
"/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
56+
],
57+
"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",
58+
"start": "2015-07-01T20:10:51.781Z",
59+
"end": "2015-07-01T20:20:51.781Z",
60+
"step": "PT15S"
61+
}
62+
]
63+
}
64+
}
65+
]
66+
}
67+
}
68+
}
69+
}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-05-25-preview",
4+
"scope": "subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a",
5+
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/resourceGroups/someResourceGroup/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
11+
"type": "Microsoft.AlertsManagement/alerts",
12+
"name": "CPU Alert",
13+
"properties": {
14+
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100",
15+
"modifications": [
16+
{
17+
"modificationEvent": "AlertCreated",
18+
"modifiedAt": "2018-06-13T06:09:01Z",
19+
"modifiedBy": "System",
20+
"description": "New Alert Object is created",
21+
"oldValue": "",
22+
"newValue": "",
23+
"comments": "",
24+
"details": null
25+
},
26+
{
27+
"modificationEvent": "StateChange",
28+
"modifiedAt": "2018-06-13T06:14:15.7378737Z",
29+
"modifiedBy": "[email protected]",
30+
"description": "State changed from 'New' to 'Acknowledged'",
31+
"oldValue": "Fired",
32+
"newValue": "Resolved",
33+
"comments": "The alert has been resolved",
34+
"details": {
35+
"type": "PropertyChange",
36+
"oldValue": "Fired",
37+
"newValue": "Resolved",
38+
"comment": "The alert has been resolved"
39+
}
40+
},
41+
{
42+
"modificationEvent": "ActionsTriggered",
43+
"modifiedAt": "2018-06-13T06:09:01Z",
44+
"modifiedBy": "System",
45+
"description": "New Alert Object is created",
46+
"oldValue": "",
47+
"newValue": "",
48+
"comments": "",
49+
"details": {
50+
"type": "ActionsTriggered",
51+
"actionGroup": {
52+
"actionGroupId": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/resourceGroups/rg1/providers/Microsoft.Insights/actionGroups/actionGroup1",
53+
"ruleId": "RuleId1",
54+
"ruleType": "AlertRule"
55+
},
56+
"notificationResult": {
57+
"status": "Accepted",
58+
"statusURL": "https://management.azure.com/subscriptions/2a784a95-81bd-41c8-ba8a-362d1098a2b9/resourceGroups/AzNSTest/providers/microsoft.insights/actionGroups/ag2/notificationStatus/00000000000?api-version=2021-09-01"
59+
}
60+
}
61+
},
62+
{
63+
"modificationEvent": "ActionsSuppressed",
64+
"modifiedAt": "2018-06-13T06:09:01Z",
65+
"modifiedBy": "System",
66+
"description": "New Alert Object is created",
67+
"oldValue": "",
68+
"newValue": "",
69+
"comments": "",
70+
"details": {
71+
"type": "ActionsSuppressed",
72+
"suppressionActionRules": [
73+
"ActionRule 1",
74+
"ActionRule 2"
75+
],
76+
"suppressedActionGroups": [
77+
{
78+
"actionGroupId": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/resourceGroups/rg1/providers/Microsoft.Insights/actionGroups/actionGroup1",
79+
"ruleId": "RuleId1",
80+
"ruleType": "AlertRule"
81+
}
82+
]
83+
}
84+
}
85+
]
86+
}
87+
}
88+
}
89+
}
90+
}

0 commit comments

Comments
 (0)