|
12 | 12 | "Test"
|
13 | 13 | ],
|
14 | 14 | "summary": "Create a new test or update an existing test.",
|
15 |
| - "operationId": "Test_CreateOrUpdate", |
| 15 | + "operationId": "LoadTestAdministration_CreateOrUpdateTest", |
16 | 16 | "consumes": [
|
17 | 17 | "application/merge-patch+json"
|
18 | 18 | ],
|
|
73 | 73 | "Test"
|
74 | 74 | ],
|
75 | 75 | "summary": "Delete a test by its name.",
|
76 |
| - "operationId": "Test_Delete", |
| 76 | + "operationId": "LoadTestAdministration_DeleteTest", |
77 | 77 | "produces": [
|
78 | 78 | "application/json"
|
79 | 79 | ],
|
|
113 | 113 | "Test"
|
114 | 114 | ],
|
115 | 115 | "summary": "Get load test details by test name",
|
116 |
| - "operationId": "Test_Get", |
| 116 | + "operationId": "LoadTestAdministration_GetTest", |
117 | 117 | "produces": [
|
118 | 118 | "application/json"
|
119 | 119 | ],
|
|
158 | 158 | "Test"
|
159 | 159 | ],
|
160 | 160 | "summary": "Get all load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.",
|
161 |
| - "operationId": "Test_List", |
| 161 | + "operationId": "LoadTestAdministration_ListTests", |
162 | 162 | "produces": [
|
163 | 163 | "application/json"
|
164 | 164 | ],
|
|
243 | 243 | "Test"
|
244 | 244 | ],
|
245 | 245 | "summary": "Upload input file for a given test name. File size can't be more than 50 MB. Existing file with same name for the given test will be overwritten. File should be provided in the request body as application/octet-stream.",
|
246 |
| - "operationId": "Test_UploadFile", |
| 246 | + "operationId": "LoadTestAdministration_UploadTestFile", |
247 | 247 | "consumes": [
|
248 | 248 | "application/octet-stream"
|
249 | 249 | ],
|
|
335 | 335 | "Test"
|
336 | 336 | ],
|
337 | 337 | "summary": "Get test file by the file name.",
|
338 |
| - "operationId": "Test_GetFile", |
| 338 | + "operationId": "LoadTestAdministration_GetTestFile", |
339 | 339 | "produces": [
|
340 | 340 | "application/json"
|
341 | 341 | ],
|
|
385 | 385 | "Test"
|
386 | 386 | ],
|
387 | 387 | "summary": "Delete file by the file name for a test",
|
388 |
| - "operationId": "Test_DeleteFile", |
| 388 | + "operationId": "LoadTestAdministration_DeleteTestFile", |
389 | 389 | "produces": [
|
390 | 390 | "application/json"
|
391 | 391 | ],
|
|
434 | 434 | "Test"
|
435 | 435 | ],
|
436 | 436 | "summary": "Get all test files.",
|
437 |
| - "operationId": "Test_ListFiles", |
| 437 | + "operationId": "LoadTestAdministration_ListTestFiles", |
438 | 438 | "produces": [
|
439 | 439 | "application/json"
|
440 | 440 | ],
|
|
488 | 488 | "Test"
|
489 | 489 | ],
|
490 | 490 | "summary": "Associate an app component (collection of azure resources) to a test",
|
491 |
| - "operationId": "Test_CreateOrUpdateAppComponents", |
| 491 | + "operationId": "LoadTestAdministration_CreateOrUpdateAppComponents", |
492 | 492 | "consumes": [
|
493 | 493 | "application/merge-patch+json"
|
494 | 494 | ],
|
|
549 | 549 | "Test"
|
550 | 550 | ],
|
551 | 551 | "summary": "Get associated app component (collection of azure resources) for the given test.",
|
552 |
| - "operationId": "Test_ListAppComponents", |
| 552 | + "operationId": "LoadTestAdministration_GetAppComponents", |
553 | 553 | "produces": [
|
554 | 554 | "application/json"
|
555 | 555 | ],
|
|
594 | 594 | "Test"
|
595 | 595 | ],
|
596 | 596 | "summary": "Configure server metrics for a test",
|
597 |
| - "operationId": "Test_CreateOrUpdateServerMetricsConfig", |
| 597 | + "operationId": "LoadTestAdministration_CreateOrUpdateServerMetricsConfig", |
598 | 598 | "consumes": [
|
599 | 599 | "application/merge-patch+json"
|
600 | 600 | ],
|
|
655 | 655 | "Test"
|
656 | 656 | ],
|
657 | 657 | "summary": "List server metrics configuration for the given test.",
|
658 |
| - "operationId": "Test_ListServerMetricsConfig", |
| 658 | + "operationId": "LoadTestAdministration_GetServerMetricsConfig", |
659 | 659 | "produces": [
|
660 | 660 | "application/json"
|
661 | 661 | ],
|
|
695 | 695 | }
|
696 | 696 | },
|
697 | 697 | "/test-runs/{testRunId}": {
|
698 |
| - "delete": { |
699 |
| - "tags": [ |
700 |
| - "TestRun" |
701 |
| - ], |
702 |
| - "summary": "Delete a test run by its name.", |
703 |
| - "operationId": "TestRun_Delete", |
704 |
| - "produces": [ |
705 |
| - "application/json" |
706 |
| - ], |
707 |
| - "parameters": [ |
708 |
| - { |
709 |
| - "$ref": "#/parameters/TestRunIdPathParameter" |
710 |
| - }, |
711 |
| - { |
712 |
| - "$ref": "#/parameters/ApiVersion" |
713 |
| - } |
714 |
| - ], |
715 |
| - "responses": { |
716 |
| - "204": { |
717 |
| - "description": "The test run is deleted." |
718 |
| - }, |
719 |
| - "default": { |
720 |
| - "description": "Load Testing service error response.", |
721 |
| - "schema": { |
722 |
| - "$ref": "#/definitions/ErrorResponseBody" |
723 |
| - }, |
724 |
| - "headers": { |
725 |
| - "x-ms-error-code": { |
726 |
| - "description": "The error code for specific error that occurred.", |
727 |
| - "type": "string" |
728 |
| - } |
729 |
| - } |
730 |
| - } |
731 |
| - }, |
732 |
| - "x-ms-examples": { |
733 |
| - "Delete a test run": { |
734 |
| - "$ref": "./examples/DeleteTestRun.json" |
735 |
| - } |
736 |
| - } |
737 |
| - }, |
738 | 698 | "patch": {
|
739 | 699 | "tags": [
|
740 | 700 | "TestRun"
|
741 | 701 | ],
|
742 | 702 | "summary": "Create and start a new test run with the given name.",
|
743 |
| - "operationId": "TestRun_CreateOrUpdate", |
| 703 | + "operationId": "LoadTestRun_CreateOrUpdateTestRun", |
744 | 704 | "consumes": [
|
745 | 705 | "application/merge-patch+json"
|
746 | 706 | ],
|
|
807 | 767 | "TestRun"
|
808 | 768 | ],
|
809 | 769 | "summary": "Get test run details by name.",
|
810 |
| - "operationId": "TestRun_Get", |
| 770 | + "operationId": "LoadTestRun_GetTestRun", |
811 | 771 | "produces": [
|
812 | 772 | "application/json"
|
813 | 773 | ],
|
|
844 | 804 | "$ref": "./examples/GetTestRun.json"
|
845 | 805 | }
|
846 | 806 | }
|
| 807 | + }, |
| 808 | + "delete": { |
| 809 | + "tags": [ |
| 810 | + "TestRun" |
| 811 | + ], |
| 812 | + "summary": "Delete a test run by its name.", |
| 813 | + "operationId": "LoadTestRun_DeleteTestRun", |
| 814 | + "produces": [ |
| 815 | + "application/json" |
| 816 | + ], |
| 817 | + "parameters": [ |
| 818 | + { |
| 819 | + "$ref": "#/parameters/TestRunIdPathParameter" |
| 820 | + }, |
| 821 | + { |
| 822 | + "$ref": "#/parameters/ApiVersion" |
| 823 | + } |
| 824 | + ], |
| 825 | + "responses": { |
| 826 | + "204": { |
| 827 | + "description": "The test run is deleted." |
| 828 | + }, |
| 829 | + "default": { |
| 830 | + "description": "Load Testing service error response.", |
| 831 | + "schema": { |
| 832 | + "$ref": "#/definitions/ErrorResponseBody" |
| 833 | + }, |
| 834 | + "headers": { |
| 835 | + "x-ms-error-code": { |
| 836 | + "description": "The error code for specific error that occurred.", |
| 837 | + "type": "string" |
| 838 | + } |
| 839 | + } |
| 840 | + } |
| 841 | + }, |
| 842 | + "x-ms-examples": { |
| 843 | + "Delete a test run": { |
| 844 | + "$ref": "./examples/DeleteTestRun.json" |
| 845 | + } |
| 846 | + } |
847 | 847 | }
|
848 | 848 | },
|
849 | 849 | "/test-runs/{testRunId}/files/{fileName}": {
|
|
852 | 852 | "TestRun"
|
853 | 853 | ],
|
854 | 854 | "summary": "Get test run file by file name.",
|
855 |
| - "operationId": "TestRun_GetFile", |
| 855 | + "operationId": "LoadTestRun_GetTestRunFile", |
856 | 856 | "produces": [
|
857 | 857 | "application/json"
|
858 | 858 | ],
|
|
904 | 904 | "TestRun"
|
905 | 905 | ],
|
906 | 906 | "summary": "Get all test runs with given filters",
|
907 |
| - "operationId": "TestRun_List", |
| 907 | + "operationId": "LoadTestRun_ListTestRuns", |
908 | 908 | "produces": [
|
909 | 909 | "application/json"
|
910 | 910 | ],
|
|
998 | 998 | "TestRun"
|
999 | 999 | ],
|
1000 | 1000 | "summary": "Stop test run by name.",
|
1001 |
| - "operationId": "TestRun_Stop", |
| 1001 | + "operationId": "LoadTestRun_StopTestRun", |
1002 | 1002 | "produces": [
|
1003 | 1003 | "application/json"
|
1004 | 1004 | ],
|
|
1043 | 1043 | "TestRun"
|
1044 | 1044 | ],
|
1045 | 1045 | "summary": "List the metric namespaces for a load test run.",
|
1046 |
| - "operationId": "TestRun_ListMetricNamespaces", |
| 1046 | + "operationId": "LoadTestRun_ListMetricNamespaces", |
1047 | 1047 | "produces": [
|
1048 | 1048 | "application/json"
|
1049 | 1049 | ],
|
|
1088 | 1088 | "TestRun"
|
1089 | 1089 | ],
|
1090 | 1090 | "summary": "List the metric definitions for a load test run.",
|
1091 |
| - "operationId": "TestRun_ListMetricDefinitions", |
| 1091 | + "operationId": "LoadTestRun_ListMetricDefinitions", |
1092 | 1092 | "produces": [
|
1093 | 1093 | "application/json"
|
1094 | 1094 | ],
|
|
1140 | 1140 | "TestRun"
|
1141 | 1141 | ],
|
1142 | 1142 | "summary": "List the metric values for a load test run.",
|
1143 |
| - "operationId": "TestRun_ListMetrics", |
| 1143 | + "operationId": "LoadTestRun_ListMetrics", |
1144 | 1144 | "consumes": [
|
1145 | 1145 | "application/json"
|
1146 | 1146 | ],
|
|
1254 | 1254 | "Lists the metric values for a load test run.": {
|
1255 | 1255 | "$ref": "./examples/ListTestRunMetrics.json"
|
1256 | 1256 | }
|
| 1257 | + }, |
| 1258 | + "x-ms-pageable": { |
| 1259 | + "nextLinkName": "nextLink" |
1257 | 1260 | }
|
1258 | 1261 | }
|
1259 | 1262 | },
|
|
1263 | 1266 | "TestRun"
|
1264 | 1267 | ],
|
1265 | 1268 | "summary": "List the dimension values for the given metric dimension name.",
|
1266 |
| - "operationId": "TestRun_ListMetricDimensionValues", |
| 1269 | + "operationId": "LoadTestRun_ListMetricDimensionValues", |
1267 | 1270 | "produces": [
|
1268 | 1271 | "application/json"
|
1269 | 1272 | ],
|
|
1367 | 1370 | "Lists the metric dimension values for a load test run.": {
|
1368 | 1371 | "$ref": "./examples/ListMetricDimensionValues.json"
|
1369 | 1372 | }
|
| 1373 | + }, |
| 1374 | + "x-ms-pageable": { |
| 1375 | + "nextLinkName": "nextLink" |
1370 | 1376 | }
|
1371 | 1377 | }
|
1372 | 1378 | },
|
|
1376 | 1382 | "TestRun"
|
1377 | 1383 | ],
|
1378 | 1384 | "summary": "Associate an app component (collection of azure resources) to a test run",
|
1379 |
| - "operationId": "TestRun_CreateOrUpdateAppComponents", |
| 1385 | + "operationId": "LoadTestRun_CreateOrUpdateAppComponents", |
1380 | 1386 | "consumes": [
|
1381 | 1387 | "application/merge-patch+json"
|
1382 | 1388 | ],
|
|
1437 | 1443 | "TestRun"
|
1438 | 1444 | ],
|
1439 | 1445 | "summary": "Get associated app component (collection of azure resources) for the given test run.",
|
1440 |
| - "operationId": "TestRun_ListAppComponents", |
| 1446 | + "operationId": "LoadTestRun_GetAppComponents", |
1441 | 1447 | "produces": [
|
1442 | 1448 | "application/json"
|
1443 | 1449 | ],
|
|
1482 | 1488 | "TestRun"
|
1483 | 1489 | ],
|
1484 | 1490 | "summary": "Configure server metrics for a test run",
|
1485 |
| - "operationId": "TestRun_CreateOrUpdateServerMetricsConfig", |
| 1491 | + "operationId": "LoadTestRun_CreateOrUpdateServerMetricsConfig", |
1486 | 1492 | "consumes": [
|
1487 | 1493 | "application/merge-patch+json"
|
1488 | 1494 | ],
|
|
1543 | 1549 | "TestRun"
|
1544 | 1550 | ],
|
1545 | 1551 | "summary": "List server metrics configuration for the given test run.",
|
1546 |
| - "operationId": "TestRun_ListServerMetricsConfig", |
| 1552 | + "operationId": "LoadTestRun_GetServerMetricsConfig", |
1547 | 1553 | "produces": [
|
1548 | 1554 | "application/json"
|
1549 | 1555 | ],
|
|
2142 | 2148 | "description": "The response to a metrics query.",
|
2143 | 2149 | "type": "object",
|
2144 | 2150 | "properties": {
|
2145 |
| - "timeseries": { |
| 2151 | + "value": { |
2146 | 2152 | "description": "Timeseries data for metric query.",
|
2147 | 2153 | "type": "array",
|
2148 | 2154 | "items": {
|
|
2322 | 2328 | "description": "Action taken after the threshold is met. Default is ‘continue’.",
|
2323 | 2329 | "default": "continue",
|
2324 | 2330 | "enum": [
|
2325 |
| - "stop", |
2326 |
| - "continue" |
| 2331 | + "continue", |
| 2332 | + "stop" |
2327 | 2333 | ],
|
2328 | 2334 | "type": "string",
|
2329 | 2335 | "x-ms-enum": {
|
2330 | 2336 | "name": "PFAction",
|
2331 | 2337 | "modelAsString": true,
|
2332 | 2338 | "values": [
|
2333 |
| - { |
2334 |
| - "value": "stop", |
2335 |
| - "description": "Test run will stop if pass fail criteria metric is not passed." |
2336 |
| - }, |
2337 | 2339 | {
|
2338 | 2340 | "value": "continue",
|
2339 | 2341 | "description": "Test will continue to run even if pass fail metric criteria metric gets failed"
|
| 2342 | + }, |
| 2343 | + { |
| 2344 | + "value": "stop", |
| 2345 | + "description": "Test run will stop if pass fail criteria metric is not passed." |
2340 | 2346 | }
|
2341 | 2347 | ]
|
2342 | 2348 | }
|
|
0 commit comments