Skip to content

Commit

Permalink
Add quotas property to managed environment (#22169)
Browse files Browse the repository at this point in the history
* Add quotas property to managed environment

* lint
  • Loading branch information
zhenqxuMSFT authored Jan 13, 2023
1 parent 6772486 commit 6c10168
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,34 @@
}
}
},
"ManagedEnvironmentQuota": {
"type": "object",
"description": "Managed environment quota status",
"properties": {
"cores": {
"description": "The cores quota status",
"$ref": "#/definitions/QuotaStatus"
}
}
},
"QuotaStatus": {
"type": "object",
"description": "Quota status",
"properties": {
"total": {
"type": "number",
"format": "double",
"readOnly": true,
"description": "Total quota amount"
},
"used": {
"type": "number",
"format": "double",
"readOnly": true,
"description": "Used quota amount"
}
}
},
"VnetConfiguration": {
"type": "object",
"description": "Configuration properties for apps environment to join a Virtual Network",
Expand Down Expand Up @@ -1269,6 +1297,10 @@
"daprConfiguration": {
"$ref": "#/definitions/DaprConfiguration",
"description": "The configuration of Dapr component."
},
"quotas": {
"$ref": "#/definitions/ManagedEnvironmentQuota",
"description": "Quota status for the environment."
}
},
"x-ms-client-flatten": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
},
"daprConfiguration": {
"version": "1.9"
},
"quotas": {
"cores": {
"total": 2.34,
"used": 1.23
}
}
}
}
Expand Down

0 comments on commit 6c10168

Please sign in to comment.