From 7ea8f0f10ed3435fe94a02ad69f7c57fc309a4be Mon Sep 17 00:00:00 2001 From: Yaniv Shmueli Date: Mon, 11 Jan 2021 19:39:18 +0200 Subject: [PATCH 1/2] Added isMigrated as readonly property --- .../stable/2018-03-01/metricAlert_API.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json index 71ef04f5b63d..cfcda6c4c2ac 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json @@ -484,7 +484,8 @@ "severity", "evaluationFrequency", "windowSize", - "criteria" + "criteria", + "scopes" ], "properties": { "description": { @@ -545,6 +546,11 @@ "type": "string", "format": "date-time", "description": "Last time the rule was updated in ISO8601 format." + }, + "isMigrated": { + "type": "string", + "description": "the value indicating whether this alert rule is migrated.", + "readOnly": true } }, "description": "An alert rule." @@ -609,6 +615,11 @@ "type": "string", "format": "date-time", "description": "Last time the rule was updated in ISO8601 format." + }, + "isMigrated": { + "type": "string", + "description": "the value indicating whether this alert rule is migrated.", + "readOnly": true } }, "description": "An alert rule properties for patch." From 5481aacd70c581bd45d8a8cd97536153e200b08c Mon Sep 17 00:00:00 2001 From: Yaniv Shmueli Date: Fri, 15 Jan 2021 19:19:24 +0200 Subject: [PATCH 2/2] Suppress model validation error --- specification/monitor/resource-manager/readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/monitor/resource-manager/readme.md b/specification/monitor/resource-manager/readme.md index cb086f714bea..c49b8742f138 100644 --- a/specification/monitor/resource-manager/readme.md +++ b/specification/monitor/resource-manager/readme.md @@ -599,6 +599,10 @@ directive: - suppress: R4007 from: metricBaselines_API.json reason: 'Updating the error response to the new format would be a breaking change.' + - suppress: OBJECT_ADDITIONAL_PROPERTIES + from: metricAlert_API.json + where: $.definitions.MetricAlertResource + reason: 'Action is expected to receive a subclass of Resource' ``` ### Tag: profile-hybrid-2019-03-01