forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing s360 violations related to recommendedactions APIs (Azure#12951)
* Fixing s360 violations related to recommendedactions APIs * update the md file * fixing operation id * addressing pr comments
- Loading branch information
Showing
9 changed files
with
866 additions
and
0 deletions.
There are no files selected for viewing
563 changes: 563 additions & 0 deletions
563
...ource-manager/Microsoft.DBforPostgreSQL/stable/2018-06-01/PerformanceRecommendations.json
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...ql/resource-manager/Microsoft.DBforPostgreSQL/stable/2018-06-01/examples/AdvisorsGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-06-01", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"resourceGroupName": "testResourceGroupName", | ||
"serverName": "testServerName", | ||
"advisorName": "Index" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/testServerName/advisors/Index", | ||
"name": "Index", | ||
"type": "Microsoft.DBforPostgreSQL/servers/advisors", | ||
"properties": {} | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ce-manager/Microsoft.DBforPostgreSQL/stable/2018-06-01/examples/AdvisorsListByServer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-06-01", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"resourceGroupName": "testResourceGroupName", | ||
"serverName": "testServerName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/testServerName/advisors/Index", | ||
"name": "Index", | ||
"type": "Microsoft.DBforPostgreSQL/servers/advisors", | ||
"properties": {} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../Microsoft.DBforPostgreSQL/stable/2018-06-01/examples/RecommendedActionSessionCreate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-06-01", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"resourceGroupName": "testResourceGroupName", | ||
"serverName": "testServerName", | ||
"advisorName": "Index", | ||
"databaseName": "someDatabaseName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...t.DBforPostgreSQL/stable/2018-06-01/examples/RecommendedActionSessionOperationStatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-06-01", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"locationName": "WestUS", | ||
"operationId": "aaaabbbb-cccc-dddd-0000-111122223333" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "aaaabbbb-cccc-dddd-0000-111122223333", | ||
"startTime": "2019-05-01T17:15:00Z", | ||
"status": "succeeded" | ||
} | ||
} | ||
} | ||
} |
122 changes: 122 additions & 0 deletions
122
.../Microsoft.DBforPostgreSQL/stable/2018-06-01/examples/RecommendedActionSessionResult.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-06-01", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"locationName": "WestUS", | ||
"operationId": "aaaabbbb-cccc-dddd-0000-111122223333" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-1", | ||
"name": "Index-1", | ||
"type": "Microsoft.DBforPostgreSQL/servers/advisors/recommendedActions", | ||
"properties": { | ||
"advisorName": "Index", | ||
"sessionId": "c63c2114-e2a4-4c7a-98c1-85577d1a5d50", | ||
"actionId": 1, | ||
"createdTime": "2019-05-01T23:43:24Z", | ||
"expirationTime": "2019-05-08T23:43:24Z", | ||
"reason": "Column `movies_genres`.`movie_id` appear in Join On clause(s).", | ||
"recommendationType": "Add", | ||
"details": { | ||
"engine": "InnoDB", | ||
"script": "alter table `movies`.`movies_genres` add index `idx_movie_id` (`movie_id`)", | ||
"queryIds": "779", | ||
"indexName": "idx_movie_id", | ||
"indexType": "BTREE", | ||
"tableName": "movies_genres", | ||
"schemaName": "movies", | ||
"indexColumns": "`movies_genres`.`movie_id`", | ||
"parentTableName": "movies_genres" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-2", | ||
"name": "Index-2", | ||
"type": "Microsoft.DBforPostgreSQL/servers/advisors/recommendedActions", | ||
"properties": { | ||
"advisorName": "Index", | ||
"sessionId": "c63c2114-e2a4-4c7a-98c1-85577d1a5d50", | ||
"actionId": 2, | ||
"createdTime": "2019-05-01T23:43:24Z", | ||
"expirationTime": "2019-05-08T23:43:24Z", | ||
"reason": "Column `movies_genres`.`genre` appear in Group By clause(s).", | ||
"recommendationType": "Add", | ||
"details": { | ||
"engine": "InnoDB", | ||
"script": "alter table `movies`.`movies_genres` add index `idx_genre` (`genre`)", | ||
"queryIds": "779", | ||
"indexName": "idx_genre", | ||
"indexType": "BTREE", | ||
"tableName": "movies_genres", | ||
"schemaName": "movies", | ||
"indexColumns": "`movies_genres`.`genre`", | ||
"parentTableName": "movies_genres" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-1", | ||
"name": "Index-1", | ||
"type": "Microsoft.DBforPostgreSQL/servers/advisors/recommendedActions", | ||
"properties": { | ||
"advisorName": "Index", | ||
"sessionId": "c63c2114-e2a4-4c7a-98c1-85577d1a5d50", | ||
"actionId": 1, | ||
"createdTime": "2019-05-01T23:43:24Z", | ||
"expirationTime": "2019-05-08T23:43:24Z", | ||
"reason": "Column `movies_genres`.`movie_id` appear in Join On clause(s).", | ||
"recommendationType": "Add", | ||
"details": { | ||
"engine": "InnoDB", | ||
"script": "alter table `movies`.`movies_genres` add index `idx_movie_id` (`movie_id`)", | ||
"queryIds": "779", | ||
"indexName": "idx_movie_id", | ||
"indexType": "BTREE", | ||
"tableName": "movies_genres", | ||
"schemaName": "movies", | ||
"indexColumns": "`movies_genres`.`movie_id`", | ||
"parentTableName": "movies_genres" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-2", | ||
"name": "Index-2", | ||
"type": "Microsoft.DBforPostgreSQL/servers/advisors/recommendedActions", | ||
"properties": { | ||
"advisorName": "Index", | ||
"sessionId": "c63c2114-e2a4-4c7a-98c1-85577d1a5d50", | ||
"actionId": 2, | ||
"createdTime": "2019-05-01T23:43:24Z", | ||
"expirationTime": "2019-05-08T23:43:24Z", | ||
"reason": "Column `movies_genres`.`genre` appear in Group By clause(s).", | ||
"recommendationType": "Add", | ||
"details": { | ||
"engine": "InnoDB", | ||
"script": "alter table `movies`.`movies_genres` add index `idx_genre` (`genre`)", | ||
"queryIds": "779", | ||
"indexName": "idx_genre", | ||
"indexType": "BTREE", | ||
"tableName": "movies_genres", | ||
"schemaName": "movies", | ||
"indexColumns": "`movies_genres`.`genre`", | ||
"parentTableName": "movies_genres" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...e-manager/Microsoft.DBforPostgreSQL/stable/2018-06-01/examples/RecommendedActionsGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-06-01", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"resourceGroupName": "testResourceGroupName", | ||
"serverName": "testServerName", | ||
"advisorName": "Index", | ||
"recommendedActionName": "Index-1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-1", | ||
"name": "Index-1", | ||
"type": "Microsoft.DBforPostgreSQL/servers/advisors/recommendedActions", | ||
"properties": { | ||
"advisorName": "Index", | ||
"sessionId": "c63c2114-e2a4-4c7a-98c1-85577d1a5d50", | ||
"actionId": 1, | ||
"createdTime": "2019-05-01T23:43:24Z", | ||
"expirationTime": "2019-05-08T23:43:24Z", | ||
"reason": "Column `movies_genres`.`movie_id` appear in Join On clause(s).", | ||
"recommendationType": "Add", | ||
"details": { | ||
"engine": "InnoDB", | ||
"script": "alter table `movies`.`movies_genres` add index `idx_movie_id` (`movie_id`)", | ||
"queryIds": "779", | ||
"indexName": "idx_movie_id", | ||
"indexType": "BTREE", | ||
"tableName": "movies_genres", | ||
"schemaName": "movies", | ||
"indexColumns": "`movies_genres`.`movie_id`", | ||
"parentTableName": "movies_genres" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
.../Microsoft.DBforPostgreSQL/stable/2018-06-01/examples/RecommendedActionsListByServer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-06-01", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"resourceGroupName": "testResourceGroupName", | ||
"serverName": "testServerName", | ||
"advisorName": "Index" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-1", | ||
"name": "Index-1", | ||
"type": "Microsoft.DBforPostgreSQL/servers/advisors/recommendedActions", | ||
"properties": { | ||
"advisorName": "Index", | ||
"sessionId": "c63c2114-e2a4-4c7a-98c1-85577d1a5d50", | ||
"actionId": 1, | ||
"createdTime": "2019-05-01T23:43:24Z", | ||
"expirationTime": "2019-05-08T23:43:24Z", | ||
"reason": "Column `movies_genres`.`movie_id` appear in Join On clause(s).", | ||
"recommendationType": "Add", | ||
"details": { | ||
"engine": "InnoDB", | ||
"script": "alter table `movies`.`movies_genres` add index `idx_movie_id` (`movie_id`)", | ||
"queryIds": "779", | ||
"indexName": "idx_movie_id", | ||
"indexType": "BTREE", | ||
"tableName": "movies_genres", | ||
"schemaName": "movies", | ||
"indexColumns": "`movies_genres`.`movie_id`", | ||
"parentTableName": "movies_genres" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-2", | ||
"name": "Index-2", | ||
"type": "Microsoft.DBforPostgreSQL/servers/advisors/recommendedActions", | ||
"properties": { | ||
"advisorName": "Index", | ||
"sessionId": "c63c2114-e2a4-4c7a-98c1-85577d1a5d50", | ||
"actionId": 2, | ||
"createdTime": "2019-05-01T23:43:24Z", | ||
"expirationTime": "2019-05-08T23:43:24Z", | ||
"reason": "Column `movies_genres`.`genre` appear in Group By clause(s).", | ||
"recommendationType": "Add", | ||
"details": { | ||
"engine": "InnoDB", | ||
"script": "alter table `movies`.`movies_genres` add index `idx_genre` (`genre`)", | ||
"queryIds": "779", | ||
"indexName": "idx_genre", | ||
"indexType": "BTREE", | ||
"tableName": "movies_genres", | ||
"schemaName": "movies", | ||
"indexColumns": "`movies_genres`.`genre`", | ||
"parentTableName": "movies_genres" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters