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

Added changes for throughput bucketing #31082

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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check failure on line 1 in specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/cosmos-db.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/cosmos-db.json#L1

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/cosmos-db.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/cosmos-db.json
"swagger": "2.0",
"info": {
"title": "Cosmos DB",
Expand Down Expand Up @@ -9736,6 +9736,13 @@
"type": "string",
"description": "The maximum throughput value or the maximum maxThroughput value (for autoscale) that can be specified",
"readOnly": true
},
"throughputBuckets": {
"type": "array",
"description": "Array of Throughput Bucket limits to be applied to the Cosmos DB container",
"items": {
"$ref": "#/definitions/ThroughputBucketResource"
}
}
}
},
Expand Down Expand Up @@ -9785,6 +9792,24 @@
}
}
},
"ThroughputBucketResource": {
"type": "object",
"description": "Cosmos DB throughput bucket object",
"properties": {
"id": {
"type": "integer",
"description": "Represents the throughput bucket id"
},
"maxThroughputPercentage": {
"type": "integer",
"description": "Represents maximum percentage throughput that can be used by the bucket"
}
},
"required": [
"id",
"maxThroughputPercentage"
]
},
"OptionsResource": {
"type": "object",
"description": "Cosmos DB options resource object",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check failure on line 1 in specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/examples/CosmosDBSqlContainerThroughputGet.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/examples/CosmosDBSqlContainerThroughputGet.json#L1

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/examples/CosmosDBSqlContainerThroughputGet.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/examples/CosmosDBSqlContainerThroughputGet.json
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
Expand All @@ -22,6 +22,28 @@
"offerReplacePending": "true",
"instantMaximumThroughput": "10000",
"softAllowedMaximumThroughput": "1000000",
"throughputBuckets": [
{
"id": 1,
"maxThroughputPercentage": 10
},
{
"id": 2,
"maxThroughputPercentage": 5
},
{
"id": 3,
"maxThroughputPercentage": 15
},
{
"id": 4,
"maxThroughputPercentage": 10
},
{
"id": 5,
"maxThroughputPercentage": 20
}
],
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check failure on line 1 in specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/examples/CosmosDBSqlContainerThroughputUpdate.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/examples/CosmosDBSqlContainerThroughputUpdate.json#L1

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/examples/CosmosDBSqlContainerThroughputUpdate.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-12-01-preview/examples/CosmosDBSqlContainerThroughputUpdate.json
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
Expand Down Expand Up @@ -29,6 +29,28 @@
"throughput": 400,
"minimumThroughput": "400",
"offerReplacePending": "true",
"throughputBuckets": [
{
"id": 1,
"maxThroughputPercentage": 10
},
{
"id": 2,
"maxThroughputPercentage": 5
},
{
"id": 3,
"maxThroughputPercentage": 15
},
{
"id": 4,
"maxThroughputPercentage": 10
},
{
"id": 5,
"maxThroughputPercentage": 20
}
],
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
Expand Down
Loading