Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hub Generated] Review request for Microsoft.Sql to add WorkloadGroups and WorkloadClasifiers to API 2019-06-01-preview #7349

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"workloadGroupName": "wlm_workloadgroup",
"workloadClassifierName": "wlm_workloadclassifier",
"api-version": "2019-06-01-preview",
"parameters": {
"properties": {
"memberName": "dbo",
"label": "test_label",
"context": "test_context",
"startTime": "12:00",
"endTime": "14:00",
"importance": "high"
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"memberName": "dbo",
"label": "test_label",
"context": "test_context",
"startTime": "12:00",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swagger & ARM team reviewers, what is the guidance for exposing "time of day" (i.e. just time, not date+time)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swagger & ARM team reviewers, what is the guidance for exposing "time of day" (i.e. just time, not date+time)?
@ryansbenson, what is the suggestion here?

"endTime": "14:00",
"importance": "high"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/wlm_workloadgroup/workloadClassifiers/wlm_workloadclassifier",
"name": "wlm_workloadclassifier",
"type": "Microsoft.Sql/servers/databases/workloadGroups/workloadClassifiers"
}
},
"201": {
"body": {
"properties": {
"memberName": "dbo",
"label": "test_label",
"context": "test_context",
"startTime": "12:00",
"endTime": "14:00",
"importance": "high"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/wlm_workloadgroup/workloadClassifiers/wlm_workloadclassifier",
"name": "wlm_workloadclassifier",
"type": "Microsoft.Sql/servers/databases/workloadGroups/workloadClassifiers"
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"workloadGroupName": "wlm_workloadgroup",
"workloadClassifierName": "wlm_workloadclassifier",
"api-version": "2019-06-01-preview",
"parameters": {
"properties": {
"memberName": "dbo"
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"memberName": "dbo",
"label": "",
"context": "",
"startTime": "",
"endTime": "",
"importance": ""
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/wlm_workloadgroup/workloadClassifiers/wlm_workloadclassifier",
"name": "wlm_workloadclassifier",
"type": "Microsoft.Sql/servers/databases/workloadGroups/workloadClassifiers"
}
},
"201": {
"body": {
"properties": {
"memberName": "dbo",
"label": "",
"context": "",
"startTime": "",
"endTime": "",
"importance": ""
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/wlm_workloadgroup/workloadClassifiers/wlm_workloadclassifier",
"name": "wlm_workloadclassifier",
"type": "Microsoft.Sql/servers/databases/workloadGroups/workloadClassifiers"
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"workloadGroupName": "smallrc",
"api-version": "2019-06-01-preview",
"parameters": {
"properties": {
"minResourcePercent": 0,
"maxResourcePercent": 100,
"minResourcePercentPerRequest": 3.0,
"maxResourcePercentPerRequest": 3.0,
"importance": "normal",
"queryExecutionTimeout": 0
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"minResourcePercent": 0,
"maxResourcePercent": 100,
"minResourcePercentPerRequest": 3.0,
"maxResourcePercentPerRequest": 3.0,
"importance": "normal",
"queryExecutionTimeout": 0
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/smallrc",
"name": "smallrc",
"type": "Microsoft.Sql/servers/databases/workloadGroups"
}
},
"201": {
"body": {
"properties": {
"minResourcePercent": 0,
"maxResourcePercent": 100,
"minResourcePercentPerRequest": 3.0,
"maxResourcePercentPerRequest": 3.0,
"importance": "normal",
"queryExecutionTimeout": 0
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/smallrc",
"name": "smallrc",
"type": "Microsoft.Sql/servers/databases/workloadGroups"
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"workloadGroupName": "smallrc",
"api-version": "2019-06-01-preview",
"parameters": {
"properties": {
"minResourcePercent": 0,
"maxResourcePercent": 100,
"minResourcePercentPerRequest": 3.0
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"minResourcePercent": 0,
"maxResourcePercent": 100,
"minResourcePercentPerRequest": 3.0,
"maxResourcePercentPerRequest": 3.0,
"importance": "normal",
"queryExecutionTimeout": 0
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/smallrc",
"name": "smallrc",
"type": "Microsoft.Sql/servers/databases/workloadGroups"
}
},
"201": {
"body": {
"properties": {
"minResourcePercent": 0,
"maxResourcePercent": 100,
"minResourcePercentPerRequest": 3.0,
"maxResourcePercentPerRequest": 3.0,
"importance": "normal",
"queryExecutionTimeout": 0
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/smallrc",
"name": "smallrc",
"type": "Microsoft.Sql/servers/databases/workloadGroups"
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"workloadGroupName": "wlm_workloadgroup",
"workloadClassifierName": "wlm_workloadclassifier",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"workloadGroupName": "wlm_workloadgroup",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"workloadGroupName": "wlm_workloadgroup",
"workloadClassifierName": "wlm_classifier",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"memberName": "dbo",
"label": "test_label",
"context": "test_context",
"startTime": "12:00",
"endTime": "14:00",
"importance": "high"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/wlm_workloadgroup/workloadClassifiers/wlm_classifier",
"name": "wlm_classifier",
"type": "Microsoft.Sql/servers/databases/workloadGroups/workloadClassifiers"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"workloadGroupName": "wlm_workloadgroup",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"memberName": "dbo",
"label": "",
"context": "",
"startTime": "",
"endTime": "",
"importance": "high"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/wlm_workloadgroup/workloadClassifiers/classifier3",
"name": "classifier3",
"type": "Microsoft.Sql/servers/databases/workloadGroups/workloadClassifiers"
},
{
"properties": {
"memberName": "dbo",
"label": "test_label",
"context": "test_context",
"startTime": "12:00",
"endTime": "14:00",
"importance": "high"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/wlm_workloadgroup/workloadClassifiers/classifier1",
"name": "classifier1",
"type": "Microsoft.Sql/servers/databases/workloadGroups/workloadClassifiers"
},
{
"properties": {
"memberName": "dbo",
"label": "",
"context": "",
"startTime": "11:00",
"endTime": "17:00",
"importance": "high"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/wlm_workloadgroup/workloadClassifiers/classifier2",
"name": "classifier2",
"type": "Microsoft.Sql/servers/databases/workloadGroups/workloadClassifiers"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"workloadGroupName": "smallrc",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"minResourcePercent": 0,
"maxResourcePercent": 100,
"minResourcePercentPerRequest": 3.0,
"maxResourcePercentPerRequest": 3.0,
"importance": "normal",
"queryExecutionTimeout": 0
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/smallrc",
"name": "smallrc",
"type": "Microsoft.Sql/servers/databases/workloadGroups"
}
}
}
}
Loading