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

[Stream Analytics] Fix S360 for auto-scale feature #20090

Merged
merged 8 commits into from
Sep 5, 2022
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
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2021-10-01-preview",
"subscriptionId": "56b5e0a9-b645-407d-99b0-c64f86013e3d",
"resourceGroupName": "sjrg3276",
"jobName": "sj7804"
},
"responses": {
"200": {
"body": {
"value": [
{
"resourceType": "Microsoft.StreamAnalytics/streamingjobs",
"sku": {
"name": "Standard"
},
"capacity": {
"minimum": 1,
"maximum": 192,
"default": 3,
"allowedValues": [
1,
3,
6,
12,
18,
24
],
"scaleType": "automatic"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down Expand Up @@ -105,6 +109,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down Expand Up @@ -45,6 +49,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down Expand Up @@ -104,6 +108,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down Expand Up @@ -44,6 +48,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"randomKey": "randomValue",
"key3": "value3"
},
"sku": {
"name": "Standard",
"capacity": 36
},
"properties": {
"sku": {
"name": "Standard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,51 @@
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/skus": {
"get": {
"tags": [
"StreamingJobs"
],
"operationId": "Sku_List",
"description": "Gets a list of available SKUs about the specified streaming job.",
"x-ms-examples": {
"Get valid SKUs list for the specified streaming job": {
"$ref": "./examples/StreamingJob_GetSkus.json"
}
},
"parameters": [
{
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/StreamingJobNameParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved the valid SKUs for the specified streaming job.",
"schema": {
"$ref": "#/definitions/GetStreamingJobSkuResults"
}
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
Expand All @@ -584,7 +629,8 @@
"readOnly": true,
"items": {
"$ref": "#/definitions/Operation"
}
},
"x-ms-identifiers": []
},
"nextLink": {
"description": "URL to get the next set of operation list results if there are any.",
Expand Down Expand Up @@ -644,6 +690,10 @@
}
],
"properties": {
"sku": {
"description": "Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests.",
"$ref": "#/definitions/Sku"
},
"properties": {
"$ref": "#/definitions/StreamingJobProperties",
"description": "The properties that are associated with a streaming job. Required on PUT (CreateOrReplace) requests.",
Expand Down Expand Up @@ -818,6 +868,11 @@
"name": "SkuName",
"modelAsString": true
}
},
"capacity": {
"type": "integer",
"format": "int32",
"description": "The capacity of the SKU."
}
}
},
Expand Down Expand Up @@ -1012,6 +1067,127 @@
"name": "UpdatableUdfRefreshType",
"modelAsString": true
}
},
"GetStreamingJobSkuResults": {
"type": "object",
"description": "Result of the request to get streaming job SKUs.",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/GetStreamingJobSkuResult"
},
"x-ms-identifiers": [],
"description": "The list of available SKUs that the streaming job can use."
},
"nextLink": {
"description": "The link (url) to the next page of results.",
"type": "string",
"readOnly": true
}
}
},
"GetStreamingJobSkuResult": {
"type": "object",
"description": "Describes an available SKU information.",
"properties": {
"resourceType": {
"readOnly": true,
"type": "string",
"description": "The type of resource the SKU applies to.",
"enum": [
"Microsoft.StreamAnalytics/streamingjobs"
],
"x-ms-enum": {
"name": "ResourceType",
"modelAsString": true
}
},
"sku": {
"type": "object",
"description": "The properties that are associated with a SKU.",
"readOnly": true,
"properties": {
"name": {
"type": "string",
"description": "The name of the SKU.",
"enum": [
"Standard"
],
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true
}
}
}
},
"capacity": {
"$ref": "#/definitions/SkuCapacity"
}
}
},
"SkuCapacity": {
"type": "object",
"description": "Describes scaling information of a SKU.",
"readOnly": true,
"properties": {
"minimum": {
"type": "integer",
"format": "int32",
"readOnly": true,
"description": "Specifies the minimum streaming units that the streaming job can use."
},
"maximum": {
"type": "integer",
"format": "int32",
"readOnly": true,
"description": "Specifies the maximum streaming units that the streaming job can use."
},
"default": {
"type": "integer",
"format": "int32",
"readOnly": true,
"description": "Specifies the default streaming units that the streaming job can use."
},
"scaleType": {
"type": "string",
"readOnly": true,
"description": "The scale type applicable to the SKU.",
"enum": [
"automatic",
"manual",
"none"
],
"x-ms-enum": {
"name": "SkuCapacityScaleType",
"modelAsString": true,
"values": [
{
"value": "automatic",
"description": "Supported scale type automatic."
},
{
"value": "manual",
"description": "Supported scale type manual."
},
{
"value": "none",
"description": "Scaling not supported."
}
]
}
},
"allowedValues": {
"type": "array",
"description": "Specifies the valid streaming units a streaming job can scale to.",
"readOnly": true,
"items": {
"type": "integer",
"format": "int32",
"description": "Specifies the number of streaming units that the streaming job can use."
}
}
}
}
}
}