Skip to content

Commit

Permalink
Adding cluster sku property bag and moving capacity to sku. Also addi…
Browse files Browse the repository at this point in the history
…ng metricId property to the custom properties bag.
  • Loading branch information
biberli committed Mar 13, 2018
1 parent 0ea7773 commit 54258d5
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@
"definitions": {
"EHCluster": {
"properties": {
"sku": {
"$ref": "#/definitions/ClusterSku",
"description": "Properties of the cluster SKU."
},
"properties": {
"x-ms-client-flatten": true,
"properties": {
Expand All @@ -297,11 +301,10 @@
"type": "string",
"description": "The UTC time when the Event Hubs Cluster was last updated."
},
"capacity": {
"metricId": {
"readOnly": true,
"type": "integer",
"format": "int32",
"description": "The number of Capacity Units contained in this cluster."
"type": "string",
"description": "The metric ID of the cluster resource. Provided by the service and not modifiable by the user."
}
},
"description": "Event Hubs Cluster properties supplied in responses in List or Get operations."
Expand Down Expand Up @@ -520,6 +523,33 @@
"name"
],
"description": "SKU parameters supplied to the create namespace operation"
},
"ClusterSku": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of this SKU.",
"enum": [
"Dedicated"
],
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true
}
},
"capacity": {
"format": "int32",
"maximum": 32,
"minimum": 1,
"type": "integer",
"description": "The quantity of Event Hubs Cluster Capacity Units contained in this cluster."
}
},
"required": [
"name"
],
"description": "SKU parameters particular to a cluster instance."
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
"tag1": "value1",
"tag2": "value2"
},
"sku": {
"name": "Dedicated",
"capacity": 4
},
"properties": {
"created": "2017-05-24T23:23:27.877Z",
"updated": "2017-05-24T23:23:27.877Z",
"capacity": 2
"metricId": "SN6-008"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@
"tag3": "value3",
"tag4": "value4"
},
"sku": {
"name": "Dedicated",
"capacity": 4
},
"properties": {
"created": "2017-06-01T21:37:04.46Z",
"updated": "2017-06-01T21:37:53.413Z",
"capacity": 2
"metricId": "SN6-008"
}
}
},
Expand All @@ -39,11 +43,15 @@
"tags": {
"tag3": "value3",
"tag4": "value4"
},
},
"sku": {
"name": "Dedicated",
"capacity": 4
},
"properties": {
"created": "2017-06-01T21:37:04.46Z",
"updated": "2017-06-01T21:37:53.413Z",
"capacity": 2
"metricId": "SN6-008"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
"type": "Microsoft.EventHub/Clusters",
"location": "South Central US",
"tags": {},
"sku": {
"name": "Dedicated",
"capacity": 4
},
"properties": {
"created": "2016-09-13T23:17:25.24Z",
"updated": "2016-09-13T23:17:28.223Z",
"capacity": 2
"metricId": "SN6-008"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
"type": "Microsoft.EventHub/Clusters",
"location": "South Central US",
"tags": {},
"sku": {
"name": "Dedicated",
"capacity": 4
},
"properties": {
"created": "2016-09-13T23:17:25.24Z",
"updated": "2016-09-13T23:17:28.223Z",
"capacity": 2
"metricId": "SN6-008"
}
}
]
Expand Down

0 comments on commit 54258d5

Please sign in to comment.