Skip to content

Commit 2a07629

Browse files
patrinidpatrinid
andauthored
Update recommendation short descriptions for problem and solution. (#20624)
* Update recommendation short descriptions for problem and solution. * Fix verbiage on the new short description. * Update sample uuid for empty response. * Add example for List Operations. * Run prettier on ListOperations example. Co-authored-by: patrinid <[email protected]>
1 parent 04efa7d commit 2a07629

File tree

8 files changed

+49
-12
lines changed

8 files changed

+49
-12
lines changed

specification/advisor/resource-manager/Microsoft.Advisor/stable/2020-01-01/advisor.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,11 @@
495495
"deprecated": false,
496496
"x-ms-pageable": {
497497
"nextLinkName": "nextLink"
498+
},
499+
"x-ms-examples": {
500+
"ListRecommendations": {
501+
"$ref": "./examples/ListOperations.json"
502+
}
498503
}
499504
}
500505
},
@@ -1212,11 +1217,11 @@
12121217
"type": "object",
12131218
"properties": {
12141219
"problem": {
1215-
"description": "The issue or opportunity identified by the recommendation.",
1220+
"description": "The issue or opportunity identified by the recommendation and proposed solution.",
12161221
"type": "string"
12171222
},
12181223
"solution": {
1219-
"description": "The remediation action suggested by the recommendation.",
1224+
"description": "The issue or opportunity identified by the recommendation and proposed solution.",
12201225
"type": "string"
12211226
}
12221227
}

specification/advisor/resource-manager/Microsoft.Advisor/stable/2020-01-01/examples/EmptyResponse.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"parameters": {
3-
"subscriptionId": "subscriptionId",
4-
"operationId": "operationGUID",
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"operationId": "00000000-0000-0000-0000-000000000000",
55
"api-version": "2020-01-01"
66
},
77
"responses": {

specification/advisor/resource-manager/Microsoft.Advisor/stable/2020-01-01/examples/GetRecommendationDetail.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lastUpdated": "2017-02-24T22:24:43.3216408Z",
1818
"risk": "Warning",
1919
"shortDescription": {
20-
"problem": "Monitoring agent is not installed on your machines",
20+
"problem": "Monitoring agent should be installed on your machines",
2121
"solution": "Monitoring agent should be installed on your machines"
2222
},
2323
"remediation": {
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-01-01"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.Advisor/advisorScore/read",
11+
"display": {
12+
"description": "Gets the score data for given subscription",
13+
"operation": "Gets Advisor score",
14+
"provider": "Microsoft Advisor",
15+
"resource": "AdvisorScore"
16+
}
17+
},
18+
{
19+
"name": "Microsoft.Advisor/recommendations/read",
20+
"display": {
21+
"description": "Reads recommendations",
22+
"operation": "Read recommendations",
23+
"provider": "Microsoft Advisor",
24+
"resource": "Recommendations"
25+
}
26+
}
27+
],
28+
"nextLink": "string"
29+
}
30+
}
31+
}
32+
}

specification/advisor/resource-manager/Microsoft.Advisor/stable/2020-01-01/examples/ListRecommendations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"details": "link to document"
2626
},
2727
"shortDescription": {
28-
"problem": "This availability set is not configured for fault tolerance",
28+
"problem": "To ensure high availability add one or more virtual machines to this availability set",
2929
"solution": "To ensure high availability add one or more virtual machines to this availability set"
3030
},
3131
"resourceMetadata": {
@@ -72,7 +72,7 @@
7272
"risk": "Warning",
7373
"shortDescription": {
7474
"problem": "Monitoring agent is not installed on your machines",
75-
"solution": "Monitoring agent should be installed on your machines"
75+
"solution": "Monitoring agent is not installed on your machines"
7676
},
7777
"resourceMetadata": {
7878
"resourceId": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Compute/virtualMachines/xyz",

specification/advisor/resource-manager/Microsoft.Advisor/stable/2022-09-01/advisor.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,11 +1279,11 @@
12791279
"type": "object",
12801280
"properties": {
12811281
"problem": {
1282-
"description": "The issue or opportunity identified by the recommendation.",
1282+
"description": "The issue or opportunity identified by the recommendation and proposed solution.",
12831283
"type": "string"
12841284
},
12851285
"solution": {
1286-
"description": "The remediation action suggested by the recommendation.",
1286+
"description": "The issue or opportunity identified by the recommendation and proposed solution.",
12871287
"type": "string"
12881288
}
12891289
}

specification/advisor/resource-manager/Microsoft.Advisor/stable/2022-09-01/examples/GetRecommendationDetail.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lastUpdated": "2017-02-24T22:24:43.3216408Z",
1818
"risk": "Warning",
1919
"shortDescription": {
20-
"problem": "Monitoring agent is not installed on your machines",
20+
"problem": "Monitoring agent should be installed on your machines",
2121
"solution": "Monitoring agent should be installed on your machines"
2222
},
2323
"remediation": {

specification/advisor/resource-manager/Microsoft.Advisor/stable/2022-09-01/examples/ListRecommendations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"details": "link to document"
2626
},
2727
"shortDescription": {
28-
"problem": "This availability set is not configured for fault tolerance",
28+
"problem": "To ensure high availability add one or more virtual machines to this availability set",
2929
"solution": "To ensure high availability add one or more virtual machines to this availability set"
3030
},
3131
"resourceMetadata": {
@@ -71,7 +71,7 @@
7171
"lastUpdated": "2017-02-24T22:24:43.3216408Z",
7272
"risk": "Warning",
7373
"shortDescription": {
74-
"problem": "Monitoring agent is not installed on your machines",
74+
"problem": "Monitoring agent should be installed on your machines",
7575
"solution": "Monitoring agent should be installed on your machines"
7676
},
7777
"resourceMetadata": {

0 commit comments

Comments
 (0)