-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Insights to add version …
…stable/2022-06-01 (#18885) * Adds base for updating Microsoft.Insights from version stable/2022-04-01 to version 2022-06-01 * Updates readme * Updates API version in new specs and examples * Update * Update specification/monitor/resource-manager/readme.md Co-authored-by: Thomas Pham <thompham@microsoft.com> Co-authored-by: Wei Dong <40835867+dw511214992@users.noreply.github.com>
- Loading branch information
1 parent
44b6c8c
commit 11830d3
Showing
14 changed files
with
2,836 additions
and
2 deletions.
There are no files selected for viewing
1,403 changes: 1,403 additions & 0 deletions
1,403
...ation/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/actionGroups_API.json
Large diffs are not rendered by default.
Oops, something went wrong.
374 changes: 374 additions & 0 deletions
374
...urce-manager/Microsoft.Insights/stable/2022-06-01/examples/createOrUpdateActionGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,374 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "Default-NotificationRules", | ||
"actionGroupName": "SampleActionGroup", | ||
"api-version": "2022-06-01", | ||
"actionGroup": { | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"groupShortName": "sample", | ||
"enabled": true, | ||
"emailReceivers": [ | ||
{ | ||
"name": "John Doe's email", | ||
"emailAddress": "johndoe@email.com", | ||
"useCommonAlertSchema": false | ||
}, | ||
{ | ||
"name": "Jane Smith's email", | ||
"emailAddress": "janesmith@email.com", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"smsReceivers": [ | ||
{ | ||
"name": "John Doe's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "1234567890" | ||
}, | ||
{ | ||
"name": "Jane Smith's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "0987654321" | ||
} | ||
], | ||
"webhookReceivers": [ | ||
{ | ||
"name": "Sample webhook 1", | ||
"serviceUri": "http://www.example.com/webhook1", | ||
"useCommonAlertSchema": true | ||
}, | ||
{ | ||
"name": "Sample webhook 2", | ||
"serviceUri": "http://www.example.com/webhook2", | ||
"useCommonAlertSchema": true, | ||
"useAadAuth": true, | ||
"objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", | ||
"identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", | ||
"tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" | ||
} | ||
], | ||
"itsmReceivers": [ | ||
{ | ||
"name": "Sample itsm", | ||
"workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", | ||
"connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", | ||
"ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", | ||
"region": "westcentralus" | ||
} | ||
], | ||
"azureAppPushReceivers": [ | ||
{ | ||
"name": "Sample azureAppPush", | ||
"emailAddress": "johndoe@email.com" | ||
} | ||
], | ||
"automationRunbookReceivers": [ | ||
{ | ||
"automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", | ||
"runbookName": "Sample runbook", | ||
"webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", | ||
"isGlobalRunbook": false, | ||
"name": "testRunbook", | ||
"serviceUri": "<serviceUri>", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"voiceReceivers": [ | ||
{ | ||
"name": "Sample voice", | ||
"countryCode": "1", | ||
"phoneNumber": "1234567890" | ||
} | ||
], | ||
"logicAppReceivers": [ | ||
{ | ||
"name": "Sample logicApp", | ||
"resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", | ||
"callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", | ||
"useCommonAlertSchema": false | ||
} | ||
], | ||
"azureFunctionReceivers": [ | ||
{ | ||
"name": "Sample azureFunction", | ||
"functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", | ||
"functionName": "HttpTriggerCSharp1", | ||
"httpTriggerUrl": "http://test.me", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"armRoleReceivers": [ | ||
{ | ||
"name": "Sample armRole", | ||
"roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"eventHubReceivers": [ | ||
{ | ||
"name": "Sample eventHub", | ||
"eventHubNameSpace": "testEventHubNameSpace", | ||
"eventHubName": "testEventHub", | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", | ||
"type": "Microsoft.Insights/ActionGroups", | ||
"name": "SampleActionGroup", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"groupShortName": "sample", | ||
"enabled": true, | ||
"emailReceivers": [ | ||
{ | ||
"name": "John Doe's email", | ||
"emailAddress": "johndoe@email.com", | ||
"status": "Enabled", | ||
"useCommonAlertSchema": false | ||
}, | ||
{ | ||
"name": "Jane Smith's email", | ||
"emailAddress": "janesmith@email.com", | ||
"status": "Enabled", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"smsReceivers": [ | ||
{ | ||
"name": "John Doe's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "1234567890", | ||
"status": "Enabled" | ||
}, | ||
{ | ||
"name": "Jane Smith's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "0987654321", | ||
"status": "Enabled" | ||
} | ||
], | ||
"webhookReceivers": [ | ||
{ | ||
"name": "Sample webhook 1", | ||
"serviceUri": "http://www.example.com/webhook1", | ||
"useCommonAlertSchema": true | ||
}, | ||
{ | ||
"name": "Sample webhook 2", | ||
"serviceUri": "http://www.example.com/webhook2", | ||
"useCommonAlertSchema": true, | ||
"useAadAuth": true, | ||
"objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", | ||
"identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", | ||
"tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" | ||
} | ||
], | ||
"itsmReceivers": [ | ||
{ | ||
"name": "Sample itsm", | ||
"workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", | ||
"connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", | ||
"ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", | ||
"region": "westcentralus" | ||
} | ||
], | ||
"azureAppPushReceivers": [ | ||
{ | ||
"name": "Sample azureAppPush", | ||
"emailAddress": "johndoe@email.com" | ||
} | ||
], | ||
"automationRunbookReceivers": [ | ||
{ | ||
"automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", | ||
"runbookName": "Sample runbook", | ||
"webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", | ||
"isGlobalRunbook": false, | ||
"name": "testRunbook", | ||
"serviceUri": "<serviceUri>", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"voiceReceivers": [ | ||
{ | ||
"name": "Sample voice", | ||
"countryCode": "1", | ||
"phoneNumber": "1234567890" | ||
} | ||
], | ||
"logicAppReceivers": [ | ||
{ | ||
"name": "Sample logicApp", | ||
"resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", | ||
"callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", | ||
"useCommonAlertSchema": false | ||
} | ||
], | ||
"azureFunctionReceivers": [ | ||
{ | ||
"name": "Sample azureFunction", | ||
"functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", | ||
"functionName": "HttpTriggerCSharp1", | ||
"httpTriggerUrl": "<httpTriggerUrl>", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"armRoleReceivers": [ | ||
{ | ||
"name": "Sample armRole", | ||
"roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"eventHubReceivers": [ | ||
{ | ||
"name": "Sample eventHub", | ||
"eventHubNameSpace": "testEventHubNameSpace", | ||
"eventHubName": "testEventHub", | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84", | ||
"useCommonAlertSchema": false | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", | ||
"type": "Microsoft.Insights/ActionGroups", | ||
"name": "SampleActionGroup", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"groupShortName": "sample", | ||
"enabled": true, | ||
"emailReceivers": [ | ||
{ | ||
"name": "John Doe's email", | ||
"emailAddress": "johndoe@email.com", | ||
"status": "Enabled", | ||
"useCommonAlertSchema": false | ||
}, | ||
{ | ||
"name": "Jane Smith's email", | ||
"emailAddress": "janesmith@email.com", | ||
"status": "Enabled", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"smsReceivers": [ | ||
{ | ||
"name": "John Doe's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "1234567890", | ||
"status": "Enabled" | ||
}, | ||
{ | ||
"name": "Jane Smith's mobile", | ||
"countryCode": "1", | ||
"phoneNumber": "0987654321", | ||
"status": "Enabled" | ||
} | ||
], | ||
"webhookReceivers": [ | ||
{ | ||
"name": "Sample webhook 1", | ||
"serviceUri": "http://www.example.com/webhook1", | ||
"useCommonAlertSchema": true | ||
}, | ||
{ | ||
"name": "Sample webhook 2", | ||
"serviceUri": "http://www.example.com/webhook2", | ||
"useCommonAlertSchema": true, | ||
"useAadAuth": true, | ||
"objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", | ||
"identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", | ||
"tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" | ||
} | ||
], | ||
"itsmReceivers": [ | ||
{ | ||
"name": "Sample itsm", | ||
"workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", | ||
"connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", | ||
"ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", | ||
"region": "westcentralus" | ||
} | ||
], | ||
"azureAppPushReceivers": [ | ||
{ | ||
"name": "Sample azureAppPush", | ||
"emailAddress": "johndoe@email.com" | ||
} | ||
], | ||
"automationRunbookReceivers": [ | ||
{ | ||
"automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", | ||
"runbookName": "Sample runbook", | ||
"webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", | ||
"isGlobalRunbook": false, | ||
"name": "testRunbook", | ||
"serviceUri": "<serviceUri>", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"voiceReceivers": [ | ||
{ | ||
"name": "Sample voice", | ||
"countryCode": "1", | ||
"phoneNumber": "1234567890" | ||
} | ||
], | ||
"logicAppReceivers": [ | ||
{ | ||
"name": "Sample logicApp", | ||
"resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", | ||
"callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", | ||
"useCommonAlertSchema": false | ||
} | ||
], | ||
"azureFunctionReceivers": [ | ||
{ | ||
"name": "Sample azureFunction", | ||
"functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", | ||
"functionName": "HttpTriggerCSharp1", | ||
"httpTriggerUrl": "<httpTriggerUrl>", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"armRoleReceivers": [ | ||
{ | ||
"name": "Sample armRole", | ||
"roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", | ||
"useCommonAlertSchema": true | ||
} | ||
], | ||
"eventHubReceivers": [ | ||
{ | ||
"name": "Sample eventHub", | ||
"eventHubNameSpace": "testEventHubNameSpace", | ||
"eventHubName": "testEventHub", | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84", | ||
"useCommonAlertSchema": false | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...tor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/deleteActionGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "Default-NotificationRules", | ||
"actionGroupName": "SampleActionGroup", | ||
"api-version": "2022-06-01" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.