From 3cf1003f460bc3b6643b908cc615855176577808 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 12 Aug 2021 20:32:28 +0000 Subject: [PATCH] CodeGen from PR 15607 in Azure/azure-rest-api-specs 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 --- .../Microsoft.Insights.json | 45 ++++++++++++++++++- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/schemas/2021-02-01-preview/Microsoft.Insights.json b/schemas/2021-02-01-preview/Microsoft.Insights.json index cd1534c569..491ed08eea 100644 --- a/schemas/2021-02-01-preview/Microsoft.Insights.json +++ b/schemas/2021-02-01-preview/Microsoft.Insights.json @@ -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": { @@ -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": {