Skip to content

Commit

Permalink
CodeGen from PR 15607 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Fixed types of severity and actions (#15607)

* Fixed types of severity and actions

* Reverted the type of the Severity field from "integer" back to "number"

Co-authored-by: Avi Jerafi <avjerafi@microsoft.com>
  • Loading branch information
SDKAuto and Avi Jerafi committed Aug 12, 2021
1 parent 3081eba commit 3cf1003
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions schemas/2021-02-01-preview/Microsoft.Insights.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,41 @@
}
},
"definitions": {
"Actions": {
"type": "object",
"properties": {
"actionGroups": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Action Group resource Ids to invoke when the alert fires."
},
"customProperties": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of an alert payload."
}
},
"description": "Actions to invoke when the alert fires."
},
"Condition": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -272,8 +307,14 @@
"type": "object",
"properties": {
"actions": {
"type": "object",
"properties": {},
"oneOf": [
{
"$ref": "#/definitions/Actions"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Actions to invoke when the alert fires."
},
"autoMitigate": {
Expand Down

0 comments on commit 3cf1003

Please sign in to comment.