-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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.AlertsManagement to add …
…version preview/2023-04-01-preview (#22849) * Adds base for updating Microsoft.AlertsManagement from version preview/2023-01-01-preview to version 2023-04-01-preview * Updates readme * Updates API version in new specs and examples * Add TenantActivityLogAlerts Resource type * Prettier * Align with ALA * Fix issues * Prettier * Fix param * fix PR comments --------- Co-authored-by: meydand <t-meday@microsoft.com> Co-authored-by: Meydan Dayan <meday@microsoft.com>
- Loading branch information
1 parent
2d707db
commit c23c230
Showing
8 changed files
with
889 additions
and
0 deletions.
There are no files selected for viewing
527 changes: 527 additions & 0 deletions
527
...anager/Microsoft.AlertsManagement/preview/2023-04-01-preview/TenantActivityLogAlerts.json
Large diffs are not rendered by default.
Oops, something went wrong.
111 changes: 111 additions & 0 deletions
111
...gement/preview/2023-04-01-preview/examples/TenantActivityLogAlertRule_CreateOrUpdate.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,111 @@ | ||
{ | ||
"parameters": { | ||
"managementGroupName": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"alertRuleName": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"api-version": "2023-04-01-preview", | ||
"tenantActivityLogAlertRule": { | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
}, | ||
"actionProperties": { | ||
"Email.Title": "my email title" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert service health rule on tenant level events." | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts", | ||
"name": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
}, | ||
"actionProperties": { | ||
"Email.Title": "my email title" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert service health rule on tenant level events." | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts", | ||
"name": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
}, | ||
"actionProperties": { | ||
"Email.Title": "my email title" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert service health rule on tenant level events." | ||
} | ||
} | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...Management/preview/2023-04-01-preview/examples/TenantActivityLogAlertRule_DeleteRule.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,11 @@ | ||
{ | ||
"parameters": { | ||
"managementGroupName": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"alertRuleName": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"api-version": "2023-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...rtsManagement/preview/2023-04-01-preview/examples/TenantActivityLogAlertRule_GetRule.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,45 @@ | ||
{ | ||
"parameters": { | ||
"managementGroupName": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"alertRuleName": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"api-version": "2023-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts", | ||
"name": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
}, | ||
"actionProperties": { | ||
"Email.Title": "my email title" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert service health rule on tenant level events." | ||
} | ||
} | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...preview/2023-04-01-preview/examples/TenantActivityLogAlertRule_ListByManagementGroup.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,48 @@ | ||
{ | ||
"parameters": { | ||
"managementGroupName": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"api-version": "2023-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts", | ||
"name": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
}, | ||
"actionProperties": { | ||
"Email.Title": "my email title" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert service health rule on tenant level events." | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
...nagement/preview/2023-04-01-preview/examples/TenantActivityLogAlertRule_ListByTenant.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,80 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts", | ||
"name": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
}, | ||
"actionProperties": { | ||
"Email.Title": "my email title" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert service health rule on tenant level events." | ||
} | ||
}, | ||
{ | ||
"id": "/providers/Microsoft.Management/ManagementGroups/MyManagementGroup/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts", | ||
"name": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/MyManagementGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
}, | ||
"actionProperties": { | ||
"Email.Title": "my email title" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert service health rule on tenant level events." | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...Management/preview/2023-04-01-preview/examples/TenantActivityLogAlertRule_UpdateRule.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,57 @@ | ||
{ | ||
"parameters": { | ||
"managementGroupName": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"alertRuleName": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"api-version": "2023-04-01-preview", | ||
"tenantActivityLogAlertRulePatch": { | ||
"tags": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
}, | ||
"properties": { | ||
"enabled": false | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts", | ||
"name": "SampleActivityLogAlertSHRuleOnTenantLevel", | ||
"location": "Global", | ||
"tags": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
}, | ||
"properties": { | ||
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
}, | ||
"actionProperties": { | ||
"Email.Title": "my email title" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": false, | ||
"description": "Description of sample Activity Log Alert service health rule on tenant level events." | ||
} | ||
} | ||
} | ||
} | ||
} |
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