Skip to content

Commit 058b50f

Browse files
authored
Added includeContext to the example file. (#23771)
1 parent 8e20af0 commit 058b50f

File tree

1 file changed

+52
-3
lines changed
  • specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples

1 file changed

+52
-3
lines changed

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/Alerts_List.json

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"parameters": {
33
"api-version": "2019-03-01",
4-
"scope": "subscriptions/3b540246-808d-4331-99aa-917b808a9166"
4+
"scope": "subscriptions/3b540246-808d-4331-99aa-917b808a9166",
5+
"includeContext": true
56
},
67
"responses": {
78
"200": {
@@ -34,7 +35,31 @@
3435
"description": "description of the alert"
3536
},
3637
"egressConfig": {},
37-
"context": {}
38+
"context": {
39+
"AlertRuleName": "Test number of results",
40+
"SearchQuery": "traces",
41+
"AlertThresholdOperator": "Greater Than Or Equal To",
42+
"AlertThresholdValue": 0,
43+
"SearchIntervalStartTimeUtc": "2023-04-19T12:02:25Z",
44+
"SearchIntervalEndtimeUtc": "2023-04-19T12:32:25Z",
45+
"ResultCount": 3,
46+
"SearchIntervalInSeconds": 1800,
47+
"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",
48+
"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",
49+
"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",
50+
"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",
51+
"Description": "",
52+
"SeverityDescription": "Informational",
53+
"SubscriptionId": "0ef55770-ee07-488d-8dc5-75f53fa5a901",
54+
"WorkspaceId": "e72c8301-003e-4251-aac9-2374b3320ecf",
55+
"SearchIntervalDurationMin": "30",
56+
"AffectedConfigurationItems": [
57+
""
58+
],
59+
"AlertType": "Number of results",
60+
"IncludeSearchResults": true,
61+
"Frequency": 5
62+
}
3863
},
3964
"id": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/servicedeskresourcegroup/providers/microsoft.insights/components/servicedeskappinsight/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
4065
"type": "Microsoft.AlertsManagement/alerts",
@@ -66,7 +91,31 @@
6691
"description": "description of the alert"
6792
},
6893
"egressConfig": {},
69-
"context": {}
94+
"context": {
95+
"AlertRuleName": "Test number of results",
96+
"SearchQuery": "traces",
97+
"AlertThresholdOperator": "Greater Than Or Equal To",
98+
"AlertThresholdValue": 0,
99+
"SearchIntervalStartTimeUtc": "2023-04-19T12:02:25Z",
100+
"SearchIntervalEndtimeUtc": "2023-04-19T12:32:25Z",
101+
"ResultCount": 3,
102+
"SearchIntervalInSeconds": 1800,
103+
"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",
104+
"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",
105+
"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",
106+
"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",
107+
"Description": "",
108+
"SeverityDescription": "Informational",
109+
"SubscriptionId": "0ef55770-ee07-488d-8dc5-75f53fa5a901",
110+
"WorkspaceId": "e72c8301-003e-4251-aac9-2374b3320ecf",
111+
"SearchIntervalDurationMin": "30",
112+
"AffectedConfigurationItems": [
113+
""
114+
],
115+
"AlertType": "Number of results",
116+
"IncludeSearchResults": true,
117+
"Frequency": 5
118+
}
70119
},
71120
"id": "/subscriptions/3b540246-808d-4331-99aa-917b808a9166/resourcegroups/cind/providers/microsoft.operationalinsights/workspaces/servicedeskwcus/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100",
72121
"type": "Microsoft.AlertsManagement/alerts",

0 commit comments

Comments
 (0)