forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
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/2020-10-01 (Azure#11579) * Adds base for updating Microsoft.Insights from version stable/2017-04-01 to version 2020-10-01 * Updates readme * Updates API version in new specs and examples * Removed API related to ActionGroup from the new api-version * Implemented new api-version * Added more exmamples and renamed them * Adds suppression to readme * Adds suppression to readme * Adds suppression to readme * Ran prettier * Reverted error response to match previous one, to not intoduce breaking change * Added suppression for error response * Fixed error response suppression * Ran prettier + improved error response suppression * Reverted ALA API operationIds so it won't be a breaking change for Python * Reverted parameter + definition names to no be breaking change * Fixed examples according to parameters and defs revert * Checking push * Reverting Inbal's merge today * Fixing "The example JSON file is not referenced from the swagger file." * Adding to readme.azureresourceschema.md * fixing python package * Reverting last commit * Fixing python readme Co-authored-by: Natalie Polishuk 🦝 <napolish@microsoft.com>
- Loading branch information
Showing
13 changed files
with
1,322 additions
and
78 deletions.
There are no files selected for viewing
540 changes: 540 additions & 0 deletions
540
.../monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/activityLogAlerts_API.json
Large diffs are not rendered by default.
Oops, something went wrong.
121 changes: 121 additions & 0 deletions
121
...er/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_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,121 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "MyResourceGroup", | ||
"activityLogAlertName": "SampleActivityLogAlertRule", | ||
"api-version": "2020-10-01", | ||
"activityLogAlertRule": { | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"scopes": [ | ||
"/subscriptions/187f412d-1758-44d9-b052-169e2564721d" | ||
], | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "Administrative" | ||
}, | ||
{ | ||
"field": "level", | ||
"equals": "Error" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert rule." | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlertRule", | ||
"type": "Microsoft.Insights/ActivityLogAlerts", | ||
"name": "SampleActivityLogAlertRule", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"scopes": [ | ||
"subscriptions/187f412d-1758-44d9-b052-169e2564721d" | ||
], | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "Category", | ||
"equals": "Administrative" | ||
}, | ||
{ | ||
"field": "Level", | ||
"equals": "Error" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert rule." | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlertRule", | ||
"type": "Microsoft.Insights/ActivityLogAlerts", | ||
"name": "SampleActivityLogAlertRule", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"scopes": [ | ||
"subscriptions/187f412d-1758-44d9-b052-169e2564721d" | ||
], | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "Category", | ||
"equals": "Administrative" | ||
}, | ||
{ | ||
"field": "Level", | ||
"equals": "Error" | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert rule." | ||
} | ||
} | ||
} | ||
} | ||
} |
145 changes: 145 additions & 0 deletions
145
...stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdateRuleWithAnyOfCondition.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,145 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "MyResourceGroup", | ||
"activityLogAlertName": "SampleActivityLogAlertRuleWithAnyOfCondition", | ||
"api-version": "2020-10-01", | ||
"activityLogAlertRule": { | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"scopes": [ | ||
"subscriptions/187f412d-1758-44d9-b052-169e2564721d" | ||
], | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
}, | ||
{ | ||
"anyOf": [ | ||
{ | ||
"field": "properties.incidentType", | ||
"equals": "Incident" | ||
}, | ||
{ | ||
"field": "properties.incidentType", | ||
"equals": "Maintenance" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert rule with 'anyOf' condition." | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlertRuleWithAnyOfCondition", | ||
"type": "Microsoft.Insights/ActivityLogAlerts", | ||
"name": "SampleActivityLogAlertRuleWithAnyOfCondition", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"scopes": [ | ||
"subscriptions/187f412d-1758-44d9-b052-169e2564721d" | ||
], | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
}, | ||
{ | ||
"anyOf": [ | ||
{ | ||
"field": "properties.incidentType", | ||
"equals": "Incident" | ||
}, | ||
{ | ||
"field": "properties.incidentType", | ||
"equals": "Maintenance" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert rule with 'anyOf' condition." | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlertRuleWithAnyOfCondition", | ||
"type": "Microsoft.Insights/ActivityLogAlerts", | ||
"name": "SampleActivityLogAlertRuleWithAnyOfCondition", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"scopes": [ | ||
"subscriptions/187f412d-1758-44d9-b052-169e2564721d" | ||
], | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
}, | ||
{ | ||
"anyOf": [ | ||
{ | ||
"field": "properties.incidentType", | ||
"equals": "Incident" | ||
}, | ||
{ | ||
"field": "properties.incidentType", | ||
"equals": "Maintenance" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert rule with 'anyOf' condition." | ||
} | ||
} | ||
} | ||
} | ||
} |
130 changes: 130 additions & 0 deletions
130
...ts/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdateRuleWithContainsAny.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,130 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", | ||
"resourceGroupName": "MyResourceGroup", | ||
"activityLogAlertName": "SampleActivityLogAlertRuleWithContainsAny", | ||
"api-version": "2020-10-01", | ||
"activityLogAlertRule": { | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"scopes": [ | ||
"subscriptions/187f412d-1758-44d9-b052-169e2564721d" | ||
], | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
}, | ||
{ | ||
"field": "properties.impactedServices[*].ImpactedRegions[*].RegionName", | ||
"containsAny": [ | ||
"North Europe", | ||
"West Europe" | ||
] | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert rule with 'containsAny'." | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlertRuleWithContainsAny", | ||
"type": "Microsoft.Insights/ActivityLogAlerts", | ||
"name": "SampleActivityLogAlertRuleWithContainsAny", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"scopes": [ | ||
"subscriptions/187f412d-1758-44d9-b052-169e2564721d" | ||
], | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
}, | ||
{ | ||
"field": "properties.impactedServices[*].ImpactedRegions[*].RegionName", | ||
"containsAny": [ | ||
"North Europe", | ||
"West Europe" | ||
] | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert rule with 'containsAny'." | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlertRuleWithContainsAny", | ||
"type": "Microsoft.Insights/ActivityLogAlerts", | ||
"name": "SampleActivityLogAlertRuleWithContainsAny", | ||
"location": "Global", | ||
"tags": {}, | ||
"properties": { | ||
"scopes": [ | ||
"subscriptions/187f412d-1758-44d9-b052-169e2564721d" | ||
], | ||
"condition": { | ||
"allOf": [ | ||
{ | ||
"field": "category", | ||
"equals": "ServiceHealth" | ||
}, | ||
{ | ||
"field": "properties.impactedServices[*].ImpactedRegions[*].RegionName", | ||
"containsAny": [ | ||
"North Europe", | ||
"West Europe" | ||
] | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"actionGroups": [ | ||
{ | ||
"actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", | ||
"webhookProperties": { | ||
"sampleWebhookProperty": "SamplePropertyValue" | ||
} | ||
} | ||
] | ||
}, | ||
"enabled": true, | ||
"description": "Description of sample Activity Log Alert rule with 'containsAny'." | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.