Skip to content

Commit af04fbd

Browse files
authored
[Stream Analytics] Fix S360 for auto-scale feature (#20090)
* add new GetStreamingJobSKus api * add 'capacity' in 'sku' and let 'sku' out of 'properties' * change v1 definitions to v3 * fix api version * revert sku for create api * Revert "change v1 definitions to v3" This reverts commit a868720. * add 'x-ms-identifiers' * change operationId
1 parent 30ffead commit af04fbd

9 files changed

+257
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-10-01-preview",
4+
"subscriptionId": "56b5e0a9-b645-407d-99b0-c64f86013e3d",
5+
"resourceGroupName": "sjrg3276",
6+
"jobName": "sj7804"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"resourceType": "Microsoft.StreamAnalytics/streamingjobs",
14+
"sku": {
15+
"name": "Standard"
16+
},
17+
"capacity": {
18+
"minimum": 1,
19+
"maximum": 192,
20+
"default": 3,
21+
"allowedValues": [
22+
1,
23+
3,
24+
6,
25+
12,
26+
18,
27+
24
28+
],
29+
"scaleType": "automatic"
30+
}
31+
}
32+
]
33+
}
34+
}
35+
}
36+
}

specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_Expand.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
"randomKey": "randomValue",
2222
"key3": "value3"
2323
},
24+
"sku": {
25+
"name": "Standard",
26+
"capacity": 36
27+
},
2428
"properties": {
2529
"sku": {
2630
"name": "Standard"

specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_NoExpand.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"randomKey": "randomValue",
2121
"key3": "value3"
2222
},
23+
"sku": {
24+
"name": "Standard",
25+
"capacity": 36
26+
},
2327
"properties": {
2428
"sku": {
2529
"name": "Standard"

specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_Expand.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
"randomKey": "randomValue",
2020
"key3": "value3"
2121
},
22+
"sku": {
23+
"name": "Standard",
24+
"capacity": 36
25+
},
2226
"properties": {
2327
"sku": {
2428
"name": "Standard"
@@ -105,6 +109,10 @@
105109
"randomKey": "randomValue",
106110
"key3": "value3"
107111
},
112+
"sku": {
113+
"name": "Standard",
114+
"capacity": 36
115+
},
108116
"properties": {
109117
"sku": {
110118
"name": "Standard"

specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_NoExpand.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
"randomKey": "randomValue",
1919
"key3": "value3"
2020
},
21+
"sku": {
22+
"name": "Standard",
23+
"capacity": 36
24+
},
2125
"properties": {
2226
"sku": {
2327
"name": "Standard"
@@ -45,6 +49,10 @@
4549
"randomKey": "randomValue",
4650
"key3": "value3"
4751
},
52+
"sku": {
53+
"name": "Standard",
54+
"capacity": 36
55+
},
4856
"properties": {
4957
"sku": {
5058
"name": "Standard"

specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_Expand.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
"randomKey": "randomValue",
1919
"key3": "value3"
2020
},
21+
"sku": {
22+
"name": "Standard",
23+
"capacity": 36
24+
},
2125
"properties": {
2226
"sku": {
2327
"name": "Standard"
@@ -104,6 +108,10 @@
104108
"randomKey": "randomValue",
105109
"key3": "value3"
106110
},
111+
"sku": {
112+
"name": "Standard",
113+
"capacity": 36
114+
},
107115
"properties": {
108116
"sku": {
109117
"name": "Standard"

specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_NoExpand.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
"randomKey": "randomValue",
1818
"key3": "value3"
1919
},
20+
"sku": {
21+
"name": "Standard",
22+
"capacity": 36
23+
},
2024
"properties": {
2125
"sku": {
2226
"name": "Standard"
@@ -44,6 +48,10 @@
4448
"randomKey": "randomValue",
4549
"key3": "value3"
4650
},
51+
"sku": {
52+
"name": "Standard",
53+
"capacity": 36
54+
},
4755
"properties": {
4856
"sku": {
4957
"name": "Standard"

specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Update.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
"randomKey": "randomValue",
2727
"key3": "value3"
2828
},
29+
"sku": {
30+
"name": "Standard",
31+
"capacity": 36
32+
},
2933
"properties": {
3034
"sku": {
3135
"name": "Standard"

specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/streamingjobs.json

Lines changed: 177 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,51 @@
571571
},
572572
"x-ms-long-running-operation": true
573573
}
574+
},
575+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/skus": {
576+
"get": {
577+
"tags": [
578+
"StreamingJobs"
579+
],
580+
"operationId": "Sku_List",
581+
"description": "Gets a list of available SKUs about the specified streaming job.",
582+
"x-ms-examples": {
583+
"Get valid SKUs list for the specified streaming job": {
584+
"$ref": "./examples/StreamingJob_GetSkus.json"
585+
}
586+
},
587+
"parameters": [
588+
{
589+
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
590+
},
591+
{
592+
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
593+
},
594+
{
595+
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
596+
},
597+
{
598+
"$ref": "../../common/v1/definitions.json#/parameters/StreamingJobNameParameter"
599+
}
600+
],
601+
"responses": {
602+
"200": {
603+
"description": "Successfully retrieved the valid SKUs for the specified streaming job.",
604+
"schema": {
605+
"$ref": "#/definitions/GetStreamingJobSkuResults"
606+
}
607+
},
608+
"default": {
609+
"description": "Error.",
610+
"schema": {
611+
"$ref": "../../common/v1/definitions.json#/definitions/Error"
612+
}
613+
}
614+
},
615+
"x-ms-pageable": {
616+
"nextLinkName": "nextLink"
617+
}
618+
}
574619
}
575620
},
576621
"definitions": {
@@ -584,7 +629,8 @@
584629
"readOnly": true,
585630
"items": {
586631
"$ref": "#/definitions/Operation"
587-
}
632+
},
633+
"x-ms-identifiers": []
588634
},
589635
"nextLink": {
590636
"description": "URL to get the next set of operation list results if there are any.",
@@ -644,6 +690,10 @@
644690
}
645691
],
646692
"properties": {
693+
"sku": {
694+
"description": "Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests.",
695+
"$ref": "#/definitions/Sku"
696+
},
647697
"properties": {
648698
"$ref": "#/definitions/StreamingJobProperties",
649699
"description": "The properties that are associated with a streaming job. Required on PUT (CreateOrReplace) requests.",
@@ -818,6 +868,11 @@
818868
"name": "SkuName",
819869
"modelAsString": true
820870
}
871+
},
872+
"capacity": {
873+
"type": "integer",
874+
"format": "int32",
875+
"description": "The capacity of the SKU."
821876
}
822877
}
823878
},
@@ -1012,6 +1067,127 @@
10121067
"name": "UpdatableUdfRefreshType",
10131068
"modelAsString": true
10141069
}
1070+
},
1071+
"GetStreamingJobSkuResults": {
1072+
"type": "object",
1073+
"description": "Result of the request to get streaming job SKUs.",
1074+
"properties": {
1075+
"value": {
1076+
"type": "array",
1077+
"items": {
1078+
"$ref": "#/definitions/GetStreamingJobSkuResult"
1079+
},
1080+
"x-ms-identifiers": [],
1081+
"description": "The list of available SKUs that the streaming job can use."
1082+
},
1083+
"nextLink": {
1084+
"description": "The link (url) to the next page of results.",
1085+
"type": "string",
1086+
"readOnly": true
1087+
}
1088+
}
1089+
},
1090+
"GetStreamingJobSkuResult": {
1091+
"type": "object",
1092+
"description": "Describes an available SKU information.",
1093+
"properties": {
1094+
"resourceType": {
1095+
"readOnly": true,
1096+
"type": "string",
1097+
"description": "The type of resource the SKU applies to.",
1098+
"enum": [
1099+
"Microsoft.StreamAnalytics/streamingjobs"
1100+
],
1101+
"x-ms-enum": {
1102+
"name": "ResourceType",
1103+
"modelAsString": true
1104+
}
1105+
},
1106+
"sku": {
1107+
"type": "object",
1108+
"description": "The properties that are associated with a SKU.",
1109+
"readOnly": true,
1110+
"properties": {
1111+
"name": {
1112+
"type": "string",
1113+
"description": "The name of the SKU.",
1114+
"enum": [
1115+
"Standard"
1116+
],
1117+
"x-ms-enum": {
1118+
"name": "SkuName",
1119+
"modelAsString": true
1120+
}
1121+
}
1122+
}
1123+
},
1124+
"capacity": {
1125+
"$ref": "#/definitions/SkuCapacity"
1126+
}
1127+
}
1128+
},
1129+
"SkuCapacity": {
1130+
"type": "object",
1131+
"description": "Describes scaling information of a SKU.",
1132+
"readOnly": true,
1133+
"properties": {
1134+
"minimum": {
1135+
"type": "integer",
1136+
"format": "int32",
1137+
"readOnly": true,
1138+
"description": "Specifies the minimum streaming units that the streaming job can use."
1139+
},
1140+
"maximum": {
1141+
"type": "integer",
1142+
"format": "int32",
1143+
"readOnly": true,
1144+
"description": "Specifies the maximum streaming units that the streaming job can use."
1145+
},
1146+
"default": {
1147+
"type": "integer",
1148+
"format": "int32",
1149+
"readOnly": true,
1150+
"description": "Specifies the default streaming units that the streaming job can use."
1151+
},
1152+
"scaleType": {
1153+
"type": "string",
1154+
"readOnly": true,
1155+
"description": "The scale type applicable to the SKU.",
1156+
"enum": [
1157+
"automatic",
1158+
"manual",
1159+
"none"
1160+
],
1161+
"x-ms-enum": {
1162+
"name": "SkuCapacityScaleType",
1163+
"modelAsString": true,
1164+
"values": [
1165+
{
1166+
"value": "automatic",
1167+
"description": "Supported scale type automatic."
1168+
},
1169+
{
1170+
"value": "manual",
1171+
"description": "Supported scale type manual."
1172+
},
1173+
{
1174+
"value": "none",
1175+
"description": "Scaling not supported."
1176+
}
1177+
]
1178+
}
1179+
},
1180+
"allowedValues": {
1181+
"type": "array",
1182+
"description": "Specifies the valid streaming units a streaming job can scale to.",
1183+
"readOnly": true,
1184+
"items": {
1185+
"type": "integer",
1186+
"format": "int32",
1187+
"description": "Specifies the number of streaming units that the streaming job can use."
1188+
}
1189+
}
1190+
}
10151191
}
10161192
}
10171193
}

0 commit comments

Comments
 (0)