Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
d3fa29b
Copy files from stable/2019-03-01
Jul 17, 2025
5ece950
Update version to preview/2025-05-25-preview
Jul 17, 2025
3d9c861
Added tag for 2025-05-25-preview in readme file
Jul 17, 2025
5aa54c3
add changes 2025
Jul 17, 2025
1979791
Merge branch 'main' into release-alert-Microsoft.AlertsManagement-pre…
emi273 Jul 17, 2025
3078204
change alertmanagment
Jul 17, 2025
1c457a9
Merge branch 'release-alert-Microsoft.AlertsManagement-preview/2025_0…
Jul 17, 2025
8f5adfb
delete "old"
Jul 17, 2025
81237e7
Merge branch 'main' into release-alert-Microsoft.AlertsManagement-pre…
emi273 Jul 17, 2025
95adcce
remove smartGroupId property
Jul 20, 2025
0772a91
Merge branch 'release-alert-Microsoft.AlertsManagement-preview/2025_0…
Jul 20, 2025
8bb5f73
Merge branch 'main' into release-alert-Microsoft.AlertsManagement-pre…
emi273 Jul 20, 2025
80bdc20
Merge branch 'release-alert-Microsoft.AlertsManagement-preview/2025_0…
Jul 20, 2025
defcf6d
add smartGroupId
Jul 20, 2025
19f18f6
add "format": "int64",
Jul 20, 2025
c9ad974
delete int64
Jul 20, 2025
f9c54d5
add x-ms-enum to sortOrder
Jul 20, 2025
fa3b3be
delete x-ms-enum
Jul 20, 2025
704e934
add "type": "object"
Jul 20, 2025
c5c8a68
delete "type":"object"
Jul 20, 2025
0f52745
Chage Alerts_ListEnrichments to get, and delete get
Jul 21, 2025
913c3ca
fix Alerts_GetEnrichments
Jul 21, 2025
202837d
Merge branch 'main' into release-alert-Microsoft.AlertsManagement-pre…
yogev2125 Jul 22, 2025
fec1fe2
Merge branch 'main' into release-alert-Microsoft.AlertsManagement-pre…
yogev2125 Jul 23, 2025
4035cb0
go sdk
Jul 23, 2025
b4e1416
Merge branch 'release-alert-Microsoft.AlertsManagement-preview/2025_0…
Jul 23, 2025
54e895f
remove smart groups modifi
Jul 23, 2025
575c6f1
Merge branch 'main' into release-alert-Microsoft.AlertsManagement-pre…
emi273 Jul 24, 2025
a5c842e
add "format": "int64" (try2)
Jul 24, 2025
5d468b7
add x-ms-enum to sortOrder (try2)
Jul 24, 2025
743a5f3
add "type": "object" (try 2)
Jul 24, 2025
7a3dce1
delete smartGroupId,smartGroupState,smartGroupsSortBy,smartGroupsList…
Jul 24, 2025
378c2db
#/parameters/api-version
Jul 27, 2025
78c5dbb
Merge branch 'main' into release-alert-Microsoft.AlertsManagement-pre…
emi273 Jul 27, 2025
4a3d2b9
add were
Jul 28, 2025
4fb4768
Merge branch 'release-alert-Microsoft.AlertsManagement-preview/2025_0…
Jul 28, 2025
7616497
add where
Jul 28, 2025
c3537cf
וupdare where
Jul 28, 2025
f824b56
add suppress
Jul 28, 2025
d112b98
remove some
Jul 28, 2025
f03f996
some tryes
Jul 28, 2025
0edfc32
/
Jul 28, 2025
ae6433c
.
Jul 28, 2025
cc134bf
/
Jul 28, 2025
b128617
add "x-ms-pageable"
Jul 28, 2025
9cf613c
Merge branch 'main' into release-alert-Microsoft.AlertsManagement-pre…
emi273 Jul 28, 2025
8d2f526
.
Jul 28, 2025
8953d85
.
Jul 28, 2025
9241f11
add where (try 2)
Jul 28, 2025
cf296cb
more where
Jul 28, 2025
ffca7d5
more where
Jul 28, 2025
3cd9d9b
more where
Jul 28, 2025
d30c9b8
.
Jul 28, 2025
9c2363b
/
Jul 28, 2025
f071f9a
.
Jul 28, 2025
1ab4ae6
severitychange
Jul 30, 2025
07ca7e7
Merge branch 'main' into release-alert-Microsoft.AlertsManagement-pre…
yogev2125 Jul 30, 2025
c3dd11d
Merge branch 'main' into release-alert-Microsoft.AlertsManagement-pre…
emi273 Jul 31, 2025
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,89 @@
{
"parameters": {
"api-version": "2025-05-25-preview",
"identifier": "MonitorServiceList"
},
"responses": {
"200": {
"body": {
"properties": {
"metadataIdentifier": "MonitorServiceList",
"data": [
{
"name": "ActivityLog Administrative",
"displayName": "Activity Log - Administrative"
},
{
"name": "ActivityLog Autoscale",
"displayName": "Activity Log - Autoscale"
},
{
"name": "ActivityLog Policy",
"displayName": "Activity Log - Policy"
},
{
"name": "ActivityLog Recommendation",
"displayName": "Activity Log - Recommendation"
},
{
"name": "ActivityLog Security",
"displayName": "Activity Log - Security"
},
{
"name": "Application Insights",
"displayName": "Application Insights"
},
{
"name": "Azure Backup",
"displayName": "Azure Backup"
},
{
"name": "Custom",
"displayName": "Custom"
},
{
"name": "Data Box Edge",
"displayName": "Data Box Edge"
},
{
"name": "VM Insights",
"displayName": "VM Insights"
},
{
"name": "Log Analytics",
"displayName": "Log Analytics"
},
{
"name": "Nagios",
"displayName": "NAGIOS"
},
{
"name": "Platform",
"displayName": "Platform"
},
{
"name": "Resource Health",
"displayName": "Resource Health"
},
{
"name": "SCOM",
"displayName": "SCOM"
},
{
"name": "ServiceHealth",
"displayName": "Service Health"
},
{
"name": "Smart Detector",
"displayName": "SmartDetector"
},
{
"name": "Zabbix",
"displayName": "ZABBIX"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"api-version": "2025-05-25-preview",
"scope": "subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight",
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100",
"newState": "Acknowledged",
"body": {
"comment": "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",
"actionStatus": {
"isSuppressed": false
},
"description": "description of the alert"
},
"egressConfig": {},
"context": {}
},
"id": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight/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,47 @@
{
"parameters": {
"api-version": "2025-05-25-preview",
"scope": "subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight",
"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",
"actionStatus": {
"isSuppressed": false
},
"description": "description of the alert"
},
"egressConfig": {},
"context": {},
"customProperties": {
"key1": "value1",
"key2": "value2"
}
},
"id": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight/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,69 @@
{
"parameters": {
"api-version": "2025-05-25-preview",
"scope": "subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81",
"alertId": "66114d64-d9d9-478b-95c9-b789d6502101"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502101/enrichments/default",
"type": "Microsoft.AlertsManagement/alerts/enrichments",
"name": "default",
"properties": {
"alertId": "66114d64-d9d9-478b-95c9-b789d6502101",
"enrichments": [
{
"title": "Number of OOM killed events by container",
"description": "Enrichment description",
"status": "Succeeded",
"type": "PrometheusInstantQuery",
"grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
"linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
"datasources": [
"/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
],
"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",
"time": "2015-07-01T20:10:51.781Z"
},
{
"title": "Number of OOM killed events by container",
"description": "Enrichment description",
"status": "Succeeded",
"type": "PrometheusRangeQuery",
"linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
"grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
"datasources": [
"/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
],
"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",
"start": "2015-07-01T20:10:51.781Z",
"end": "2015-07-01T20:20:51.781Z",
"step": "PT15S"
},
{
"title": "Number of OOM killed events by container",
"description": "Enrichment description",
"status": "Failed",
"type": "PrometheusRangeQuery",
"linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
"grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
"errorMessage": "Calling Prometheus query API failed",
"datasources": [
"/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
],
"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",
"start": "2015-07-01T20:10:51.781Z",
"end": "2015-07-01T20:20:51.781Z",
"step": "PT15S"
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"parameters": {
"api-version": "2025-05-25-preview",
"scope": "subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a",
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/resourceGroups/someResourceGroup/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
"type": "Microsoft.AlertsManagement/alerts",
"name": "CPU Alert",
"properties": {
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100",
"modifications": [
{
"modificationEvent": "AlertCreated",
"modifiedAt": "2018-06-13T06:09:01Z",
"modifiedBy": "System",
"description": "New Alert Object is created",
"oldValue": "",
"newValue": "",
"comments": "",
"details": null
},
{
"modificationEvent": "StateChange",
"modifiedAt": "2018-06-13T06:14:15.7378737Z",
"modifiedBy": "[email protected]",
"description": "State changed from 'New' to 'Acknowledged'",
"oldValue": "Fired",
"newValue": "Resolved",
"comments": "The alert has been resolved",
"details": {
"type": "PropertyChange",
"oldValue": "Fired",
"newValue": "Resolved",
"comment": "The alert has been resolved"
}
},
{
"modificationEvent": "ActionsTriggered",
"modifiedAt": "2018-06-13T06:09:01Z",
"modifiedBy": "System",
"description": "New Alert Object is created",
"oldValue": "",
"newValue": "",
"comments": "",
"details": {
"type": "ActionsTriggered",
"actionGroup": {
"actionGroupId": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/resourceGroups/rg1/providers/Microsoft.Insights/actionGroups/actionGroup1",
"ruleId": "RuleId1",
"ruleType": "AlertRule"
},
"notificationResult": {
"status": "Accepted",
"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"
}
}
},
{
"modificationEvent": "ActionsSuppressed",
"modifiedAt": "2018-06-13T06:09:01Z",
"modifiedBy": "System",
"description": "New Alert Object is created",
"oldValue": "",
"newValue": "",
"comments": "",
"details": {
"type": "ActionsSuppressed",
"suppressionActionRules": [
"ActionRule 1",
"ActionRule 2"
],
"suppressedActionGroups": [
{
"actionGroupId": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/resourceGroups/rg1/providers/Microsoft.Insights/actionGroups/actionGroup1",
"ruleId": "RuleId1",
"ruleType": "AlertRule"
}
]
}
}
]
}
}
}
}
}
Loading
Loading