Skip to content

Commit

Permalink
Added includeContext to the example file. (#23771)
Browse files Browse the repository at this point in the history
  • Loading branch information
noneumar authored May 3, 2023
1 parent 8e20af0 commit 058b50f
Showing 1 changed file with 52 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parameters": {
"api-version": "2019-03-01",
"scope": "subscriptions/3b540246-808d-4331-99aa-917b808a9166"
"scope": "subscriptions/3b540246-808d-4331-99aa-917b808a9166",
"includeContext": true
},
"responses": {
"200": {
Expand Down Expand Up @@ -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&timespan=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&timespan=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/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",
Expand Down Expand Up @@ -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&timespan=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&timespan=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/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/cind/providers/microsoft.operationalinsights/workspaces/servicedeskwcus/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
"type": "Microsoft.AlertsManagement/alerts",
Expand Down

0 comments on commit 058b50f

Please sign in to comment.