Skip to content

Commit

Permalink
Instance pool usages (#5894)
Browse files Browse the repository at this point in the history
* Initializing instance pools swagger and examples - no usages / managed instances get by instance pool

* Add instance pool usages, use common resources, and instance pool usages examples

* Updates to instance pool usages based on updated ARM usages contract

* Update instance pool usages swagger based on arm review - rename UsageName -> Name

* Updating version

* Update instance pool usages operation id

* update to usages.json since we're using new operation group

* add usages to readme.md

* fix extra line
  • Loading branch information
johnpaulkee authored and sergey-shandar committed Jun 17, 2019
1 parent 237aa47 commit 5587a88
Show file tree
Hide file tree
Showing 4 changed files with 432 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "group1",
"instancePoolName": "testIP",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/vcore_utilization",
"name": {
"value": "VCore utilization",
"localizedValue": "VCore utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "VCores",
"currentValue": 12,
"limit": 16,
"requestedLimit": 40
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/storage_utilization",
"name": {
"value": "Storage utilization",
"localizedValue": "Storage utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "VCores",
"currentValue": 384,
"limit": 8196,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/database_utilization",
"name": {
"value": "Database utilization",
"localizedValue": "Database utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "Number Of Databases",
"currentValue": 5,
"limit": 100,
"requestedLimit": null
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "group1",
"instancePoolName": "testIP",
"expandChildren": true,
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/vcore_utilization",
"name": {
"value": "VCore utilization",
"localizedValue": "VCore utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "VCores",
"currentValue": 12,
"limit": 16,
"requestedLimit": 40
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/storage_utilization",
"name": {
"value": "Storage utilization",
"localizedValue": "Storage utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "VCores",
"currentValue": 384,
"limit": 8196,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/usages/database_utilization",
"name": {
"value": "Database utilization",
"localizedValue": "Database utilization"
},
"type": "Microsoft.Sql/instancePools/usages",
"unit": "Number Of Databases",
"currentValue": 5,
"limit": 100,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance1/usages/vcore_utilization",
"name": {
"value": "VCore utilization",
"localizedValue": "VCore utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "VCores",
"currentValue": null,
"limit": 4,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance2/usages/vcore_utilization",
"name": {
"value": "VCore utilization",
"localizedValue": "VCore utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "VCores",
"currentValue": null,
"limit": 4,
"requestedLimit": 8
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance1/usages/storage_utilization",
"name": {
"value": "Storage utilization",
"localizedValue": "Storage utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "Gigabytes",
"currentValue": null,
"limit": 128,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance2/usages/storage_utilization",
"name": {
"value": "VCore utilization",
"localizedValue": "VCore utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "Gigabytes",
"currentValue": null,
"limit": 128,
"requestedLimit": 256
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance1/usages/database_utilization",
"name": {
"value": "Database utilization",
"localizedValue": "Database utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "Number Of Databases",
"currentValue": 2,
"limit": 100,
"requestedLimit": null
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP/managedInstances/managedInstance2/usages/database_utilization",
"name": {
"value": "Database utilization",
"localizedValue": "Database utilization"
},
"type": "Microsoft.Sql/instancePools/managedInstances/usages",
"unit": "Number Of Databases",
"currentValue": 3,
"limit": 100,
"requestedLimit": null
}
]
}
}
}
}
Loading

0 comments on commit 5587a88

Please sign in to comment.