From 3d6dcc00714a90012c260adc1bc2ebbff4b52513 Mon Sep 17 00:00:00 2001 From: noneumar <113899918+noneumar@users.noreply.github.com> Date: Thu, 27 Apr 2023 16:45:09 +0300 Subject: [PATCH] [Hub Generated] Review request for Microsoft.AlertsManagement to add version stable/2018-05-05 (#23628) * Updated get alert list example with includeContext=true * Run prettify --- .../2018-05-05/examples/Alerts_List.json | 55 ++++++++++++++++++- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2018-05-05/examples/Alerts_List.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2018-05-05/examples/Alerts_List.json index 1cbb87ce252c..a8ebb418ed98 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2018-05-05/examples/Alerts_List.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2018-05-05/examples/Alerts_List.json @@ -1,7 +1,8 @@ { "parameters": { "api-version": "2018-05-05", - "subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d" + "subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d", + "includeContext": true }, "responses": { "200": { @@ -34,7 +35,31 @@ "description": "description of the alert" }, "egressConfig": {}, - "context": {} + "context": { + "AlertRuleName": "Test number of results", + "SearchQuery": "traces", + "AlertThresholdOperator": "Greater Than Or Equal To", + "AlertThresholdValue": 0, + "SearchIntervalStartTimeUtc": "2023-04-19T12:02:25Z", + "SearchIntervalEndtimeUtc": "2023-04-19T12:32:25Z", + "ResultCount": 3, + "SearchIntervalInSeconds": 1800, + "LinkToSearchResults": "https://portal.azure.com#@0ef55770-ee07-488d-8dc5-75f53fa5a901/blade/Microsoft_Azure_Monitoring_Logs/LogsBlade/source/Alerts.EmailLinks/scope/%7B%22resources%22%3A%5B%7B%22resourceId%22%3A%22%2Fsubscriptions%2F0ef55770-ee07-488d-8dc5-75f53fa5a901%2FresourceGroups%2Fexample_name%2Fproviders%2Fmicrosoft.insights%2Fcomponents%2FPortal%22%7D%5D%7D/q/eJwreefe4tGAA%3D%3D/prettify/1/timespan/2023-04-19T12%3a02%3a25.0000000Z%2f2023-04-19T12%3a32%3a25.0000000Z", + "LinkToFilteredSearchResultsUI": "https://portal.azure.com#@0ef55770-ee07-488d-8dc5-75f53fa5a901/blade/Microsoft_Azure_Monitoring_Logs/LogsBlade/source/Alerts.EmailLinks/scope/%7B%22resources%22%3A%5B%7B%22resourceId%22%3A%22%2Fsubscriptions%2F0ef55770-ee07-488d-8dc5-75f53fa5a901%2FresourceGroups%2Fexample_resource_group%2Fproviders%2Fmicrosoft.insights%2Fcomponents%2FPortal%22%7D%5D%7D/q/eJwrKUdd0ejhGAA%3D%3D/prettify/1/timespan/2023-04-19T12%3a02%3a25.0000000Z%2f2023-04-19T12%3a32%3a25.0000000Z", + "LinkToSearchResultsAPI": "https://api.applicationinsights.io/v1/apps/e72c8301-003e-4251-aac9-2374b3320ecf/query?query=traces×pan=2023-04-19T12%3a02%3a25.0000000Z%2f2023-04-19T12%3a32%3a25.0000000Z", + "LinkToFilteredSearchResultsAPI": "https://api.applicationinsights.io/v1/apps/e72c8301-003e-4251-aac9-2374b3320ecf/query?query=traces×pan=2023-04-19T12%3a02%3a25.0000000Z%2f2023-04-19T12%3a32%3a25.0000000Z", + "Description": "", + "SeverityDescription": "Informational", + "SubscriptionId": "0ef55770-ee07-488d-8dc5-75f53fa5a901", + "WorkspaceId": "e72c8301-003e-4251-aac9-2374b3320ecf", + "SearchIntervalDurationMin": "30", + "AffectedConfigurationItems": [ + "" + ], + "AlertType": "Number of results", + "IncludeSearchResults": true, + "Frequency": 5 + } }, "id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100", "type": "Microsoft.AlertsManagement/alerts", @@ -66,7 +91,31 @@ "description": "description of the alert" }, "egressConfig": {}, - "context": {} + "context": { + "AlertRuleName": "Test number of results", + "SearchQuery": "traces", + "AlertThresholdOperator": "Greater Than Or Equal To", + "AlertThresholdValue": 0, + "SearchIntervalStartTimeUtc": "2023-04-19T12:02:25Z", + "SearchIntervalEndtimeUtc": "2023-04-19T12:32:25Z", + "ResultCount": 3, + "SearchIntervalInSeconds": 1800, + "LinkToSearchResults": "https://portal.azure.com#@0ef55770-ee07-488d-8dc5-75f53fa5a901/blade/Microsoft_Azure_Monitoring_Logs/LogsBlade/source/Alerts.EmailLinks/scope/%7B%22resources%22%3A%5B%7B%22resourceId%22%3A%22%2Fsubscriptions%2F0ef55770-ee07-488d-8dc5-75f53fa5a901%2FresourceGroups%2Fexample_name%2Fproviders%2Fmicrosoft.insights%2Fcomponents%2FPortal%22%7D%5D%7D/q/eJwreefe4tGAA%3D%3D/prettify/1/timespan/2023-04-19T12%3a02%3a25.0000000Z%2f2023-04-19T12%3a32%3a25.0000000Z", + "LinkToFilteredSearchResultsUI": "https://portal.azure.com#@0ef55770-ee07-488d-8dc5-75f53fa5a901/blade/Microsoft_Azure_Monitoring_Logs/LogsBlade/source/Alerts.EmailLinks/scope/%7B%22resources%22%3A%5B%7B%22resourceId%22%3A%22%2Fsubscriptions%2F0ef55770-ee07-488d-8dc5-75f53fa5a901%2FresourceGroups%2Fexample_resource_group%2Fproviders%2Fmicrosoft.insights%2Fcomponents%2FPortal%22%7D%5D%7D/q/eJwrKUdd0ejhGAA%3D%3D/prettify/1/timespan/2023-04-19T12%3a02%3a25.0000000Z%2f2023-04-19T12%3a32%3a25.0000000Z", + "LinkToSearchResultsAPI": "https://api.applicationinsights.io/v1/apps/e72c8301-003e-4251-aac9-2374b3320ecf/query?query=traces×pan=2023-04-19T12%3a02%3a25.0000000Z%2f2023-04-19T12%3a32%3a25.0000000Z", + "LinkToFilteredSearchResultsAPI": "https://api.applicationinsights.io/v1/apps/e72c8301-003e-4251-aac9-2374b3320ecf/query?query=traces×pan=2023-04-19T12%3a02%3a25.0000000Z%2f2023-04-19T12%3a32%3a25.0000000Z", + "Description": "", + "SeverityDescription": "Informational", + "SubscriptionId": "0ef55770-ee07-488d-8dc5-75f53fa5a901", + "WorkspaceId": "e72c8301-003e-4251-aac9-2374b3320ecf", + "SearchIntervalDurationMin": "30", + "AffectedConfigurationItems": [ + "" + ], + "AlertType": "Number of results", + "IncludeSearchResults": true, + "Frequency": 5 + } }, "id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100", "type": "Microsoft.AlertsManagement/alerts",