From 998721650232bb063c3977e83740f228edf4c537 Mon Sep 17 00:00:00 2001 From: yashmuel <63585146+yashmuel@users.noreply.github.com> Date: Mon, 18 Jan 2021 03:43:10 +0200 Subject: [PATCH] [Hub Generated] Review request for Microsoft.Insights to add version stable/2018-03-01 (#12371) * Added isMigrated as readonly property * Suppress model validation error --- .../stable/2018-03-01/metricAlert_API.json | 13 ++++++++++++- specification/monitor/resource-manager/readme.md | 4 ++++ 2 files changed, 16 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." 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