From a1035bb12996b9083b95dcba83505fa9af1ff85c Mon Sep 17 00:00:00 2001 From: mudit794 <42189950+mudit794@users.noreply.github.com> Date: Mon, 14 Dec 2020 18:35:22 -0800 Subject: [PATCH 1/4] Add new category count --- .../preview/2020-07-01-preview/advisor.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/advisor.json b/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/advisor.json index dc682bd2020b..eed5986f67e1 100644 --- a/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/advisor.json +++ b/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/advisor.json @@ -230,6 +230,11 @@ "potentialScoreIncrease": { "description": "The potential percentage increase in overall score at subscription level once all recommendations in this scope are implemented.", "type": "number" + }, + "categoryCount": { + "description": "The count of impacted categories.", + "type": "number", + "readOnly": true } } }, @@ -249,7 +254,7 @@ "month" ] }, - "data": { + "scoreHistory": { "description": "The past score data", "type": "array", "items": { From ff07a17e04373a91217a6f2265d98b7d31e8e415 Mon Sep 17 00:00:00 2001 From: mudit794 <42189950+mudit794@users.noreply.github.com> Date: Mon, 14 Dec 2020 18:36:35 -0800 Subject: [PATCH 2/4] Update GetAdvisorScoreDetail.json --- .../examples/GetAdvisorScoreDetail.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/GetAdvisorScoreDetail.json b/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/GetAdvisorScoreDetail.json index 39f27877eddb..326373ac691a 100644 --- a/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/GetAdvisorScoreDetail.json +++ b/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/GetAdvisorScoreDetail.json @@ -15,12 +15,13 @@ "score": 1, "consumptionUnits": 12, "impactedResourceCount": 1, - "potentialScoreIncrease": 0 + "potentialScoreIncrease": 0, + "categoryCount":1 }, "timeSeries": [ { "aggregationLevel": "day", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -74,7 +75,7 @@ }, { "aggregationLevel": "month", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -100,7 +101,7 @@ }, { "aggregationLevel": "week", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, From a4f88234e5321908825b25de808ffe4ee6a3fa55 Mon Sep 17 00:00:00 2001 From: mudit794 <42189950+mudit794@users.noreply.github.com> Date: Mon, 14 Dec 2020 18:39:07 -0800 Subject: [PATCH 3/4] Update ListAdvisorScore.json --- .../examples/ListAdvisorScore.json | 42 +++++++++++-------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/ListAdvisorScore.json b/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/ListAdvisorScore.json index 1976e4b72223..48a191110f64 100644 --- a/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/ListAdvisorScore.json +++ b/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/ListAdvisorScore.json @@ -17,12 +17,13 @@ "score": 1, "consumptionUnits": 12.24521, "impactedResourceCount": 1, - "potentialScoreIncrease": 0 + "potentialScoreIncrease": 0, + "categoryCount": 2 }, "timeSeries": [ { "aggregationLevel": "day", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -76,7 +77,7 @@ }, { "aggregationLevel": "month", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -102,7 +103,7 @@ }, { "aggregationLevel": "week", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -160,12 +161,13 @@ "score": 1, "consumptionUnits": 12.24521, "impactedResourceCount": 1, - "potentialScoreIncrease": 0 + "potentialScoreIncrease": 0, + "categoryCount": 2 }, "timeSeries": [ { "aggregationLevel": "day", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -177,7 +179,7 @@ }, { "aggregationLevel": "month", - "data": [ + "scoreHistory": [ { "date": "2020-05-30T00:00:00Z", "score": 1, @@ -189,7 +191,7 @@ }, { "aggregationLevel": "week", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -212,12 +214,13 @@ "score": 1, "consumptionUnits": 12.24521, "impactedResourceCount": 1, - "potentialScoreIncrease": 0 + "potentialScoreIncrease": 0, + "categoryCount": 3 }, "timeSeries": [ { "aggregationLevel": "day", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -229,7 +232,7 @@ }, { "aggregationLevel": "month", - "data": [ + "scoreHistory": [ { "date": "2020-05-30T00:00:00Z", "score": 1, @@ -241,7 +244,7 @@ }, { "aggregationLevel": "week", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -264,12 +267,13 @@ "score": 1, "consumptionUnits": 12.24521, "impactedResourceCount": 1, - "potentialScoreIncrease": 0 + "potentialScoreIncrease": 0, + "categoryCount": 2 }, "timeSeries": [ { "aggregationLevel": "day", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -292,12 +296,13 @@ "score": 1, "consumptionUnits": 12.24521, "impactedResourceCount": 1, - "potentialScoreIncrease": 0 + "potentialScoreIncrease": 0, + "categoryCount": 1 }, "timeSeries": [ { "aggregationLevel": "day", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, @@ -320,12 +325,13 @@ "score": 1, "consumptionUnits": 12.24521, "impactedResourceCount": 1, - "potentialScoreIncrease": 0 + "potentialScoreIncrease": 0, + "categoryCount": 1 }, "timeSeries": [ { "aggregationLevel": "day", - "data": [ + "scoreHistory": [ { "date": "2020-06-25T00:00:00Z", "score": 1, From cedd26d6deb5a61421c09bd29ad517999f1dfff6 Mon Sep 17 00:00:00 2001 From: mudit794 <42189950+mudit794@users.noreply.github.com> Date: Mon, 14 Dec 2020 18:39:22 -0800 Subject: [PATCH 4/4] Update GetAdvisorScoreDetail.json --- .../2020-07-01-preview/examples/GetAdvisorScoreDetail.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/GetAdvisorScoreDetail.json b/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/GetAdvisorScoreDetail.json index 326373ac691a..5b2dceaf88cf 100644 --- a/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/GetAdvisorScoreDetail.json +++ b/specification/advisor/resource-manager/Microsoft.Advisor/preview/2020-07-01-preview/examples/GetAdvisorScoreDetail.json @@ -16,7 +16,7 @@ "consumptionUnits": 12, "impactedResourceCount": 1, "potentialScoreIncrease": 0, - "categoryCount":1 + "categoryCount": 1 }, "timeSeries": [ {