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

[Hub Generated] Review request for Microsoft.AlertsManagement to add version preview/2023-07-12-preview #25472

Merged
Show file tree
Hide file tree
Changes from 19 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,89 @@
{
"parameters": {
"api-version": "2023-07-12-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": "2023-07-12-preview",
"scope": "subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a",
"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/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,43 @@
{
"parameters": {
"api-version": "2023-07-12-preview",
"scope": "subscriptions/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",
"actionStatus": {
"isSuppressed": false
},
"description": "description of the alert"
},
"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,65 @@
{
"parameters": {
"api-version": "2023-07-12-preview",
"scope": "subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81",
"alertId": "66114d64-d9d9-478b-95c9-b789d6502101"
},
"responses": {
"200": {
"body": {
"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"
}
]
},
"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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2023-07-12-preview",
"scope": "subscriptions/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,79 @@
{
"parameters": {
"api-version": "2023-07-12-preview",
"scope": "subscriptions/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",
"actionStatus": {
"isSuppressed": false
},
"description": "description of the alert"
},
"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",
"actionStatus": {
"isSuppressed": false
},
"description": "description of the alert"
},
"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"
}
]
}
}
}
}
Loading