1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'PTS', 'version' => '2020-10-20'],
'directories' => [
[
'children' => [
[
'children' => ['CreatePtsSceneBaseLineFromReport', 'DeletePtsSceneBaseLine', 'UpdatePtsSceneBaseLine', 'GetPtsSceneBaseLine'],
'type' => 'directory',
'title' => '压测基线',
'id' => 95479,
],
[
'children' => ['ListPtsReports', 'GetPtsReportDetails', 'GetPtsReportsBySceneId', 'GetPtsDebugSampleLogs'],
'type' => 'directory',
'title' => '压测报告',
'id' => 95484,
],
[
'children' => ['StartDebugPtsScene', 'StartPtsScene', 'StopDebugPtsScene', 'StopPtsScene', 'GetPtsSceneRunningData', 'GetPtsSceneRunningStatus', 'AdjustPtsSceneSpeed'],
'type' => 'directory',
'title' => '压测执行',
'id' => 95489,
],
[
'children' => ['CreatePtsScene', 'SavePtsScene', 'DeletePtsScene', 'DeletePtsScenes', 'ModifyPtsScene', 'GetPtsScene', 'ListPtsScene'],
'type' => 'directory',
'title' => '压测场景',
'id' => 95497,
],
],
'type' => 'directory',
'title' => 'PTS压测',
'id' => 95478,
],
[
'children' => [
[
'children' => ['GetJMeterReportDetails', 'GetJMeterLogs', 'GetJMeterSampleMetrics', 'GetJMeterSamplingLogs', 'ListJMeterReports'],
'type' => 'directory',
'title' => '压测报告',
'id' => 95456,
],
[
'children' => ['StartDebuggingJMeterScene', 'StartTestingJMeterScene', 'StopDebuggingJMeterScene', 'StopTestingJMeterScene', 'GetJMeterSceneRunningData', 'AdjustJMeterSceneSpeed'],
'type' => 'directory',
'title' => '压测执行',
'id' => 95462,
],
[
'children' => ['RemoveOpenJMeterScene', 'SaveOpenJMeterScene', 'GetOpenJMeterScene', 'ListOpenJMeterScenes'],
'type' => 'directory',
'title' => '压测场景',
'id' => 95469,
],
[
'children' => ['RemoveEnv', 'SaveEnv', 'ListEnvs'],
'type' => 'directory',
'title' => '压测环境',
'id' => 95474,
],
],
'type' => 'directory',
'title' => 'JMeter压测',
'id' => 95455,
],
[
'children' => ['GetAllRegions', 'GetUserVpcs', 'GetUserVpcSecurityGroup', 'GetUserVpcVSwitch'],
'type' => 'directory',
'title' => '其他',
'id' => 95505,
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'AdjustJMeterSceneSpeed' => [
'summary' => '调整jmeter压力大小。',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ReportId',
'in' => 'query',
'schema' => ['title' => '报告id', 'description' => '报告ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DYYPZIH'],
],
[
'name' => 'Speed',
'in' => 'query',
'schema' => ['title' => '要调整到的压力值', 'description' => '您需要调整到的压力值。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'minimum' => '1', 'example' => '100'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示消息,若成功则为空。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'DC4E31DDA77-6745-4925-B423-4E89VV34221A'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'Code' => ['description' => '系统状态码,若成功则为空。', 'type' => 'string'],
'Success' => ['description' => '是否成功'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
'ReportId' => ['title' => '报告ID', 'description' => '报告ID', 'type' => 'string', 'example' => 'DYYPZIH'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'SceneNotExist', 'errorMessage' => 'The scene does not exist.', 'description' => '场景不存在'],
],
],
'title' => '压测中调整JMeter线程数',
'changeSet' => [
['createdAt' => '2022-04-12T08:57:18.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AdjustJMeterSceneSpeed'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:AdjustJMeterSceneSpeed',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"DC4E31DDA77-6745-4925-B423-4E89VV34221A\\",\\n \\"HttpStatusCode\\": 0,\\n \\"Code\\": \\"\\",\\n \\"Success\\": true,\\n \\"ReportId\\": \\"DYYPZIH\\"\\n}","type":"json"}]',
],
'AdjustPtsSceneSpeed' => [
'summary' => '调整PTS场景压力值。',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['title' => '报告id', 'description' => '场景id', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DYXXX12H'],
],
[
'name' => 'ApiSpeedList',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '调速配置',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ApiId' => ['description' => 'API ID。可以根据此ID在Relation中找到对应的API信息。', 'type' => 'string', 'required' => false, 'example' => 'DYXXX12H'],
'Speed' => ['description' => '您需要调整到的压力值。并发模式即并发值,RPS模式即RPS值。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '30'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不返回任何数据。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F7D2CE0-XXXX-4143-955A-8E4595AF86A6'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功。'."\n"
.'- false:失败。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'SceneNotExist', 'errorMessage' => 'The scene does not exist.', 'description' => '场景不存在'],
],
],
'title' => 'PTS场景调速',
'description' => '并发模式,每个串联链路只传第一个API的并发值即可,以此作为串联链路并发值。'."\n"
."\n"
.'RPS模式,支持调整每个API的RPS值。同串联链路中,需要保证RPS按API排列顺序递减。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AdjustPtsSceneSpeed'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:AdjustPtsSceneSpeed',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"4F7D2CE0-XXXX-4143-955A-8E4595AF86A6\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'CreatePtsScene' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '22649',
'abilityTreeNodes' => ['FEATUREptsFQKRPS'],
],
'parameters' => [
[
'name' => 'Scene',
'in' => 'query',
'schema' => ['description' => '场景信息。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{"loadConfig":{"agentCount":1,"apiLoadConfigList":[{"rpsBegin":10,"rpsLimit":100}],"configuration":{"allRpsBegin":10,"allRpsLimit":100},"maxRunningTime":1,"testMode":"tps_mode"},"relationList":[{"apiList":[{"apiName":"API 1 of chain 1","body":{"bodyValue":"{\\"key1\\":\\"111\\",\\"key2\\":\\"222\\"}","contentType":"application/x-www-form-urlencoded"},"checkPointList":[{"checkPoint":"userId","checkType":"EXPORTED_PARAM","expectValue":"111","operator":"ctn"}],"exportList":[{"exportName":"userId","exportType":"STATUS_CODE"}],"headerList":[{"headerName":"userName","headerValue":"John"}],"method":"GET","url":"https://www.aliyundoc.com"}],"relationName":"Chain 1"}],"sceneName":"xing-test-OpenAPI-1"}'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'SceneId' => ['description' => '创建成功的场景ID。', 'type' => 'string', 'example' => 'SDR3CX'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F7D2CE0-AE4C-4143-955A-8E4595AF86A6'],
'Message' => ['description' => '错误提示信息,如果成功则不返回任何数据。', 'type' => 'string', 'example' => '创建或者修改场景入参必须是实体类Scene的JSON串'],
'HttpStatusCode' => ['description' => 'HTTP状态码,成功则不返回任何数据。', 'type' => 'integer', 'format' => 'int32', 'example' => '400'],
'Code' => ['description' => '系统状态码,成功则不返回任何数据。', 'type' => 'string', 'example' => '4001'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败'."\n", 'type' => 'boolean', 'example' => 'false'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'CreateSceneFail', 'errorMessage' => 'Create scene cannot be empty', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"SceneId\\": \\"SDR3CX\\",\\n \\"RequestId\\": \\"4F7D2CE0-AE4C-4143-955A-8E4595AF86A6\\",\\n \\"Message\\": \\"创建或者修改场景入参必须是实体类Scene的JSON串\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Code\\": \\"4001\\",\\n \\"Success\\": false\\n}","errorExample":""},{"type":"xml","example":"<CreatePtsSceneResponse>\\n <SceneId>SDR3CX</SceneId>\\n <RequestId>4F7D2CE0-AE4C-4143-955A-8E4595AF86A6</RequestId>\\n <Message>创建或者修改场景入参必须是实体类Scene的JSON串</Message>\\n <HttpStatusCode>400</HttpStatusCode>\\n <Code>4001</Code>\\n <Success>false</Success>\\n</CreatePtsSceneResponse>","errorExample":""}]',
'title' => '创建场景',
'summary' => '创建压测场景。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreatePtsScene'],
],
],
'ramActions' => [],
],
'CreatePtsSceneBaseLineFromReport' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID。更多信息,请参见[参数说明](~~201321~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'VCB78HB'],
],
[
'name' => 'ReportId',
'in' => 'query',
'schema' => ['description' => '报告ID。更多信息,请参见[参数说明](~~201321~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'HNB78HB'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,如成功则为空。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F7D2CE0-AE4C-4143-954A-8E4595AF86A6'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'CreatePtsSceneBaseLineFromReportFail', 'errorMessage' => 'The scene or the report cannot be empty.', 'description' => ''],
],
],
'title' => '创建场景基线',
'summary' => '将一个报告数据设置为场景基线。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreatePtsSceneBaseLineFromReport'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:CreatePtsSceneBaseLineFromReport',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"4F7D2CE0-AE4C-4143-954A-8E4595AF86A6\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreatePtsSceneBaseLineFromReportResponse>\\n <Message/>\\n <RequestId>4F7D2CE0-AE4C-4143-954A-8E4595AF86A6</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</CreatePtsSceneBaseLineFromReportResponse>","errorExample":""}]',
],
'DeletePtsScene' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID,创建场景后系统生成的唯一表示。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'XANH3H'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A3ED870E-C3BF-44F4-B460-A30785E0256B'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功。'."\n"
.'- false:失败。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'DeletePtsSceneFail', 'errorMessage' => 'Delete Scene failed, please check the scene ID is correct', 'description' => ''],
],
],
'title' => '删除场景',
'summary' => '删除场景,一次删除一个。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePtsScene'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:DeletePtsScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"A3ED870E-C3BF-44F4-B460-A30785E0256B\\",\\n \\"HttpStatusCode\\": 0,\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeletePtsSceneResponse>\\n <Message>创建或修改场景入参必须是实体类Scene的JSON串</Message>\\n <RequestId>A3ED870E-C3BF-44F4-B460-A30785E0256B</RequestId>\\n <HttpStatusCode>400</HttpStatusCode>\\n <Code>4001</Code>\\n <Success>false</Success>\\n</DeletePtsSceneResponse>","errorExample":""}]',
],
'DeletePtsSceneBaseLine' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID。更多信息,请参见[参数说明](~~201321~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'NHGV4CDG'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => ' '."\n"
.'错误提示信息,如成功则为空。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F7D2XE0-AE4C-4143-955A-8E4595AF86A6'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'DeletePtsSceneBaseLineFail', 'errorMessage' => 'The scene cannot be empty.', 'description' => ''],
],
],
'title' => '删除场景基线',
'summary' => '删除场景设置的基线信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePtsSceneBaseLine'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:DeletePtsSceneBaseLine',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"4F7D2XE0-AE4C-4143-955A-8E4595AF86A6\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeletePtsSceneBaseLineResponse>\\n <Message/>\\n <RequestId>4F7D2XE0-AE4C-4143-955A-8E4595AF86A6</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DeletePtsSceneBaseLineResponse>","errorExample":""}]',
],
'DeletePtsScenes' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneIds',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '待删除场景ID的列表。',
'type' => 'array',
'items' => ['description' => '场景ID集合。', 'type' => 'string', 'required' => false, 'example' => '["5DG9WQJ","9HG9TYJ"]'],
'required' => true,
'docRequired' => true,
'example' => '["XVB4DF","AFG3CV"]',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不显示此参数。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '35290A5B-AB50-46BD-81E0-E316F86128C4'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'DeletePtsScenesFail', 'errorMessage' => 'Scene is running', 'description' => ''],
],
],
'title' => '批量删除场景',
'summary' => '一次批量删除多个场景。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePtsScenes'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:DeletePtsScenes',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"35290A5B-AB50-46BD-81E0-E316F86128C4\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeletePtsScenesResponse>\\n <Message>空</Message>\\n <RequestId>35290A5B-AB50-46BD-81E0-E316F86128C4</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DeletePtsScenesResponse>","errorExample":""}]',
],
'GetAllRegions' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示消息,若成功则不返回任何数据。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '73D16B8D-0FCD-5596-B7BE-A47042989318'],
'AllRegions' => [
'description' => '地域信息列表',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'description' => '地域信息', 'example' => '{'."\n"
.' "cn-shenzhen": "华南1(深圳)",'."\n"
.' "cn-qingdao": "华北1(青岛)",'."\n"
.' "cn-beijing": "华北2(北京)",'."\n"
.' "cn-shanghai": "华东2(上海)",'."\n"
.' "cn-hongkong": "中国香港",'."\n"
.' "ap-southeast-1": "新加坡",'."\n"
.' "cn-huhehaote": "华北5(呼和浩特)",'."\n"
.' "cn-zhangjiakou": "华北3(张家口)",'."\n"
.' "cn-hangzhou": "华东1(杭州)",'."\n"
.' "cn-chengdu": "西南1(成都)"'."\n"
.' }'],
],
'HttpStatusCode' => ['description' => 'HTTP状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码,成功则不返回任何数据。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'True'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Code', 'errorMessage' => 'The specified parameter is invalid.', 'description' => ''],
],
],
'title' => '获取VPC可用Region列表',
'summary' => '获取所有的region。',
'changeSet' => [
['createdAt' => '2022-04-12T08:57:18.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAllRegions'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'pts:GetAllRegions',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"73D16B8D-0FCD-5596-B7BE-A47042989318\\",\\n \\"AllRegions\\": {\\n \\"key\\": \\"{\\\\n \\\\\\"cn-shenzhen\\\\\\": \\\\\\"华南1(深圳)\\\\\\",\\\\n \\\\\\"cn-qingdao\\\\\\": \\\\\\"华北1(青岛)\\\\\\",\\\\n \\\\\\"cn-beijing\\\\\\": \\\\\\"华北2(北京)\\\\\\",\\\\n \\\\\\"cn-shanghai\\\\\\": \\\\\\"华东2(上海)\\\\\\",\\\\n \\\\\\"cn-hongkong\\\\\\": \\\\\\"中国香港\\\\\\",\\\\n \\\\\\"ap-southeast-1\\\\\\": \\\\\\"新加坡\\\\\\",\\\\n \\\\\\"cn-huhehaote\\\\\\": \\\\\\"华北5(呼和浩特)\\\\\\",\\\\n \\\\\\"cn-zhangjiakou\\\\\\": \\\\\\"华北3(张家口)\\\\\\",\\\\n \\\\\\"cn-hangzhou\\\\\\": \\\\\\"华东1(杭州)\\\\\\",\\\\n \\\\\\"cn-chengdu\\\\\\": \\\\\\"西南1(成都)\\\\\\"\\\\n }\\"\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'GetJMeterLogs' => [
'summary' => '获得JMeter运行日志。默认查询第0台机器的日志,并返回机器总数。',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['description' => '请求第N页的日志信息。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '10000000', 'exclusiveMaximum' => false, 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['description' => '请求N条记录。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '200', 'minimum' => '1', 'example' => '10'],
],
[
'name' => 'ReportId',
'in' => 'query',
'schema' => ['title' => '报告ID', 'description' => '报告ID。', 'type' => 'string', 'required' => true, 'example' => 'KS2YE3J2'],
],
[
'name' => 'BeginTime',
'in' => 'query',
'schema' => ['title' => '开始时间', 'description' => '开始时间,单位秒。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1637115306000'],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['title' => '结束时间', 'description' => '结束时间,单位秒。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1637115309000'],
],
[
'name' => 'AgentIndex',
'in' => 'query',
'schema' => ['title' => '第几台引擎,起始为0', 'description' => '非法Index直接返回第0台引擎的日志。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'Level',
'in' => 'query',
'schema' => ['title' => '日志等级', 'description' => '日志等级。包括:'."\n"
."\n"
.'- ERROR:错误'."\n"
.'- WARN:警告'."\n"
.'- INFO:信息,默认值'."\n"
.'- DEBUG:调试'."\n"
.'- TRACE:跟踪', 'type' => 'string', 'required' => false, 'example' => 'INFO'],
],
[
'name' => 'Thread',
'in' => 'query',
'schema' => ['title' => '线程名', 'description' => '线程名。', 'type' => 'string', 'required' => false, 'example' => 'main'],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['title' => '关键字', 'description' => '关键字。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '日志记录总数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'Message' => ['description' => '错误提示信息,若成功则为空。', 'type' => 'string'],
'PageSize' => ['description' => '返回日志记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageNumber' => ['description' => '返回第N页的日志信息。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Logs' => [
'title' => '日志内容',
'description' => '日志内容',
'type' => 'array',
'items' => ['description' => '返回日志记录。', 'type' => 'object', 'example' => ' {'."\n"
.' "timeTS": 1720492300643,'."\n"
.' "level": "INFO",'."\n"
.' "logger": "org.apache.jmeter.JMeter",'."\n"
.' "thread": "main",'."\n"
.' "logText": "os.version=4.18.0-348.2.1.el8_5.x86_64\\n",'."\n"
.' "instanceId": 0,'."\n"
.' "time": "2024-07-09T10:31Z"'."\n"
.' }'],
'example' => '{ "timeTS":1637114804326, "instanceId":0, "level":"INFO", "logger":"org.apache.jmeter.util.JMeterUtils", "sceneId":251546, "planId":1501546, "thread":"main", "time":"2021-11-17T10:06Z", "taskId":15015460000, "logText":"Setting Locale to en_EN\\n" }',
],
'Code' => ['description' => '系统状态码,若成功则为空。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
'AgentCount' => ['title' => '引擎数量,想要获得第几台引擎的日志可以根据引擎数量传值', 'description' => '引擎数量。若想获得第N台引擎的日志,可以根据引擎数量进行传值。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'ReportNotExist', 'errorMessage' => 'The report does not exist.', 'description' => '报告不存在'],
],
],
'title' => '获得JMeter运行日志',
'changeSet' => [
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetJMeterLogs'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:GetJMeterLogs',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 100,\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"Message\\": \\"\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Logs\\": [\\n {\\n \\"timeTS\\": 1720492300643,\\n \\"level\\": \\"INFO\\",\\n \\"logger\\": \\"org.apache.jmeter.JMeter\\",\\n \\"thread\\": \\"main\\",\\n \\"logText\\": \\"os.version=4.18.0-348.2.1.el8_5.x86_64\\\\n\\",\\n \\"instanceId\\": 0,\\n \\"time\\": \\"2024-07-09T10:31Z\\"\\n }\\n ],\\n \\"Code\\": \\"\\",\\n \\"Success\\": true,\\n \\"AgentCount\\": 3\\n}","errorExample":""},{"type":"xml","example":"<GetJMeterLogsResponse>\\n <TotalCount>100</TotalCount>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Message>空</Message>\\n <PageSize>10</PageSize>\\n <PageNumber>1</PageNumber>\\n <Logs/>\\n <Code>200</Code>\\n <Success>true</Success>\\n <AgentCount>3</AgentCount>\\n</GetJMeterLogsResponse>","errorExample":""}]',
],
'GetJMeterReportDetails' => [
'summary' => '查询JMeter报告详情。',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ReportId',
'in' => 'query',
'schema' => ['description' => '报告ID', 'type' => 'string', 'required' => true, 'example' => 'KS2YE3J2'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'GetJMeterReportDetailsResponse',
'description' => 'GetJMeterReportDetailsResponse',
'type' => 'object',
'properties' => [
'ReportOverView' => [
'title' => '报告概览信息',
'description' => '报告概览信息',
'type' => 'object',
'properties' => [
'ReportId' => ['title' => '报告ID', 'description' => '报告ID', 'type' => 'string', 'example' => 'GHB56VD'],
'ReportName' => ['title' => '报告名', 'description' => '报告名', 'type' => 'string', 'example' => 'Order scenario-20220202222222'],
'StartTime' => ['title' => '启动时间', 'description' => '启动时间', 'type' => 'string', 'example' => '2023-05-03 10:35:11'],
'EndTime' => ['title' => '停止时间', 'description' => '停止时间', 'type' => 'string', 'example' => '2023-05-03 10:45:11'],
'AgentCount' => ['title' => '实际使用的引擎数', 'description' => '实际使用的引擎数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Vum' => ['title' => '消耗的VUM', 'description' => '消耗的VUM', 'type' => 'integer', 'format' => 'int64', 'example' => '4452'],
],
],
'SceneMetrics' => [
'title' => '全场景维度的信息',
'description' => '全场景维度的信息',
'type' => 'object',
'properties' => [
'AvgTps' => ['title' => '平均TPS', 'description' => '平均TPS', 'type' => 'number', 'format' => 'double', 'example' => '78'],
'AvgRt' => ['title' => '平均RT', 'description' => '平均RT,单位毫秒', 'type' => 'number', 'format' => 'double', 'example' => '23'],
'Seg90Rt' => ['title' => '90分为RT', 'description' => '90分位RT,单位毫秒', 'type' => 'number', 'format' => 'double', 'example' => '35'],
'Seg99Rt' => ['title' => '99分为RT', 'description' => '99分位RT,单位毫秒', 'type' => 'number', 'format' => 'double', 'example' => '56'],
'SuccessRateReq' => ['title' => '请求成功率', 'description' => '请求成功率,为小于等于100的非负数', 'type' => 'number', 'format' => 'double', 'example' => '99.98'],
'FailCountReq' => ['title' => '请求失败数', 'description' => '请求失败数', 'type' => 'integer', 'format' => 'int64', 'example' => '34'],
'AllCount' => ['title' => '请求总数', 'description' => '请求总数', 'type' => 'integer', 'format' => 'int64', 'example' => '717'],
],
],
'SamplerMetricsList' => [
'title' => 'API维度的信息',
'description' => '接口维度的信息',
'type' => 'array',
'items' => [
'description' => '接口维度的信息,一个接口一条数据',
'type' => 'object',
'properties' => [
'ApiName' => ['title' => 'api名', 'description' => '接口名', 'type' => 'string', 'example' => 'Logon'],
'AvgTps' => ['title' => '平均TPS', 'description' => '平均TPS', 'type' => 'number', 'format' => 'double', 'example' => '12'],
'AvgRt' => ['title' => '平均RT', 'description' => '平均RT,单位毫秒', 'type' => 'number', 'format' => 'double', 'example' => '44.2'],
'Seg75Rt' => ['title' => '75分为RT', 'description' => '75分位RT,单位毫秒', 'type' => 'number', 'format' => 'double', 'example' => '22.4'],
'Seg90Rt' => ['title' => '90分为RT', 'description' => '90分位RT,单位毫秒', 'type' => 'number', 'format' => 'double', 'example' => '65'],
'Seg99Rt' => ['title' => '99分为RT', 'description' => '99分位RT,单位毫秒', 'type' => 'number', 'format' => 'double', 'example' => '77'],
'MaxRt' => ['title' => '最大RT', 'description' => '最大RT,单位毫秒', 'type' => 'number', 'format' => 'double', 'example' => '78'],
'MinRt' => ['title' => '最小RT', 'description' => '最小RT,单位毫秒', 'type' => 'number', 'format' => 'double', 'example' => '11'],
'SuccessRateReq' => ['title' => '请求成功率', 'description' => '请求成功率,为小于等于100的非负数', 'type' => 'number', 'format' => 'double', 'example' => '100'],
'FailCountReq' => ['title' => '请求失败数', 'description' => '请求失败数', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'AllCount' => ['title' => '请求总数', 'description' => '请求总数', 'type' => 'integer', 'format' => 'int64', 'example' => '731'],
],
],
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string', 'example' => 'Query report failed'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
'HttpStatusCode' => ['description' => 'HTTP 状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'DocumentUrl' => ['description' => '文档链接。', 'type' => 'string', 'example' => '空'],
'CodeKey' => ['title' => '对应于美杜莎的key。若无此codeKey,或者codeKey对应的内容获取失败/空,则获取返回的message内容作为默认信息展示', 'description' => '对应于美杜莎的key。若无此codeKey,或者codeKey对应的内容获取失败/空,则获取返回的message内容作为默认信息展示', 'type' => 'string', 'example' => '空'],
'DynamicCtx' => ['title' => '返回的信息,动态内容,用于替换动态内容,通过&&进行分隔,顺序替换', 'description' => '返回的信息,动态内容,用于替换动态内容,通过&&进行分隔,顺序替换', 'type' => 'string', 'example' => '空'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ReportOverView\\": {\\n \\"ReportId\\": \\"GHB56VD\\",\\n \\"ReportName\\": \\"Order scenario-20220202222222\\",\\n \\"StartTime\\": \\"2023-05-03 10:35:11\\",\\n \\"EndTime\\": \\"2023-05-03 10:45:11\\",\\n \\"AgentCount\\": 1,\\n \\"Vum\\": 4452\\n },\\n \\"SceneMetrics\\": {\\n \\"AvgTps\\": 78,\\n \\"AvgRt\\": 23,\\n \\"Seg90Rt\\": 35,\\n \\"Seg99Rt\\": 56,\\n \\"SuccessRateReq\\": 99.98,\\n \\"FailCountReq\\": 34,\\n \\"AllCount\\": 717\\n },\\n \\"SamplerMetricsList\\": [\\n {\\n \\"ApiName\\": \\"Logon\\",\\n \\"AvgTps\\": 12,\\n \\"AvgRt\\": 44.2,\\n \\"Seg75Rt\\": 22.4,\\n \\"Seg90Rt\\": 65,\\n \\"Seg99Rt\\": 77,\\n \\"MaxRt\\": 78,\\n \\"MinRt\\": 11,\\n \\"SuccessRateReq\\": 100,\\n \\"FailCountReq\\": 10,\\n \\"AllCount\\": 731\\n }\\n ],\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"Code\\": \\"\\",\\n \\"Message\\": \\"Query report failed\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"DocumentUrl\\": \\"空\\",\\n \\"CodeKey\\": \\"空\\",\\n \\"DynamicCtx\\": \\"空\\"\\n}","type":"json"}]',
'title' => '获取JMeter报告详情',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
],
'GetJMeterSampleMetrics' => [
'summary' => '根据条件获得JMeter采样器聚合数据。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ReportId',
'in' => 'query',
'schema' => ['title' => '报告ID', 'description' => '报告ID。', 'type' => 'string', 'required' => true, 'example' => '7R4RE352'],
],
[
'name' => 'BeginTime',
'in' => 'query',
'schema' => ['title' => '开始时间', 'description' => '开始时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1637157070000'],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['title' => '结束时间', 'description' => '结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1637157073000'],
],
[
'name' => 'SamplerId',
'in' => 'query',
'schema' => ['title' => '采样器索引,从0开始。-1返回全场景', 'description' => '采样器索引。从0开始,-1返回全场景。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'Message' => ['description' => '错误提示信息,若成功则为空。', 'type' => 'string', 'example' => '空'],
'SampleMetricList' => [
'title' => '采样器聚合数据列表',
'description' => '采样器聚合数据列表。',
'type' => 'array',
'items' => ['description' => '采样器聚合数据列表。', 'type' => 'string', 'example' => '[ { "statusCodes":[ { "count":26, "name":"200" } ], "reqFailureRtMin":0, "requestBps":2389, "requestBytes":3536, "reqSuccessCount":26, "reqSuccessRtMin":12, "reqSuccessRtAvg":21, "reqSuccessTps":17.56756756756757, "rtMin":12, "rtAvg":21, "totalCount":26, "concurrency":103.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":64922, "reqFailureTps":0.0, "tps":17.56756756756757, "responseBps":43866, "reqSuccessRtMax":30, "totalVum":13, "rtMax":30, "taskId":1475183, "timestamp":1649681740000 }, { "statusCodes":[ { "count":13, "name":"200" } ], "reqFailureRtMin":0, "requestBps":1782, "requestBytes":5304, "reqSuccessCount":13, "reqSuccessRtMin":11, "reqSuccessRtAvg":23, "reqSuccessTps":13.10483870967742, "rtMin":11, "rtAvg":24, "totalCount":13, "concurrency":411.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":97383, "reqFailureTps":0.0, "tps":13.10483870967742, "responseBps":32723, "reqSuccessRtMax":37, "totalVum":21, "rtMax":37, "taskId":1475183, "timestamp":1649681741000 }, { "statusCodes":[ { "count":7, "name":"200" } ], "reqFailureRtMin":0, "requestBps":952, "requestBytes":6256, "reqSuccessCount":7, "reqSuccessRtMin":19, "reqSuccessRtAvg":20, "reqSuccessTps":7.0, "rtMin":19, "rtAvg":20, "totalCount":7, "concurrency":500.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":114862, "reqFailureTps":0.0, "tps":7.0, "responseBps":17479, "reqSuccessRtMax":21, "totalVum":29, "rtMax":21, "taskId":1475183, "timestamp":1649681742000 }, { "statusCodes":[ { "count":12, "name":"200" } ], "reqFailureRtMin":0, "requestBps":1632, "requestBytes":7888, "reqSuccessCount":12, "reqSuccessRtMin":15, "reqSuccessRtAvg":24, "reqSuccessTps":12.0, "rtMin":15, "rtAvg":25, "totalCount":12, "concurrency":500.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":144826, "reqFailureTps":0.0, "tps":12.0, "responseBps":29964, "reqSuccessRtMax":45, "totalVum":38, "rtMax":45, "taskId":1475183, "timestamp":1649681743000 }, { "statusCodes":[ { "count":10, "name":"200" } ], "reqFailureRtMin":0, "requestBps":1360, "requestBytes":9248, "reqSuccessCount":10, "reqSuccessRtMin":14, "reqSuccessRtAvg":21, "reqSuccessTps":10.0, "rtMin":14, "rtAvg":22, "totalCount":10, "concurrency":500.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":169796, "reqFailureTps":0.0, "tps":10.0, "responseBps":24970, "reqSuccessRtMax":29, "totalVum":46, "rtMax":29, "taskId":1475183, "timestamp":1649681744000 }, { "statusCodes":[ { "count":9, "name":"200" } ], "reqFailureRtMin":0, "requestBps":1224, "requestBytes":10472, "reqSuccessCount":9, "reqSuccessRtMin":11, "reqSuccessRtAvg":23, "reqSuccessTps":9.0, "rtMin":11, "rtAvg":23, "totalCount":9, "concurrency":500.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":192269, "reqFailureTps":0.0, "tps":9.0, "responseBps":22473, "reqSuccessRtMax":45, "totalVum":54, "rtMax":45, "taskId":1475183, "timestamp":1649681745000 }, { "statusCodes":[ { "count":14, "name":"200" } ], "reqFailureRtMin":0, "requestBps":1904, "requestBytes":12376, "reqSuccessCount":14, "reqSuccessRtMin":10, "reqSuccessRtAvg":20, "reqSuccessTps":14.0, "rtMin":10, "rtAvg":21, "totalCount":14, "concurrency":500.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":227227, "reqFailureTps":0.0, "tps":14.0, "responseBps":34958, "reqSuccessRtMax":34, "totalVum":63, "rtMax":34, "taskId":1475183, "timestamp":1649681746000 }]'],
],
'SamplerMap' => ['title' => '采样器列表,可根据该列表传递需要查询的采样器', 'description' => '采样器列表,可根据该列表传递需要查询的采样器。', 'type' => 'object', 'example' => '{0:"Http Request"}'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'ReportNotExist', 'errorMessage' => 'The report does not exist.', 'description' => '报告不存在'],
],
],
'title' => 'JMeter采样器聚合数据',
'changeSet' => [
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetJMeterSampleMetrics'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:GetJMeterSampleMetrics',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"Message\\": \\"空\\",\\n \\"SampleMetricList\\": [\\n \\"[ { \\\\\\"statusCodes\\\\\\":[ { \\\\\\"count\\\\\\":26, \\\\\\"name\\\\\\":\\\\\\"200\\\\\\" } ], \\\\\\"reqFailureRtMin\\\\\\":0, \\\\\\"requestBps\\\\\\":2389, \\\\\\"requestBytes\\\\\\":3536, \\\\\\"reqSuccessCount\\\\\\":26, \\\\\\"reqSuccessRtMin\\\\\\":12, \\\\\\"reqSuccessRtAvg\\\\\\":21, \\\\\\"reqSuccessTps\\\\\\":17.56756756756757, \\\\\\"rtMin\\\\\\":12, \\\\\\"rtAvg\\\\\\":21, \\\\\\"totalCount\\\\\\":26, \\\\\\"concurrency\\\\\\":103.0, \\\\\\"bucket\\\\\\":\\\\\\"d9fb4ee42f0e8eb3\\\\\\", \\\\\\"reqFailureCount\\\\\\":0, \\\\\\"reqFailureRtMax\\\\\\":0, \\\\\\"responseBytes\\\\\\":64922, \\\\\\"reqFailureTps\\\\\\":0.0, \\\\\\"tps\\\\\\":17.56756756756757, \\\\\\"responseBps\\\\\\":43866, \\\\\\"reqSuccessRtMax\\\\\\":30, \\\\\\"totalVum\\\\\\":13, \\\\\\"rtMax\\\\\\":30, \\\\\\"taskId\\\\\\":1475183, \\\\\\"timestamp\\\\\\":1649681740000 }, { \\\\\\"statusCodes\\\\\\":[ { \\\\\\"count\\\\\\":13, \\\\\\"name\\\\\\":\\\\\\"200\\\\\\" } ], \\\\\\"reqFailureRtMin\\\\\\":0, \\\\\\"requestBps\\\\\\":1782, \\\\\\"requestBytes\\\\\\":5304, \\\\\\"reqSuccessCount\\\\\\":13, \\\\\\"reqSuccessRtMin\\\\\\":11, \\\\\\"reqSuccessRtAvg\\\\\\":23, \\\\\\"reqSuccessTps\\\\\\":13.10483870967742, \\\\\\"rtMin\\\\\\":11, \\\\\\"rtAvg\\\\\\":24, \\\\\\"totalCount\\\\\\":13, \\\\\\"concurrency\\\\\\":411.0, \\\\\\"bucket\\\\\\":\\\\\\"d9fb4ee42f0e8eb3\\\\\\", \\\\\\"reqFailureCount\\\\\\":0, \\\\\\"reqFailureRtMax\\\\\\":0, \\\\\\"responseBytes\\\\\\":97383, \\\\\\"reqFailureTps\\\\\\":0.0, \\\\\\"tps\\\\\\":13.10483870967742, \\\\\\"responseBps\\\\\\":32723, \\\\\\"reqSuccessRtMax\\\\\\":37, \\\\\\"totalVum\\\\\\":21, \\\\\\"rtMax\\\\\\":37, \\\\\\"taskId\\\\\\":1475183, \\\\\\"timestamp\\\\\\":1649681741000 }, { \\\\\\"statusCodes\\\\\\":[ { \\\\\\"count\\\\\\":7, \\\\\\"name\\\\\\":\\\\\\"200\\\\\\" } ], \\\\\\"reqFailureRtMin\\\\\\":0, \\\\\\"requestBps\\\\\\":952, \\\\\\"requestBytes\\\\\\":6256, \\\\\\"reqSuccessCount\\\\\\":7, \\\\\\"reqSuccessRtMin\\\\\\":19, \\\\\\"reqSuccessRtAvg\\\\\\":20, \\\\\\"reqSuccessTps\\\\\\":7.0, \\\\\\"rtMin\\\\\\":19, \\\\\\"rtAvg\\\\\\":20, \\\\\\"totalCount\\\\\\":7, \\\\\\"concurrency\\\\\\":500.0, \\\\\\"bucket\\\\\\":\\\\\\"d9fb4ee42f0e8eb3\\\\\\", \\\\\\"reqFailureCount\\\\\\":0, \\\\\\"reqFailureRtMax\\\\\\":0, \\\\\\"responseBytes\\\\\\":114862, \\\\\\"reqFailureTps\\\\\\":0.0, \\\\\\"tps\\\\\\":7.0, \\\\\\"responseBps\\\\\\":17479, \\\\\\"reqSuccessRtMax\\\\\\":21, \\\\\\"totalVum\\\\\\":29, \\\\\\"rtMax\\\\\\":21, \\\\\\"taskId\\\\\\":1475183, \\\\\\"timestamp\\\\\\":1649681742000 }, { \\\\\\"statusCodes\\\\\\":[ { \\\\\\"count\\\\\\":12, \\\\\\"name\\\\\\":\\\\\\"200\\\\\\" } ], \\\\\\"reqFailureRtMin\\\\\\":0, \\\\\\"requestBps\\\\\\":1632, \\\\\\"requestBytes\\\\\\":7888, \\\\\\"reqSuccessCount\\\\\\":12, \\\\\\"reqSuccessRtMin\\\\\\":15, \\\\\\"reqSuccessRtAvg\\\\\\":24, \\\\\\"reqSuccessTps\\\\\\":12.0, \\\\\\"rtMin\\\\\\":15, \\\\\\"rtAvg\\\\\\":25, \\\\\\"totalCount\\\\\\":12, \\\\\\"concurrency\\\\\\":500.0, \\\\\\"bucket\\\\\\":\\\\\\"d9fb4ee42f0e8eb3\\\\\\", \\\\\\"reqFailureCount\\\\\\":0, \\\\\\"reqFailureRtMax\\\\\\":0, \\\\\\"responseBytes\\\\\\":144826, \\\\\\"reqFailureTps\\\\\\":0.0, \\\\\\"tps\\\\\\":12.0, \\\\\\"responseBps\\\\\\":29964, \\\\\\"reqSuccessRtMax\\\\\\":45, \\\\\\"totalVum\\\\\\":38, \\\\\\"rtMax\\\\\\":45, \\\\\\"taskId\\\\\\":1475183, \\\\\\"timestamp\\\\\\":1649681743000 }, { \\\\\\"statusCodes\\\\\\":[ { \\\\\\"count\\\\\\":10, \\\\\\"name\\\\\\":\\\\\\"200\\\\\\" } ], \\\\\\"reqFailureRtMin\\\\\\":0, \\\\\\"requestBps\\\\\\":1360, \\\\\\"requestBytes\\\\\\":9248, \\\\\\"reqSuccessCount\\\\\\":10, \\\\\\"reqSuccessRtMin\\\\\\":14, \\\\\\"reqSuccessRtAvg\\\\\\":21, \\\\\\"reqSuccessTps\\\\\\":10.0, \\\\\\"rtMin\\\\\\":14, \\\\\\"rtAvg\\\\\\":22, \\\\\\"totalCount\\\\\\":10, \\\\\\"concurrency\\\\\\":500.0, \\\\\\"bucket\\\\\\":\\\\\\"d9fb4ee42f0e8eb3\\\\\\", \\\\\\"reqFailureCount\\\\\\":0, \\\\\\"reqFailureRtMax\\\\\\":0, \\\\\\"responseBytes\\\\\\":169796, \\\\\\"reqFailureTps\\\\\\":0.0, \\\\\\"tps\\\\\\":10.0, \\\\\\"responseBps\\\\\\":24970, \\\\\\"reqSuccessRtMax\\\\\\":29, \\\\\\"totalVum\\\\\\":46, \\\\\\"rtMax\\\\\\":29, \\\\\\"taskId\\\\\\":1475183, \\\\\\"timestamp\\\\\\":1649681744000 }, { \\\\\\"statusCodes\\\\\\":[ { \\\\\\"count\\\\\\":9, \\\\\\"name\\\\\\":\\\\\\"200\\\\\\" } ], \\\\\\"reqFailureRtMin\\\\\\":0, \\\\\\"requestBps\\\\\\":1224, \\\\\\"requestBytes\\\\\\":10472, \\\\\\"reqSuccessCount\\\\\\":9, \\\\\\"reqSuccessRtMin\\\\\\":11, \\\\\\"reqSuccessRtAvg\\\\\\":23, \\\\\\"reqSuccessTps\\\\\\":9.0, \\\\\\"rtMin\\\\\\":11, \\\\\\"rtAvg\\\\\\":23, \\\\\\"totalCount\\\\\\":9, \\\\\\"concurrency\\\\\\":500.0, \\\\\\"bucket\\\\\\":\\\\\\"d9fb4ee42f0e8eb3\\\\\\", \\\\\\"reqFailureCount\\\\\\":0, \\\\\\"reqFailureRtMax\\\\\\":0, \\\\\\"responseBytes\\\\\\":192269, \\\\\\"reqFailureTps\\\\\\":0.0, \\\\\\"tps\\\\\\":9.0, \\\\\\"responseBps\\\\\\":22473, \\\\\\"reqSuccessRtMax\\\\\\":45, \\\\\\"totalVum\\\\\\":54, \\\\\\"rtMax\\\\\\":45, \\\\\\"taskId\\\\\\":1475183, \\\\\\"timestamp\\\\\\":1649681745000 }, { \\\\\\"statusCodes\\\\\\":[ { \\\\\\"count\\\\\\":14, \\\\\\"name\\\\\\":\\\\\\"200\\\\\\" } ], \\\\\\"reqFailureRtMin\\\\\\":0, \\\\\\"requestBps\\\\\\":1904, \\\\\\"requestBytes\\\\\\":12376, \\\\\\"reqSuccessCount\\\\\\":14, \\\\\\"reqSuccessRtMin\\\\\\":10, \\\\\\"reqSuccessRtAvg\\\\\\":20, \\\\\\"reqSuccessTps\\\\\\":14.0, \\\\\\"rtMin\\\\\\":10, \\\\\\"rtAvg\\\\\\":21, \\\\\\"totalCount\\\\\\":14, \\\\\\"concurrency\\\\\\":500.0, \\\\\\"bucket\\\\\\":\\\\\\"d9fb4ee42f0e8eb3\\\\\\", \\\\\\"reqFailureCount\\\\\\":0, \\\\\\"reqFailureRtMax\\\\\\":0, \\\\\\"responseBytes\\\\\\":227227, \\\\\\"reqFailureTps\\\\\\":0.0, \\\\\\"tps\\\\\\":14.0, \\\\\\"responseBps\\\\\\":34958, \\\\\\"reqSuccessRtMax\\\\\\":34, \\\\\\"totalVum\\\\\\":63, \\\\\\"rtMax\\\\\\":34, \\\\\\"taskId\\\\\\":1475183, \\\\\\"timestamp\\\\\\":1649681746000 }]\\"\\n ],\\n \\"SamplerMap\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<GetJMeterSampleMetricsResponse>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Message>空</Message>\\n <SampleMetricList>[{ \\"statusCodes\\":Array[1], \\"requestBytes\\":1001638, \\"reqFailureCount\\":0, \\"bucket\\":\\"e29e69b15e584bef\\", \\"reqFailureTps\\":0, \\"nodeId\\":0, \\"rtMax\\":698, \\"reqFailureRtMin\\":0, \\"reqSuccessTps\\":4132.800798801797, \\"rtAvg\\":55, \\"totalCount\\":8278, \\"rtMin\\":29, \\"reqFailureRtMax\\":0, \\"timestamp\\":1637308496000, \\"requestBps\\":500069, \\"reqSuccessCount\\":8278, \\"reqSuccessRtAvg\\":55, \\"reqSuccessRtMin\\":29, \\"responseBytes\\":20670166, \\"tps\\":4132.800798801797, \\"responseBps\\":10319604, \\"reqSuccessRtMax\\":698, \\"taskId\\":1214920 }]</SampleMetricList>\\n <Code>200</Code>\\n <Success>true</Success>\\n</GetJMeterSampleMetricsResponse>","errorExample":""}]',
],
'GetJMeterSamplingLogs' => [
'summary' => '根据条件获得JMeter采样器的采样日志。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '请求第N页采样日志信息。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '10000000', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '请求N条采样日志记录。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '200', 'minimum' => '1', 'example' => '10'],
],
[
'name' => 'BeginTime',
'in' => 'query',
'schema' => ['title' => '开始时间', 'description' => '开始时间,单位毫秒。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'docRequired' => true, 'example' => '1637157073000'],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['title' => '结束时间', 'description' => '结束时间,单位毫秒。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'docRequired' => true, 'example' => '1637157076000'],
],
[
'name' => 'ReportId',
'in' => 'query',
'schema' => ['title' => '报告ID', 'description' => '报告ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '7R4RE352'],
],
[
'name' => 'AgentId',
'in' => 'query',
'schema' => ['title' => '压测引擎编号', 'description' => '压测引擎编号,该字段暂未启用。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '14238000'],
],
[
'name' => 'SamplerId',
'in' => 'query',
'schema' => ['title' => '第几个采样器,从0开始', 'description' => '第N个采样器,从0开始。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'Success',
'in' => 'query',
'schema' => ['title' => '采样结果是否成功', 'description' => '采样结果是否成功。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'Thread',
'in' => 'query',
'schema' => ['title' => '线程', 'description' => '线程名。支持模糊搜索,按空格分词。', 'type' => 'string', 'required' => false, 'example' => 'main'],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['title' => '关键字', 'description' => '关键字,可以通过对场景名(**SceneName**)进行模糊搜索或者对场景ID(**SceneId**)进行精确搜索。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'MinRT',
'in' => 'query',
'schema' => ['title' => '最小响应时间,单位ms', 'description' => '最小响应时间,单位为ms。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'MaxRT',
'in' => 'query',
'schema' => ['title' => '最大响应时间,单位ms', 'description' => '最大响应时间,单位为ms。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
],
[
'name' => 'ResponseCode',
'in' => 'query',
'schema' => ['description' => '响应码。', 'type' => 'string', 'required' => false, 'example' => '200'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '日志记录总数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'PageSize' => ['description' => '返回日志记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageNumber' => ['description' => '返回第N页日志信息。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'SampleResults' => [
'title' => '采样器的采样结果',
'description' => '采样器的采样结果',
'type' => 'array',
'items' => ['description' => '采样器的采样结果。', 'type' => 'string', 'example' => '{ "assertionResults":[], "endTimeTS":1650280351514, "dataEncoding":"utf-8", "latency":11, "samplerData":"GET http://testdomain/\\n\\nGET data:\\n\\n\\n[no cookies]\\n", "httpMethod":"GET", "subResults":[], "idleTime":0, "cookies":"", "responseCode":"200", "responseDataAsString":"response data", "startTimeTS":1650280351503, "requestByteCount":136, "instanceId":0, "samplerId":0, "connectTime":0, "sceneId":276685, "startTime":"2022-04-18T19:12Z", "planId":1736797, "requestData":"", "contentType":"text/html", "responseDataTruncated":false, "dataType":"text", "mediaType":"text/html", "requestDataTruncated":false, "responseByteCount":2497, "threadName":"线程组 1-1", "url":"http:/testdomain", "requestHeaders":"Connection: keep-alive\\nx-pts-test: 1\\nHost: testdomain\\nUser-Agent: Apache-HttpClient/4.5.6 (Java/11.0.7.7-AJDK)\\n", "responseHeaders":"HTTP/1.1 200 OK\\nContent-Length: 2381\\nContent-Type: text/html\\nServer: bfe\\nDate: Mon, 18 Apr 2022 11:12:31 GMT\\n", "success":true, "headersSize":116, "bodySize":2381, "endTime":"2022-04-18T19:12Z", "responseMessage":"OK", "taskId":17367970000, "elapsedTime":11 }'],
'example' => '{ "assertionResults":[], "endTimeTS":1650280351514, "dataEncoding":"utf-8", "latency":11, "samplerData":"GET http://testdomain/\\n\\nGET data:\\n\\n\\n[no cookies]\\n", "httpMethod":"GET", "subResults":[], "idleTime":0, "cookies":"", "responseCode":"200", "responseDataAsString":"response data", "startTimeTS":1650280351503, "requestByteCount":136, "instanceId":0, "samplerId":0, "connectTime":0, "sceneId":276685, "startTime":"2022-04-18T19:12Z", "planId":1736797, "requestData":"", "contentType":"text/html", "responseDataTruncated":false, "dataType":"text", "mediaType":"text/html", "requestDataTruncated":false, "responseByteCount":2497, "threadName":"Thread Group 1-1", "url":"http:/testdomain", "requestHeaders":"Connection: keep-alive\\nx-pts-test: 1\\nHost: testdomain\\nUser-Agent: Apache-HttpClient/4.5.6 (Java/11.0.7.7-AJDK)\\n", "responseHeaders":"HTTP/1.1 200 OK\\nContent-Length: 2381\\nContent-Type: text/html\\nServer: bfe\\nDate: Mon, 18 Apr 2022 11:12:31 GMT\\n", "success":true, "headersSize":116, "bodySize":2381, "endTime":"2022-04-18T19:12Z", "responseMessage":"OK", "taskId":17367970000, "elapsedTime":11 }',
],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'ReportNotExist', 'errorMessage' => 'The report does not exist.', 'description' => '报告不存在'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 100,\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"Message\\": \\"\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"HttpStatusCode\\": 0,\\n \\"SampleResults\\": [\\n \\"{ \\\\\\"assertionResults\\\\\\":[], \\\\\\"endTimeTS\\\\\\":1650280351514, \\\\\\"dataEncoding\\\\\\":\\\\\\"utf-8\\\\\\", \\\\\\"latency\\\\\\":11, \\\\\\"samplerData\\\\\\":\\\\\\"GET http://testdomain/\\\\\\\\n\\\\\\\\nGET data:\\\\\\\\n\\\\\\\\n\\\\\\\\n[no cookies]\\\\\\\\n\\\\\\", \\\\\\"httpMethod\\\\\\":\\\\\\"GET\\\\\\", \\\\\\"subResults\\\\\\":[], \\\\\\"idleTime\\\\\\":0, \\\\\\"cookies\\\\\\":\\\\\\"\\\\\\", \\\\\\"responseCode\\\\\\":\\\\\\"200\\\\\\", \\\\\\"responseDataAsString\\\\\\":\\\\\\"response data\\\\\\", \\\\\\"startTimeTS\\\\\\":1650280351503, \\\\\\"requestByteCount\\\\\\":136, \\\\\\"instanceId\\\\\\":0, \\\\\\"samplerId\\\\\\":0, \\\\\\"connectTime\\\\\\":0, \\\\\\"sceneId\\\\\\":276685, \\\\\\"startTime\\\\\\":\\\\\\"2022-04-18T19:12Z\\\\\\", \\\\\\"planId\\\\\\":1736797, \\\\\\"requestData\\\\\\":\\\\\\"\\\\\\", \\\\\\"contentType\\\\\\":\\\\\\"text/html\\\\\\", \\\\\\"responseDataTruncated\\\\\\":false, \\\\\\"dataType\\\\\\":\\\\\\"text\\\\\\", \\\\\\"mediaType\\\\\\":\\\\\\"text/html\\\\\\", \\\\\\"requestDataTruncated\\\\\\":false, \\\\\\"responseByteCount\\\\\\":2497, \\\\\\"threadName\\\\\\":\\\\\\"线程组 1-1\\\\\\", \\\\\\"url\\\\\\":\\\\\\"http:/testdomain\\\\\\", \\\\\\"requestHeaders\\\\\\":\\\\\\"Connection: keep-alive\\\\\\\\nx-pts-test: 1\\\\\\\\nHost: testdomain\\\\\\\\nUser-Agent: Apache-HttpClient/4.5.6 (Java/11.0.7.7-AJDK)\\\\\\\\n\\\\\\", \\\\\\"responseHeaders\\\\\\":\\\\\\"HTTP/1.1 200 OK\\\\\\\\nContent-Length: 2381\\\\\\\\nContent-Type: text/html\\\\\\\\nServer: bfe\\\\\\\\nDate: Mon, 18 Apr 2022 11:12:31 GMT\\\\\\\\n\\\\\\", \\\\\\"success\\\\\\":true, \\\\\\"headersSize\\\\\\":116, \\\\\\"bodySize\\\\\\":2381, \\\\\\"endTime\\\\\\":\\\\\\"2022-04-18T19:12Z\\\\\\", \\\\\\"responseMessage\\\\\\":\\\\\\"OK\\\\\\", \\\\\\"taskId\\\\\\":17367970000, \\\\\\"elapsedTime\\\\\\":11 }\\"\\n ],\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<GetJMeterSamplingLogsResponse>\\n <TotalCount>100</TotalCount>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Message>空</Message>\\n <PageSize>10</PageSize>\\n <PageNumber>1</PageNumber>\\n <HttpStatusCode>200</HttpStatusCode>\\n <SampleResults>{endTimeTS=1637308494609, dataEncoding=utf-8, latency=35, samplerData=GET http://www.baidu.com/, httpMethod=GET, idleTime=0, responseCode=200, responseDataAsString=你就知道, startTimeTS=1637308494574, requestByteCount=121, samplerId=0, connectTime=19, sceneId=252136, startTime=2021-11-19T15:54Z, planId=1505314, requestData=, contentType=text/html, responseDataTruncated=false, dataType=text, samplerLabel=HTTP Request, mediaType=text/html, url=http://www.baidu.com/, threadName=Thread Group 1-1, responseHeaders=HTTP/1.1 200 OK, requestHeaders=Connection: keep-alive Host: www.baidu.com User-Agent: Apache-HttpClient/4.5.6 (Java/11.0.7.7-AJDK) , success=true, bodySize=2381}</SampleResults>\\n <Code>200</Code>\\n <Success>true</Success>\\n</GetJMeterSamplingLogsResponse>","errorExample":""}]',
'title' => 'JMeter采样器日志',
'changeSet' => [
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetJMeterSamplingLogs'],
],
],
'ramActions' => [],
],
'GetJMeterSceneRunningData' => [
'summary' => '根据场景ID获取JMeter场景压测过程中的数据。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['title' => '场景id', 'description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DYYPZIH'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'DocumentUrl' => ['description' => '文档链接。', 'type' => 'string', 'example' => '空'],
'RunningData' => [
'title' => '运行中的数据',
'description' => '运行中的数据。',
'type' => 'object',
'properties' => [
'SceneId' => ['title' => '场景id', 'description' => '场景ID。', 'type' => 'string', 'example' => 'DYYPZIH'],
'ErrorMessage' => ['title' => '压测流程的失败信息', 'description' => '压测流程的失败信息,若成功则不返回该字段。', 'type' => 'string', 'example' => '引擎租用失败'],
'ReportId' => ['title' => '压测任务id,也即报告id', 'description' => '压测任务id,也即报告id', 'type' => 'string', 'example' => 'DYYPLDKS'],
'HasError' => ['title' => '压测流程是否出错', 'description' => '压测流程是否出错', 'type' => 'boolean', 'example' => 'false'],
'SceneName' => ['title' => '场景名称', 'description' => '场景名称。', 'type' => 'string', 'example' => 'test'],
'HoldFor' => ['title' => '压测计划持续时间,单位s', 'description' => '压测计划持续时间,单位为s。', 'type' => 'integer', 'format' => 'int32', 'example' => '600'],
'AgentCount' => ['title' => '压测引擎数量', 'description' => '压测引擎数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'AgentIdList' => [
'title' => '压测引擎列表',
'description' => '压测引擎列表。',
'type' => 'array',
'items' => ['description' => '压测引擎列表。', 'type' => 'string', 'example' => '["116.19.153.94_3088020"]'],
],
'Concurrency' => ['title' => '并发量', 'description' => '并发量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'HasReport' => ['title' => '是否生成了报告', 'description' => '当前是否已经生成报告。', 'type' => 'boolean', 'example' => 'false'],
'IsDebugging' => ['title' => '是否是调试', 'description' => '是否调试。', 'type' => 'boolean', 'example' => 'false'],
'Status' => ['title' => '状态', 'description' => '场景压测状态。', 'type' => 'string', 'example' => 'RUNNING'],
'Vum' => ['title' => '目前消耗的vum', 'description' => '目前消耗的VUM。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'StartTimeTS' => ['title' => '压测计划开始时间戳,单位ms', 'description' => '压测计划开始时间戳,单位为ms。', 'type' => 'integer', 'format' => 'int64', 'example' => '1639970040000'],
'StageName' => ['title' => '当前所处阶段', 'description' => '当前所处阶段。', 'type' => 'string', 'example' => 'Task execution'],
'AllSampleStat' => ['title' => '场景整体的采样状态', 'description' => '场景整体的采样状态。', 'type' => 'object', 'example' => '{'."\n"
.' "statusCodes": {'."\n"
.' "200": 634'."\n"
.' }'],
'SampleStatList' => [
'title' => '每一个采样器的状态',
'description' => '每一个采样器的状态。',
'type' => 'array',
'items' => ['description' => '每一个采样器的状态。', 'type' => 'object', 'example' => '['."\n"
.' {'."\n"
.' "statusCodes": {'."\n"
.' "200": 634'."\n"
.' },'."\n"
.' "successRtAvg": 1,'."\n"
.' "successRtMin": 1,'."\n"
.' "responseBytesPerSecond": 453280,'."\n"
.' "successRtSum": 985,'."\n"
.' "samplerId": 0,'."\n"
.' "successRtMax": 9,'."\n"
.' "failRtSum": 0,'."\n"
.' "failCount": 0,'."\n"
.' "samplerLabel": "HTTP Request",'."\n"
.' "count": 634,'."\n"
.' "exceptions": {},'."\n"
.' "successTps": 634,'."\n"
.' "failRtAvg": 0,'."\n"
.' "failRtMin": 0,'."\n"
.' "rtMax": 9,'."\n"
.' "failTps": 0,'."\n"
.' "rtAvg": 1.553627760252366,'."\n"
.' "rtMin": 1,'."\n"
.' "failRtMax": 0,'."\n"
.' "duration": 1000,'."\n"
.' "fullStat": {'."\n"
.' "statusCodes": {'."\n"
.' "200": 1999372'."\n"
.' },'."\n"
.' "requestBytesSum": 411006848,'."\n"
.' "successRtAvg": 1,'."\n"
.' "successRtMin": 1,'."\n"
.' "responseBytesPerSecond": 463583.6830464281,'."\n"
.' "successRtSum": 3023438,'."\n"
.' "rtMedianSum": 1,'."\n"
.' "successRtMax": 25,'."\n"
.' "responseBytesSum": 1429451015,'."\n"
.' "failRtSum": 0,'."\n"
.' "failCount": 0,'."\n"
.' "count": 1999372,'."\n"
.' "rtSeg99": 3,'."\n"
.' "exceptions": {},'."\n"
.' "successTps": 648.4141294900567,'."\n"
.' "rtSeg90": 2,'."\n"
.' "rtSeg50": 1,'."\n"
.' "rtSeg99Sum": 3,'."\n"
.' "failRtAvg": 0,'."\n"
.' "failRtMin": 0,'."\n"
.' "rtMax": 25,'."\n"
.' "failTps": 0,'."\n"
.' "rtSeg75Sum": 2,'."\n"
.' "rtAvg": 1.5121938288622627,'."\n"
.' "rtMin": 1,'."\n"
.' "failRtMax": 0,'."\n"
.' "duration": 3083480,'."\n"
.' "successCount": 1999372,'."\n"
.' "rtSegStatCount": 1,'."\n"
.' "rtSeg75": 2,'."\n"
.' "rtSeg90Sum": 2,'."\n"
.' "tps": 648.4141294900567,'."\n"
.' "requestBytesPerSecond": 133293.17783802716'."\n"
.' },'."\n"
.' "successCount": 634,'."\n"
.' "tps": 634,'."\n"
.' "requestBytesPerSecond": 130388'."\n"
.' }'."\n"
.' ]'],
],
],
],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'ReportNotExist', 'errorMessage' => 'The report does not exist.', 'description' => '报告不存在'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"Code\\": \\"\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 0,\\n \\"DocumentUrl\\": \\"空\\",\\n \\"RunningData\\": {\\n \\"SceneId\\": \\"DYYPZIH\\",\\n \\"ErrorMessage\\": \\"引擎租用失败\\",\\n \\"ReportId\\": \\"DYYPLDKS\\",\\n \\"HasError\\": false,\\n \\"SceneName\\": \\"test\\",\\n \\"HoldFor\\": 600,\\n \\"AgentCount\\": 2,\\n \\"AgentIdList\\": [\\n \\"[\\\\\\"116.19.153.94_3088020\\\\\\"]\\"\\n ],\\n \\"Concurrency\\": 1000,\\n \\"HasReport\\": false,\\n \\"IsDebugging\\": false,\\n \\"Status\\": \\"RUNNING\\",\\n \\"Vum\\": 100,\\n \\"StartTimeTS\\": 1639970040000,\\n \\"StageName\\": \\"Task execution\\",\\n \\"AllSampleStat\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"SampleStatList\\": [\\n [\\n {\\n \\"statusCodes\\": {\\n \\"200\\": 634\\n },\\n \\"successRtAvg\\": 1,\\n \\"successRtMin\\": 1,\\n \\"responseBytesPerSecond\\": 453280,\\n \\"successRtSum\\": 985,\\n \\"samplerId\\": 0,\\n \\"successRtMax\\": 9,\\n \\"failRtSum\\": 0,\\n \\"failCount\\": 0,\\n \\"samplerLabel\\": \\"HTTP Request\\",\\n \\"count\\": 634,\\n \\"exceptions\\": {},\\n \\"successTps\\": 634,\\n \\"failRtAvg\\": 0,\\n \\"failRtMin\\": 0,\\n \\"rtMax\\": 9,\\n \\"failTps\\": 0,\\n \\"rtAvg\\": 1.553627760252366,\\n \\"rtMin\\": 1,\\n \\"failRtMax\\": 0,\\n \\"duration\\": 1000,\\n \\"fullStat\\": {\\n \\"statusCodes\\": {\\n \\"200\\": 1999372\\n },\\n \\"requestBytesSum\\": 411006848,\\n \\"successRtAvg\\": 1,\\n \\"successRtMin\\": 1,\\n \\"responseBytesPerSecond\\": 463583.6830464281,\\n \\"successRtSum\\": 3023438,\\n \\"rtMedianSum\\": 1,\\n \\"successRtMax\\": 25,\\n \\"responseBytesSum\\": 1429451015,\\n \\"failRtSum\\": 0,\\n \\"failCount\\": 0,\\n \\"count\\": 1999372,\\n \\"rtSeg99\\": 3,\\n \\"exceptions\\": {},\\n \\"successTps\\": 648.4141294900567,\\n \\"rtSeg90\\": 2,\\n \\"rtSeg50\\": 1,\\n \\"rtSeg99Sum\\": 3,\\n \\"failRtAvg\\": 0,\\n \\"failRtMin\\": 0,\\n \\"rtMax\\": 25,\\n \\"failTps\\": 0,\\n \\"rtSeg75Sum\\": 2,\\n \\"rtAvg\\": 1.5121938288622627,\\n \\"rtMin\\": 1,\\n \\"failRtMax\\": 0,\\n \\"duration\\": 3083480,\\n \\"successCount\\": 1999372,\\n \\"rtSegStatCount\\": 1,\\n \\"rtSeg75\\": 2,\\n \\"rtSeg90Sum\\": 2,\\n \\"tps\\": 648.4141294900567,\\n \\"requestBytesPerSecond\\": 133293.17783802716\\n },\\n \\"successCount\\": 634,\\n \\"tps\\": 634,\\n \\"requestBytesPerSecond\\": 130388\\n }\\n ]\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetJMeterSceneRunningDataResponse>\\n <Message>空</Message>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Code>200</Code>\\n <Success>true</Success>\\n <HttpStatusCode>200</HttpStatusCode>\\n <DocumentUrl>空</DocumentUrl>\\n <RunningData>\\n <SceneId>DYYPZIH</SceneId>\\n <SceneName>test</SceneName>\\n <HoldFor>600</HoldFor>\\n <AgentCount>2</AgentCount>\\n <AgentIdList>[\\"116.19.153.94_3088020\\"]</AgentIdList>\\n <Concurrency>1000</Concurrency>\\n <HasReport>false</HasReport>\\n <IsDebugging>false</IsDebugging>\\n <Status>RUNNING</Status>\\n <Vum>100</Vum>\\n <StartTimeTS>1639970040000</StartTimeTS>\\n <StageName>任务执行</StageName>\\n <SampleStatList/>\\n </RunningData>\\n</GetJMeterSceneRunningDataResponse>","errorExample":""}]',
'title' => '获得压测运行时数据',
'changeSet' => [
['createdAt' => '2023-12-06T11:20:19.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2021-12-20T03:42:13.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetJMeterSceneRunningData'],
],
],
'ramActions' => [],
],
'GetOpenJMeterScene' => [
'summary' => '获得JMeter场景详情。',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['title' => '场景ID', 'description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DYYPZIH'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则为空。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Scene' => [
'title' => '场景详情',
'description' => '场景详情。',
'type' => 'object',
'properties' => [
'SceneName' => ['title' => '场景名', 'description' => '场景名。', 'type' => 'string', 'example' => 'test'],
'SceneId' => ['title' => '场景id', 'description' => '场景ID。', 'type' => 'string', 'example' => 'DYYPZIH'],
'EnvironmentId' => ['title' => '环境id', 'description' => '环境ID。', 'type' => 'string', 'example' => 'EEDT7'],
'BaseInfo' => [
'title' => '基本信息',
'description' => '基本信息。',
'type' => 'object',
'properties' => [
'Remark' => ['title' => '备注', 'description' => '备注。', 'type' => 'string', 'example' => '小心压测'],
'Principal' => ['title' => '场景压测负责人', 'description' => '场景压测负责人。', 'type' => 'string', 'example' => 'test-person'],
'Resource' => ['title' => '场景来源', 'description' => '场景来源。', 'type' => 'string', 'example' => 'create'],
'CreateName' => ['title' => '创建人名', 'description' => '创建人名。', 'type' => 'string', 'example' => 'John Doe'],
'ModifyName' => ['title' => '修改人名', 'description' => '修改人名。', 'type' => 'string', 'example' => 'Rees'],
'OperateType' => ['title' => '操作类型', 'description' => '操作类型。', 'type' => 'string', 'example' => 'Save and start stress test'],
],
],
'FileList' => [
'title' => '文件列表',
'description' => '文件列表。',
'type' => 'array',
'items' => [
'description' => '文件详情。',
'type' => 'object',
'properties' => [
'Id' => ['title' => '文件ID', 'description' => '文件ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '61660'],
'FileName' => ['title' => '文件名', 'description' => '文件名。', 'type' => 'string', 'example' => 'json.jar'],
'FileOssAddress' => ['title' => '文件地址', 'description' => '文件的OSS地址。', 'type' => 'string', 'example' => 'https://test.oss-cn-shanghai.aliyuncs.com/json.jar'],
'SplitCsv' => ['title' => 'csv文件是否切分', 'description' => '是否切分。', 'type' => 'boolean', 'example' => 'false'],
'Md5' => ['title' => '文件的md5值', 'description' => 'JAR包的MD5值。', 'type' => 'string', 'example' => '43B584026CE5E570F3DE638FA7EEF9E0'],
'FileSize' => ['title' => '文件大小', 'description' => '文件大小,单位为Byte。', 'type' => 'integer', 'format' => 'int64', 'example' => '700'],
'FileType' => ['title' => '文件类型', 'description' => '文件类型。', 'type' => 'string', 'example' => 'jar'],
],
],
],
'TestFile' => ['title' => '测试文件', 'description' => '测试文件。', 'type' => 'string', 'example' => 'baidu.jmx'],
'IsVpcTest' => ['title' => '是否为VPC压测', 'description' => '是否为VPC压测。', 'type' => 'boolean', 'example' => 'false'],
'Duration' => ['title' => '压测持续时间,单位为s', 'description' => '压测持续时间,单位为s。', 'type' => 'integer', 'format' => 'int32', 'example' => '600'],
'DnsCacheConfig' => [
'title' => 'DNS配置',
'description' => 'DNS配置。',
'type' => 'object',
'properties' => [
'ClearCacheEachIteration' => ['title' => '是否清除缓存', 'description' => '是否清除缓存。', 'type' => 'boolean', 'example' => 'false'],
'DnsServers' => [
'title' => 'DNS服务器',
'description' => 'DNS服务器',
'type' => 'array',
'items' => ['description' => 'DNS服务器。', 'type' => 'string', 'example' => '["8.8.8.8"]'],
],
'HostTable' => ['title' => '域名绑定', 'description' => '域名绑定。', 'type' => 'object', 'example' => '{"server.com":"6.6.6.6"}'],
],
],
'Concurrency' => ['title' => '最大并发,并发模式下生效', 'description' => '最大并发。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'AgentCount' => ['title' => '施压机数量', 'description' => '施压机数量。一台施压机最多支持500并发。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'RampUp' => ['title' => '递增时间,单位s', 'description' => '递增时间,单位为s。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'Steps' => ['title' => '递增阶梯数。预热时间和预热阶段数都不配置时 使用固定压力值 只配置预热时间,不配置阶段数时 使用均匀递增 预热时间和阶段数都配置时,并且steps<rampUp 使用阶梯递增 不能只配置steps,不配置rampUp 如果这样配置,默认使用固定压力值', 'description' => '递增阶梯数。预热时间和预热阶段数都不进行配置时,使用固定压力值;只配置预热时间,不配置阶段数时,使用均匀递增;预热时间和阶段数都进行配置时,且Steps<rampUp,使用阶梯递增。不可只配置Steps,而不配置rampUp。如果使用此配置,则默认使用固定压力值。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'RegionId' => ['title' => 'VPC压测时配置', 'description' => '地域ID,在VPC压测时配置。', 'type' => 'string', 'example' => 'cn-beijing'],
'VpcId' => ['title' => 'vpc的id,VPC压测时配置', 'description' => 'VPC的ID,在VPC压测时配置。', 'type' => 'string', 'example' => 'vpc-2ze2sahjdgahsebjkqhf4pyj'],
'SecurityGroupId' => ['title' => '安全组id,VPC压测时配置', 'description' => '安全组ID,在VPC压测时配置。', 'type' => 'string', 'example' => 'sg-2zeid0dd7bhahsgdahspaly'],
'VSwitchId' => ['title' => '交换机id,VPC压测时配置', 'description' => '交换机ID,在VPC压测时配置。', 'type' => 'string', 'example' => 'vsw-2zehsgdhsahw1r'],
'SyncTimerType' => ['title' => 'synchronizing timer 类型', 'description' => '同步定时器类型。', 'type' => 'string', 'example' => 'GLOBAL'],
'ConstantThroughputTimerType' => ['title' => 'constantThroughputTimerType', 'description' => '固定吞吐量定时器类型。', 'type' => 'string', 'example' => 'STAND_ALONE'],
'Pool' => ['title' => '压力来源。“”表示公网,intranet-vpc表示VPC', 'description' => '压力来源。“”表示公网,intranet-vpc表示VPC', 'type' => 'string', 'example' => 'VPC'],
'Mode' => ['title' => '施压模式,concurrency_mode表示并发压测,tps_mode表示RPS压测', 'description' => '施压模式,concurrency_mode表示并发压测,tps_mode表示RPS压测', 'type' => 'string', 'example' => 'concurrency_mode'],
'StartRps' => ['description' => '起始的RPS,RPS模式下生效。', 'type' => 'integer', 'format' => 'int32', 'example' => 'true'],
'MaxRps' => ['description' => '最大RPS,RPS模式下生效。', 'type' => 'integer', 'format' => 'int32', 'example' => 'true'],
'StartConcurrency' => ['description' => '起始并发,并发模式下生效。', 'type' => 'integer', 'format' => 'int32', 'example' => 'true'],
'RegionalCondition' => [
'description' => '施压机地域定制',
'type' => 'array',
'items' => [
'description' => '单地域施压机数量',
'type' => 'object',
'properties' => [
'Region' => ['description' => '地域id', 'type' => 'string', 'example' => 'cn-hangzhou'],
'Amount' => ['description' => '施压机数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
],
],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'SceneNotExist', 'errorMessage' => 'The scene does not exist.', 'description' => '场景不存在'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Scene\\": {\\n \\"SceneName\\": \\"test\\",\\n \\"SceneId\\": \\"DYYPZIH\\",\\n \\"EnvironmentId\\": \\"EEDT7\\",\\n \\"BaseInfo\\": {\\n \\"Remark\\": \\"小心压测\\",\\n \\"Principal\\": \\"test-person\\",\\n \\"Resource\\": \\"create\\",\\n \\"CreateName\\": \\"John Doe\\",\\n \\"ModifyName\\": \\"Rees\\",\\n \\"OperateType\\": \\"Save and start stress test\\"\\n },\\n \\"FileList\\": [\\n {\\n \\"Id\\": 61660,\\n \\"FileName\\": \\"json.jar\\",\\n \\"FileOssAddress\\": \\"https://test.oss-cn-shanghai.aliyuncs.com/json.jar\\",\\n \\"SplitCsv\\": false,\\n \\"Md5\\": \\"43B584026CE5E570F3DE638FA7EEF9E0\\",\\n \\"FileSize\\": 700,\\n \\"FileType\\": \\"jar\\"\\n }\\n ],\\n \\"TestFile\\": \\"baidu.jmx\\",\\n \\"IsVpcTest\\": false,\\n \\"Duration\\": 600,\\n \\"DnsCacheConfig\\": {\\n \\"ClearCacheEachIteration\\": false,\\n \\"DnsServers\\": [\\n \\"[\\\\\\"8.8.8.8\\\\\\"]\\"\\n ],\\n \\"HostTable\\": {\\n \\"server.com\\": \\"6.6.6.6\\"\\n }\\n },\\n \\"Concurrency\\": 1000,\\n \\"AgentCount\\": 2,\\n \\"RampUp\\": 100,\\n \\"Steps\\": 3,\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"VpcId\\": \\"vpc-2ze2sahjdgahsebjkqhf4pyj\\",\\n \\"SecurityGroupId\\": \\"sg-2zeid0dd7bhahsgdahspaly\\",\\n \\"VSwitchId\\": \\"vsw-2zehsgdhsahw1r\\",\\n \\"SyncTimerType\\": \\"GLOBAL\\",\\n \\"ConstantThroughputTimerType\\": \\"STAND_ALONE\\",\\n \\"Pool\\": \\"VPC\\",\\n \\"Mode\\": \\"concurrency_mode\\",\\n \\"StartRps\\": 0,\\n \\"MaxRps\\": 0,\\n \\"StartConcurrency\\": 0,\\n \\"RegionalCondition\\": [\\n {\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Amount\\": 1\\n }\\n ]\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<GetOpenJMeterSceneResponse>\\n <Message>空</Message>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Scene>\\n <SceneName>test</SceneName>\\n <SceneId>DYYPZIH</SceneId>\\n <EnvironmentId>EEDT7</EnvironmentId>\\n <BaseInfo>\\n <Remark>小心压测</Remark>\\n <Principal>test-person</Principal>\\n <Resource>create</Resource>\\n <CreateName>张三</CreateName>\\n <ModifyName>里斯</ModifyName>\\n <OperateType>保存去压测</OperateType>\\n </BaseInfo>\\n <FileList>\\n <Id>61660</Id>\\n <FileName>json.jar</FileName>\\n <FileOssAddress>https://test.oss-cn-shanghai.aliyuncs.com/json.jar</FileOssAddress>\\n <SplitCsv>false</SplitCsv>\\n <Md5>43B584026CE5E570F3DE638FA7EEF9E0</Md5>\\n <FileSize>700</FileSize>\\n <FileType>jar</FileType>\\n </FileList>\\n <TestFile>baidu.jmx</TestFile>\\n <IsVpcTest>false</IsVpcTest>\\n <Duration>600</Duration>\\n <DnsCacheConfig>\\n <ClearCacheEachIteration>false</ClearCacheEachIteration>\\n <DnsServers>[\\"8.8.8.8\\"]</DnsServers>\\n </DnsCacheConfig>\\n <Concurrency>1000</Concurrency>\\n <AgentCount>2</AgentCount>\\n <RampUp>100</RampUp>\\n <Steps>3</Steps>\\n <RegionId>cn-beijing</RegionId>\\n <VpcId>vpc-2ze2sahjdgahsebjkqhf4pyj</VpcId>\\n <SecurityGroupId>sg-2zeid0dd7bhahsgdahspaly</SecurityGroupId>\\n <VSwitchId>vsw-2zehsgdhsahw1r</VSwitchId>\\n <SyncTimerType>GLOBAL</SyncTimerType>\\n <ConstantThroughputTimerType>STAND_ALONE</ConstantThroughputTimerType>\\n </Scene>\\n <Code>200</Code>\\n <Success>true</Success>\\n</GetOpenJMeterSceneResponse>","errorExample":""}]',
'title' => '场景详情',
'changeSet' => [
['createdAt' => '2024-01-23T11:52:16.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2021-12-01T13:24:31.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更、响应参数发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetOpenJMeterScene'],
],
],
'ramActions' => [],
],
'GetPtsDebugSampleLogs' => [
'summary' => '查询PTS场景调试任务的采样日志。',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'PlanId',
'in' => 'query',
'schema' => ['description' => '调试任务ID', 'type' => 'string', 'required' => false, 'example' => ' NJJBH8B'],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '每页显示记录条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '响应内容',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'SamplingLogs' => [
'title' => 'samplingLogs',
'description' => '采样日志',
'type' => 'array',
'items' => [
'description' => '采样日志',
'type' => 'object',
'properties' => [
'HttpRequestMethod' => ['title' => 'httpRequestMethod', 'description' => '请求方法', 'type' => 'string', 'example' => 'GET'],
'HttpResponseStatus' => ['title' => 'httpResponseStatus', 'description' => '响应状态码', 'type' => 'string', 'example' => '200'],
'Timestamp' => ['title' => 'timestamp', 'description' => '时间戳, ms', 'type' => 'integer', 'format' => 'int64', 'example' => '1650253024471'],
'ExportConfig' => ['title' => 'exportConfig', 'description' => '出参设置', 'type' => 'string', 'example' => '{\\"skuId\\":\\"{R:json@$.page.list[0].skuId}\\"}'],
'HttpResponseFailMsg' => ['title' => 'httpResponseFailMsg', 'description' => '响应错误信息', 'type' => 'string'],
'CheckResult' => ['title' => 'checkResult', 'description' => '断言检查结果', 'type' => 'string', 'example' => '[{"checkPointType":"StatusCode","checker":{"expect":"200","operate":"eq","parsedExpectValue":"200","realValue":"200"},"hit":true,"point":"状态码"}]'],
'HttpResponseBody' => ['title' => 'httpResponseBody', 'description' => '响应体', 'type' => 'string', 'example' => '{"timestamp":1679903049155,"status":404,"error":"Not Found","message":"No message available","path":"/"}'],
'ChainId' => ['title' => 'chainId', 'description' => '链路ID', 'type' => 'string', 'example' => '65354719'],
'HttpRequestHeaders' => ['title' => 'httpRequestHeaders', 'description' => '请求头', 'type' => 'string', 'example' => '[{"name":"v2","sensitive":false,"value":"1"},{"name":"x-pts-test","sensitive":false,"value":"2"}]'],
'Rt' => ['title' => 'rt', 'description' => '响应时间, ms', 'type' => 'string', 'example' => '230'],
'HttpResponseHeaders' => ['title' => 'httpResponseHeaders', 'description' => '响应头', 'type' => 'string', 'example' => '[{"valuePos":18,"name":"transfer-encoding","buffer":{"empty":false,"full":false},"sensitive":false,"value":"chunked"},{"valuePos":13,"name":"Content-Type","buffer":{"empty":false,"full":false},"sensitive":false,"value":"application/json;charset=UTF-8"},{"valuePos":5,"name":"Date","buffer":{"empty":false,"full":false},"sensitive":false,"value":"Mon, 27 Mar 2023 07:44:08 GMT"}]'],
'HttpStartTime' => ['title' => 'httpStartTime', 'description' => '请求开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '12'],
'ExportContent' => ['title' => 'exportContent', 'description' => '导出参数内容', 'type' => 'string', 'example' => '{"skuId":"1"}'],
'ImportContent' => ['title' => 'importContent', 'description' => '参数导入内容', 'type' => 'string'],
'HttpTiming' => ['title' => 'httpTiming', 'description' => 'HTTP用时瀑布流', 'type' => 'string', 'example' => '{"traceId":"0:1:10a94f66pts-2069351-allsparktask","requests":[{"lease":{"conn":{"duration":-1,"finish":-1,"operation":"conn","start":-1},"dns":{"duration":-1,"finish":-1,"operation":"dns","start":-1},"duration":-1,"finish":-1,"operation":"lease","start":32277914755},"recv":{"duration":225975,"finish":32283700284,"message":"","operation":"recv","start":32283474309},"sent":{"duration":594179,"finish":32278776504,"message":"","operation":"sent","start":32278182325},"tag":"GET http://tomcodemall.com:30080/api/product/skuinfo/list?key=2&vv=4&t4=%EF%BB%BF101"}],"message":""}'],
'HttpRequestBody' => ['title' => 'httpRequestBody', 'description' => '请求体', 'type' => 'string', 'example' => '{"loginacct":"acce"}'],
'NodeId' => ['title' => 'nodeId', 'description' => '节点ID', 'type' => 'string', 'example' => '1345531'],
'HttpRequestUrl' => ['title' => 'httpRequestUrl', 'description' => '请求URL', 'type' => 'string', 'example' => 'http://www.example.com'],
'ChainName' => ['description' => '链路名称', 'type' => 'string', 'example' => 'Serial chain'],
],
],
],
'PageNumber' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '当前分页包含的条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'TotalCount' => ['description' => '总条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功。'."\n"
.'- false:失败。', 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'GetPtsDebugSampleLogsFail', 'errorMessage' => 'planId not exist', 'description' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"SamplingLogs\\": [\\n {\\n \\"HttpRequestMethod\\": \\"GET\\",\\n \\"HttpResponseStatus\\": \\"200\\",\\n \\"Timestamp\\": 1650253024471,\\n \\"ExportConfig\\": \\"{\\\\\\\\\\\\\\"skuId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"{R:json@$.page.list[0].skuId}\\\\\\\\\\\\\\"}\\",\\n \\"HttpResponseFailMsg\\": \\"\\",\\n \\"CheckResult\\": \\"[{\\\\\\"checkPointType\\\\\\":\\\\\\"StatusCode\\\\\\",\\\\\\"checker\\\\\\":{\\\\\\"expect\\\\\\":\\\\\\"200\\\\\\",\\\\\\"operate\\\\\\":\\\\\\"eq\\\\\\",\\\\\\"parsedExpectValue\\\\\\":\\\\\\"200\\\\\\",\\\\\\"realValue\\\\\\":\\\\\\"200\\\\\\"},\\\\\\"hit\\\\\\":true,\\\\\\"point\\\\\\":\\\\\\"状态码\\\\\\"}]\\",\\n \\"HttpResponseBody\\": \\"{\\\\\\"timestamp\\\\\\":1679903049155,\\\\\\"status\\\\\\":404,\\\\\\"error\\\\\\":\\\\\\"Not Found\\\\\\",\\\\\\"message\\\\\\":\\\\\\"No message available\\\\\\",\\\\\\"path\\\\\\":\\\\\\"/\\\\\\"}\\",\\n \\"ChainId\\": \\"65354719\\",\\n \\"HttpRequestHeaders\\": \\"[{\\\\\\"name\\\\\\":\\\\\\"v2\\\\\\",\\\\\\"sensitive\\\\\\":false,\\\\\\"value\\\\\\":\\\\\\"1\\\\\\"},{\\\\\\"name\\\\\\":\\\\\\"x-pts-test\\\\\\",\\\\\\"sensitive\\\\\\":false,\\\\\\"value\\\\\\":\\\\\\"2\\\\\\"}]\\",\\n \\"Rt\\": \\"230\\",\\n \\"HttpResponseHeaders\\": \\"[{\\\\\\"valuePos\\\\\\":18,\\\\\\"name\\\\\\":\\\\\\"transfer-encoding\\\\\\",\\\\\\"buffer\\\\\\":{\\\\\\"empty\\\\\\":false,\\\\\\"full\\\\\\":false},\\\\\\"sensitive\\\\\\":false,\\\\\\"value\\\\\\":\\\\\\"chunked\\\\\\"},{\\\\\\"valuePos\\\\\\":13,\\\\\\"name\\\\\\":\\\\\\"Content-Type\\\\\\",\\\\\\"buffer\\\\\\":{\\\\\\"empty\\\\\\":false,\\\\\\"full\\\\\\":false},\\\\\\"sensitive\\\\\\":false,\\\\\\"value\\\\\\":\\\\\\"application/json;charset=UTF-8\\\\\\"},{\\\\\\"valuePos\\\\\\":5,\\\\\\"name\\\\\\":\\\\\\"Date\\\\\\",\\\\\\"buffer\\\\\\":{\\\\\\"empty\\\\\\":false,\\\\\\"full\\\\\\":false},\\\\\\"sensitive\\\\\\":false,\\\\\\"value\\\\\\":\\\\\\"Mon, 27 Mar 2023 07:44:08 GMT\\\\\\"}]\\",\\n \\"HttpStartTime\\": 12,\\n \\"ExportContent\\": \\"{\\\\\\"skuId\\\\\\":\\\\\\"1\\\\\\"}\\",\\n \\"ImportContent\\": \\"\\",\\n \\"HttpTiming\\": \\"{\\\\\\"traceId\\\\\\":\\\\\\"0:1:10a94f66pts-2069351-allsparktask\\\\\\",\\\\\\"requests\\\\\\":[{\\\\\\"lease\\\\\\":{\\\\\\"conn\\\\\\":{\\\\\\"duration\\\\\\":-1,\\\\\\"finish\\\\\\":-1,\\\\\\"operation\\\\\\":\\\\\\"conn\\\\\\",\\\\\\"start\\\\\\":-1},\\\\\\"dns\\\\\\":{\\\\\\"duration\\\\\\":-1,\\\\\\"finish\\\\\\":-1,\\\\\\"operation\\\\\\":\\\\\\"dns\\\\\\",\\\\\\"start\\\\\\":-1},\\\\\\"duration\\\\\\":-1,\\\\\\"finish\\\\\\":-1,\\\\\\"operation\\\\\\":\\\\\\"lease\\\\\\",\\\\\\"start\\\\\\":32277914755},\\\\\\"recv\\\\\\":{\\\\\\"duration\\\\\\":225975,\\\\\\"finish\\\\\\":32283700284,\\\\\\"message\\\\\\":\\\\\\"\\\\\\",\\\\\\"operation\\\\\\":\\\\\\"recv\\\\\\",\\\\\\"start\\\\\\":32283474309},\\\\\\"sent\\\\\\":{\\\\\\"duration\\\\\\":594179,\\\\\\"finish\\\\\\":32278776504,\\\\\\"message\\\\\\":\\\\\\"\\\\\\",\\\\\\"operation\\\\\\":\\\\\\"sent\\\\\\",\\\\\\"start\\\\\\":32278182325},\\\\\\"tag\\\\\\":\\\\\\"GET http://tomcodemall.com:30080/api/product/skuinfo/list?key=2&vv=4&t4=%EF%BB%BF101\\\\\\"}],\\\\\\"message\\\\\\":\\\\\\"\\\\\\"}\\",\\n \\"HttpRequestBody\\": \\"{\\\\\\"loginacct\\\\\\":\\\\\\"acce\\\\\\"}\\",\\n \\"NodeId\\": \\"1345531\\",\\n \\"HttpRequestUrl\\": \\"http://www.example.com\\",\\n \\"ChainName\\": \\"Serial chain\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100,\\n \\"Success\\": true,\\n \\"Code\\": \\"\\",\\n \\"Message\\": \\"\\"\\n}","type":"json"}]',
'title' => '获取PTS场景调试日志',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsDebugSampleLogs'],
],
],
'ramActions' => [],
],
'GetPtsReportDetails' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID,创建场景后系统生成的唯一表示。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'G5HCVS'],
],
[
'name' => 'PlanId',
'in' => 'query',
'schema' => ['description' => '每次启动场景生成的任务ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'OH5HA3VB'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'DC4E3177-6745-4925-B423-4E89VV34221A'],
'ReportOverView' => [
'description' => '报告概要信息',
'type' => 'object',
'properties' => [
'ReportName' => ['description' => '报告名', 'type' => 'string', 'example' => 'PTS-TEST'],
'EndTime' => ['description' => '压测结束时间', 'type' => 'string', 'example' => '2024-09-20 10:41:33'],
'StartTime' => ['description' => '开始时间', 'type' => 'string', 'example' => '2024-09-20 10:39:33'],
'AgentCount' => ['description' => '施压机数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ReportId' => ['description' => '报告ID', 'type' => 'string', 'example' => 'GHB56VD'],
'Vum' => ['description' => '消耗的VUM', 'type' => 'integer', 'format' => 'int64', 'example' => '1012'],
],
],
'SceneMetrics' => [
'description' => '场景维度的指标信息',
'type' => 'object',
'properties' => [
'FailCountBiz' => ['description' => '全场景业务失败数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'AllCount' => ['description' => '全场景总请求数', 'type' => 'integer', 'format' => 'int64', 'example' => '11872'],
'SuccessRateBiz' => ['description' => '全场景业务成功率', 'type' => 'number', 'format' => 'float', 'example' => '0'],
'AvgRt' => ['description' => '全场景平均RT', 'type' => 'number', 'format' => 'float', 'example' => '170.49'],
'FailCountReq' => ['description' => '全场景请求失败数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'AvgTps' => ['description' => '全场景平均TPS', 'type' => 'number', 'format' => 'float', 'example' => '100.61'],
'Seg99Rt' => ['description' => '99分位RT', 'type' => 'number', 'format' => 'float', 'example' => '284'],
'SuccessRateReq' => ['description' => '全场景请求成功率', 'type' => 'number', 'format' => 'float', 'example' => '1'],
'Seg90Rt' => ['description' => '90分位RT', 'type' => 'number', 'format' => 'float', 'example' => '170'],
],
],
'ApiMetricsList' => [
'description' => 'API维度指标信息',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FailCountBiz' => ['description' => '业务失败数。定义了检查点时,不符合条件为失败。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'Seg75Rt' => ['description' => '75分位RT', 'type' => 'number', 'format' => 'float', 'example' => '169'],
'AllCount' => ['description' => '总请求个数', 'type' => 'integer', 'format' => 'int64', 'example' => '11872'],
'AvgTps' => ['description' => '平均TPS', 'type' => 'number', 'format' => 'float', 'example' => '100.61'],
'MinRt' => ['description' => '最小RT,单位ms。', 'type' => 'number', 'format' => 'float', 'example' => '162'],
'Seg99Rt' => ['description' => '99分位RT', 'type' => 'number', 'format' => 'float', 'example' => '284'],
'Seg50Rt' => ['description' => '50分位RT', 'type' => 'number', 'format' => 'float', 'example' => '168'],
'MaxRt' => ['description' => '最大RT,单位ms。', 'type' => 'number', 'format' => 'float', 'example' => '600'],
'Seg90Rt' => ['description' => '90分位RT', 'type' => 'number', 'format' => 'float', 'example' => '170'],
'SuccessRateBiz' => ['description' => '业务成功率。等于业务成功数/总请求数。', 'type' => 'number', 'format' => 'float', 'example' => '0'],
'AvgRt' => ['description' => '平均RT,单位ms。', 'type' => 'number', 'format' => 'float', 'example' => '170.49'],
'FailCountReq' => ['description' => '请求失败数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'SuccessRateReq' => ['description' => '请求成功率。等于请求成功数/总请求数。', 'type' => 'number', 'format' => 'float', 'example' => '1'],
'ApiName' => ['description' => 'API名称', 'type' => 'string', 'example' => 'Test-API'],
],
],
],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'SceneSnapShot' => [
'description' => '场景快照信息',
'type' => 'object',
'properties' => [
'Status' => ['description' => '场景状态', 'type' => 'string', 'example' => 'STOPPED'],
'LoadConfig' => [
'description' => '施压配置信息',
'type' => 'object',
'properties' => [
'ApiLoadConfigList' => [
'description' => 'API的RPS起始信息',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RpsBegin' => ['description' => '起始RPS', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'RpsLimit' => ['description' => '最大RPS', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
],
],
],
'MaxRunningTime' => ['description' => '运行时长,单位分钟。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'RelationLoadConfigList' => [
'description' => '链路起始和最大并发配置',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ConcurrencyBegin' => ['description' => '起始并发', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'ConcurrencyLimit' => ['description' => '最大并发', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
],
],
],
'Configuration' => [
'description' => '全场景的并发或RPS限制信息',
'type' => 'object',
'properties' => [
'AllRpsBegin' => ['description' => '全场景起始RPS', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'AllConcurrencyBegin' => ['description' => '全场景起始并发', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'AllConcurrencyLimit' => ['description' => '全场景最大并发', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
'AllRpsLimit' => ['description' => '全场景最大RPS', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
],
],
'AgentCount' => ['description' => '施压机数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'TestMode' => ['description' => '施压模式', 'type' => 'string', 'example' => 'TPS'],
],
],
'FileParameterList' => [
'description' => '场景使用的文件信息',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FileOssAddress' => ['description' => '文件的OSS地址', 'type' => 'string', 'example' => 'https://test-bucket.oss-cn-shanghai.aliyuncs.com/test.csv'],
'FileName' => ['description' => '文件名', 'type' => 'string', 'example' => 'test.csv'],
],
],
],
'ModifiedTime' => ['description' => '修改时间', 'type' => 'string', 'example' => '2020-10-10 10:10:10'],
'AdvanceSetting' => [
'description' => '场景高级设置',
'type' => 'object',
'properties' => [
'LogRate' => ['description' => '日志采样率', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'DomainBindingList' => [
'description' => '域名和IP的绑定关系',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Domain' => ['description' => '域名', 'type' => 'string', 'example' => 'www.example.com'],
'Ips' => [
'description' => '域名绑定的IP',
'type' => 'array',
'items' => ['description' => '域名绑定的IP', 'type' => 'string', 'example' => '[192.168.0.1]'],
],
],
],
],
'ConnectionTimeoutInSecond' => ['description' => '全场景超时时间', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'SuccessCode' => ['description' => '自定义成功状态码', 'type' => 'string'],
],
],
'CreateTime' => ['description' => '创建时间', 'type' => 'string', 'example' => '2024-09-20 09:28:10'],
'RelationList' => [
'description' => '链路信息',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RelationName' => ['description' => '链路名', 'type' => 'string', 'example' => 'Test-session-1'],
'FileParameterExplainList' => [
'description' => '链路中使用到的文件参数说明',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CycleOnce' => ['description' => '是否只循环一次', 'type' => 'boolean', 'example' => 'false'],
'FileParamName' => ['description' => '文件中的参数名', 'type' => 'string', 'example' => 'username'],
'FileName' => ['description' => '文件名', 'type' => 'string', 'example' => 'test.csv'],
'BaseFile' => ['description' => '是否作为基准列', 'type' => 'boolean', 'example' => 'true'],
],
],
],
'ApiList' => [
'description' => 'API信息',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ApiId' => ['description' => 'API ID', 'type' => 'string', 'example' => 'MNB45'],
'CheckPointList' => [
'description' => 'API的所有检查点',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CheckType' => ['description' => '检查类型', 'type' => 'string', 'example' => 'EXPORTED_PARAM'],
'Operator' => ['description' => '比较符号', 'type' => 'string', 'example' => 'ctn'],
'ExpectValue' => ['description' => '期望值', 'type' => 'string', 'example' => '111'],
'CheckPoint' => ['description' => '检查点', 'type' => 'string', 'example' => 'userId'],
],
],
],
'HeaderList' => [
'description' => '压测URL的Header信息',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'HeaderValue' => ['description' => '参数值', 'type' => 'string', 'example' => 'PTS'],
'HeaderName' => ['description' => '参数名', 'type' => 'string', 'example' => 'User-Agent'],
],
],
],
'TimeoutInSecond' => ['description' => '超时时间', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'ExportList' => [
'description' => '导出参数列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ExportType' => ['description' => '导出参数来源', 'type' => 'string', 'example' => 'BODY_JSON'],
'ExportValue' => ['description' => '导出参数解析表达式', 'type' => 'string', 'example' => 'data.userId'],
'ExportName' => ['description' => '导出参数名', 'type' => 'string', 'example' => 'userId'],
'Count' => ['description' => '导出参数匹配项', 'type' => 'string', 'example' => '1'],
],
],
],
'Url' => ['description' => '压测的URL', 'type' => 'string', 'example' => 'http://www.example.com/'],
'Method' => ['description' => '请求方法', 'type' => 'string', 'example' => 'GET'],
'Body' => [
'description' => '请求的Body信息',
'type' => 'object',
'properties' => [
'BodyValue' => ['description' => 'body值', 'type' => 'string', 'example' => '{key:value}'],
'ContentType' => ['description' => 'body类型', 'type' => 'string', 'example' => 'application/x-www-form-urlencoded'],
],
],
'RedirectCountLimit' => ['description' => '重定向次数', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'ApiName' => ['description' => 'API名称', 'type' => 'string', 'example' => 'Test-API'],
],
],
],
'RelationId' => ['description' => '链路ID', 'type' => 'string', 'example' => 'HGBN4D'],
],
],
],
'SceneName' => ['description' => '场景名', 'type' => 'string', 'example' => 'PTS-TEST'],
'SceneId' => ['description' => '场景ID', 'type' => 'string', 'example' => '7HBNS3'],
'GlobalParameterList' => [
'description' => '全局变量',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ParamName' => ['description' => '参数名', 'type' => 'string', 'example' => 'username'],
'ParamValue' => ['description' => '参数值', 'type' => 'string', 'example' => 'user01'],
],
],
],
],
],
'Success' => ['description' => '是否成功'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'GetPtsReportDetailsFail', 'errorMessage' => 'Report does not exist', 'description' => ''],
],
],
'title' => '查询报告',
'summary' => '获取场景压测后的报告详情。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsReportDetails'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:GetPtsReportDetails',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"DC4E3177-6745-4925-B423-4E89VV34221A\\",\\n \\"ReportOverView\\": {\\n \\"ReportName\\": \\"PTS-TEST\\",\\n \\"EndTime\\": \\"2024-09-20 10:41:33\\",\\n \\"StartTime\\": \\"2024-09-20 10:39:33\\",\\n \\"AgentCount\\": 1,\\n \\"ReportId\\": \\"GHB56VD\\",\\n \\"Vum\\": 1012\\n },\\n \\"SceneMetrics\\": {\\n \\"FailCountBiz\\": 0,\\n \\"AllCount\\": 11872,\\n \\"SuccessRateBiz\\": 0,\\n \\"AvgRt\\": 170.49,\\n \\"FailCountReq\\": 0,\\n \\"AvgTps\\": 100.61,\\n \\"Seg99Rt\\": 284,\\n \\"SuccessRateReq\\": 1,\\n \\"Seg90Rt\\": 170\\n },\\n \\"ApiMetricsList\\": [\\n {\\n \\"FailCountBiz\\": 0,\\n \\"Seg75Rt\\": 169,\\n \\"AllCount\\": 11872,\\n \\"AvgTps\\": 100.61,\\n \\"MinRt\\": 162,\\n \\"Seg99Rt\\": 284,\\n \\"Seg50Rt\\": 168,\\n \\"MaxRt\\": 600,\\n \\"Seg90Rt\\": 170,\\n \\"SuccessRateBiz\\": 0,\\n \\"AvgRt\\": 170.49,\\n \\"FailCountReq\\": 0,\\n \\"SuccessRateReq\\": 1,\\n \\"ApiName\\": \\"Test-API\\"\\n }\\n ],\\n \\"HttpStatusCode\\": 0,\\n \\"Code\\": \\"\\",\\n \\"SceneSnapShot\\": {\\n \\"Status\\": \\"STOPPED\\",\\n \\"LoadConfig\\": {\\n \\"ApiLoadConfigList\\": [\\n {\\n \\"RpsBegin\\": 10,\\n \\"RpsLimit\\": 10\\n }\\n ],\\n \\"MaxRunningTime\\": 2,\\n \\"RelationLoadConfigList\\": [\\n {\\n \\"ConcurrencyBegin\\": 10,\\n \\"ConcurrencyLimit\\": 20\\n }\\n ],\\n \\"Configuration\\": {\\n \\"AllRpsBegin\\": 100,\\n \\"AllConcurrencyBegin\\": 0,\\n \\"AllConcurrencyLimit\\": 500,\\n \\"AllRpsLimit\\": 1000\\n },\\n \\"AgentCount\\": 1,\\n \\"TestMode\\": \\"TPS\\"\\n },\\n \\"FileParameterList\\": [\\n {\\n \\"FileOssAddress\\": \\"https://test-bucket.oss-cn-shanghai.aliyuncs.com/test.csv\\",\\n \\"FileName\\": \\"test.csv\\"\\n }\\n ],\\n \\"ModifiedTime\\": \\"2020-10-10 10:10:10\\",\\n \\"AdvanceSetting\\": {\\n \\"LogRate\\": 1,\\n \\"DomainBindingList\\": [\\n {\\n \\"Domain\\": \\"www.example.com\\",\\n \\"Ips\\": [\\n \\"[192.168.0.1]\\"\\n ]\\n }\\n ],\\n \\"ConnectionTimeoutInSecond\\": 5,\\n \\"SuccessCode\\": \\"\\"\\n },\\n \\"CreateTime\\": \\"2024-09-20 09:28:10\\",\\n \\"RelationList\\": [\\n {\\n \\"RelationName\\": \\"Test-session-1\\",\\n \\"FileParameterExplainList\\": [\\n {\\n \\"CycleOnce\\": false,\\n \\"FileParamName\\": \\"username\\",\\n \\"FileName\\": \\"test.csv\\",\\n \\"BaseFile\\": true\\n }\\n ],\\n \\"ApiList\\": [\\n {\\n \\"ApiId\\": \\"MNB45\\",\\n \\"CheckPointList\\": [\\n {\\n \\"CheckType\\": \\"EXPORTED_PARAM\\",\\n \\"Operator\\": \\"ctn\\",\\n \\"ExpectValue\\": \\"111\\",\\n \\"CheckPoint\\": \\"userId\\"\\n }\\n ],\\n \\"HeaderList\\": [\\n {\\n \\"HeaderValue\\": \\"PTS\\",\\n \\"HeaderName\\": \\"User-Agent\\"\\n }\\n ],\\n \\"TimeoutInSecond\\": 5,\\n \\"ExportList\\": [\\n {\\n \\"ExportType\\": \\"BODY_JSON\\",\\n \\"ExportValue\\": \\"data.userId\\",\\n \\"ExportName\\": \\"userId\\",\\n \\"Count\\": \\"1\\"\\n }\\n ],\\n \\"Url\\": \\"http://www.example.com/\\",\\n \\"Method\\": \\"GET\\",\\n \\"Body\\": {\\n \\"BodyValue\\": \\"{key:value}\\",\\n \\"ContentType\\": \\"application/x-www-form-urlencoded\\"\\n },\\n \\"RedirectCountLimit\\": 5,\\n \\"ApiName\\": \\"Test-API\\"\\n }\\n ],\\n \\"RelationId\\": \\"HGBN4D\\"\\n }\\n ],\\n \\"SceneName\\": \\"PTS-TEST\\",\\n \\"SceneId\\": \\"7HBNS3\\",\\n \\"GlobalParameterList\\": [\\n {\\n \\"ParamName\\": \\"username\\",\\n \\"ParamValue\\": \\"user01\\"\\n }\\n ]\\n },\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<GetPtsReportDetailsResponse>\\n <Message/>\\n <RequestId>DC4E3177-6745-4925-B423-4E89VV34221A</RequestId>\\n <ReportOverView>\\n <ReportName>下单场景</ReportName>\\n <AgentCount>1</AgentCount>\\n <EndTime>1988203944</EndTime>\\n <StartTime>1988202944</StartTime>\\n <ReportId>GHB56VD</ReportId>\\n <Vum>100</Vum>\\n </ReportOverView>\\n <SceneMetrics>\\n <AllCount>100000</AllCount>\\n <SuccessRateBiz>0.97</SuccessRateBiz>\\n <Seg99Rt>56</Seg99Rt>\\n <FailCountBiz>35</FailCountBiz>\\n <SuccessRateReq>0.99</SuccessRateReq>\\n <Seg90Rt>35</Seg90Rt>\\n <FailCountReq>34</FailCountReq>\\n <AvgTps>78</AvgTps>\\n <AvgRt>23</AvgRt>\\n </SceneMetrics>\\n <ApiMetricsList>\\n <Seg50Rt>39</Seg50Rt>\\n <AllCount>1000</AllCount>\\n <SuccessRateBiz>0.98</SuccessRateBiz>\\n <Seg99Rt>35</Seg99Rt>\\n <FailCountBiz>30</FailCountBiz>\\n <Seg75Rt>26</Seg75Rt>\\n <SuccessRateReq>0.99</SuccessRateReq>\\n <MinRt>10</MinRt>\\n <Seg90Rt>23</Seg90Rt>\\n <FailCountReq>40</FailCountReq>\\n <MaxRt>50</MaxRt>\\n <AvgTps>55</AvgTps>\\n <AvgRt>34.5</AvgRt>\\n </ApiMetricsList>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <SceneSnapShot>\\n <Status>STOPPED</Status>\\n <SceneId>7HBNS3</SceneId>\\n <ModifiedTime>2020-10-10 10:10:10</ModifiedTime>\\n <SceneName>下单场景</SceneName>\\n <CreateTime>12684449000</CreateTime>\\n <RelationList>\\n <RelationId>HGBN4D</RelationId>\\n <RelationName>下单链路</RelationName>\\n <ApiList>\\n <ApiName>测试API</ApiName>\\n <RedirectCountLimit>5</RedirectCountLimit>\\n <Method>GET</Method>\\n <TimeoutInSecond>5</TimeoutInSecond>\\n <ApiId>MNB45</ApiId>\\n <Url>https://www.aliyundoc.com</Url>\\n <ExportList>\\n <ExportType>BODY_JSON</ExportType>\\n <ExportName>userId</ExportName>\\n <Count>1</Count>\\n <ExportValue>data.userId</ExportValue>\\n </ExportList>\\n <CheckPointList>\\n <Operator>ctn</Operator>\\n <ExpectValue>111</ExpectValue>\\n <CheckType>EXPORTED_PARAM</CheckType>\\n <CheckPoint>userId</CheckPoint>\\n </CheckPointList>\\n <HeaderList>\\n <HeaderValue>userName</HeaderValue>\\n <HeaderName>1111</HeaderName>\\n </HeaderList>\\n <Body>\\n <ContentType>application/x-www-form-urlencoded</ContentType>\\n <BodyValue>{key:value}</BodyValue>\\n </Body>\\n </ApiList>\\n <FileParameterExplainList>\\n <BaseFile>true</BaseFile>\\n <CycleOnce>true</CycleOnce>\\n <FileParamName>address,name</FileParamName>\\n <FileName>city.csv</FileName>\\n </FileParameterExplainList>\\n </RelationList>\\n <FileParameterList>\\n <FileName>city.csv</FileName>\\n <FileOssAddress>https://www.sss.ccv</FileOssAddress>\\n </FileParameterList>\\n <GlobalParameterList>\\n <ParamValue>lisi</ParamValue>\\n <ParamName>userName</ParamName>\\n </GlobalParameterList>\\n <LoadConfig>\\n <AgentCount>1</AgentCount>\\n <TestMode>tps_mode</TestMode>\\n <MaxRunningTime>2</MaxRunningTime>\\n <ApiLoadConfigList>\\n <RpsLimit>10</RpsLimit>\\n <RpsBegin>10</RpsBegin>\\n </ApiLoadConfigList>\\n <RelationLoadConfigList>\\n <ConcurrencyLimit>20</ConcurrencyLimit>\\n <ConcurrencyBegin>10</ConcurrencyBegin>\\n </RelationLoadConfigList>\\n <Configuration>\\n <AllRpsBegin>80</AllRpsBegin>\\n <AllRpsLimit>160</AllRpsLimit>\\n <AllConcurrencyBegin>10</AllConcurrencyBegin>\\n <AllConcurrencyLimit>10</AllConcurrencyLimit>\\n </Configuration>\\n </LoadConfig>\\n <AdvanceSetting>\\n <LogRate>1</LogRate>\\n <ConnectionTimeoutInSecond>5</ConnectionTimeoutInSecond>\\n <SuccessCode>429,404</SuccessCode>\\n <DomainBindingList>\\n <Domain>www.aliyundoc.com</Domain>\\n <Ips>[1.1.1.1]</Ips>\\n </DomainBindingList>\\n </AdvanceSetting>\\n </SceneSnapShot>\\n <Success>true</Success>\\n</GetPtsReportDetailsResponse>","errorExample":""}]',
],
'GetPtsReportsBySceneId' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'NGBCD4K'],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '分页操作中当前显示第几页', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '每页显示报告条数,取值范围5~100。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '100', 'minimum' => '5', 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若请求成功则不返回该字段。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'DC4E3177-6745-4925-B423-4E89VV34221A'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若请求成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'ReportOverViewList' => [
'description' => '报告概览信息',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ReportName' => ['description' => '报告名称', 'type' => 'string', 'example' => 'PTS-test-20240920094710'],
'EndTime' => ['description' => '压测结束时间', 'type' => 'string', 'example' => '2024-09-20 09:49:11'],
'StartTime' => ['description' => '压测开始时间', 'type' => 'string', 'example' => '2024-09-20 09:47:11'],
'AgentCount' => ['description' => '施压机数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ReportId' => ['description' => '报告ID', 'type' => 'string', 'example' => 'NGGB5FV'],
'Vum' => ['description' => '消耗VUM', 'type' => 'integer', 'format' => 'int64', 'example' => '1007'],
],
],
],
'Code' => ['description' => '系统状态码,若请求成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'GetPtsReportsBySceneIdFail', 'errorMessage' => 'The scene has not started', 'description' => ''],
],
],
'title' => '查询场景关联的所有报告',
'summary' => '场景压测产生多个场景,可批量查询关联的所有报告。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsReportsBySceneId'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:GetPtsReportsBySceneId',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"DC4E3177-6745-4925-B423-4E89VV34221A\\",\\n \\"HttpStatusCode\\": 200,\\n \\"ReportOverViewList\\": [\\n {\\n \\"ReportName\\": \\"PTS-test-20240920094710\\",\\n \\"EndTime\\": \\"2024-09-20 09:49:11\\",\\n \\"StartTime\\": \\"2024-09-20 09:47:11\\",\\n \\"AgentCount\\": 1,\\n \\"ReportId\\": \\"NGGB5FV\\",\\n \\"Vum\\": 1007\\n }\\n ],\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<GetPtsReportsBySceneIdResponse>\\n <Message/>\\n <RequestId>DC4E3177-6745-4925-B423-4E89VV34221A</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <ReportOverViewList>\\n <ReportName>下单场景</ReportName>\\n <AgentCount>1</AgentCount>\\n <EndTime>2021-02-26 16:38:30</EndTime>\\n <StartTime>2021-02-26 16:28:30</StartTime>\\n <ReportId>NGGB5FV</ReportId>\\n <Vum>100</Vum>\\n </ReportOverViewList>\\n <Code>200</Code>\\n <Success>true</Success>\\n</GetPtsReportsBySceneIdResponse>","errorExample":""}]',
],
'GetPtsScene' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'NKJBSH'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则为空。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'DC4E3177-6745-4925-B423-4E89VV34221A'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Scene' => [
'description' => '场景结构。',
'type' => 'object',
'properties' => [
'Status' => ['description' => '场景状态。', 'type' => 'string', 'example' => 'Running'],
'LoadConfig' => [
'description' => '施压配置信息。',
'type' => 'object',
'properties' => [
'ApiLoadConfigList' => [
'description' => 'API施压配置信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RpsBegin' => ['description' => '起始RPS。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'RpsLimit' => ['description' => '最大RPS。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'ApiId' => ['description' => 'API ID。可以根据此ID在Relation中找到对应的API信息。', 'type' => 'string', 'example' => 'GBFDCV8'],
],
'description' => '',
],
],
'MaxRunningTime' => ['description' => '运行时长,单位分钟。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'RelationLoadConfigList' => [
'description' => '链路施压配置信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ConcurrencyBegin' => ['description' => '起始并发。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'ConcurrencyLimit' => ['description' => '最大并发。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'RelationId' => ['description' => '链路ID。', 'type' => 'string', 'example' => 'HNBGS7M'],
],
'description' => '',
],
],
'Configuration' => [
'description' => '全场景并发或RPS配置信息。',
'type' => 'object',
'properties' => [
'AllRpsBegin' => ['description' => '起始RPS。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'AllConcurrencyBegin' => ['description' => '起始并发。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'AllConcurrencyLimit' => ['description' => '最大并发。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'AllRpsLimit' => ['description' => '最大RPS。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
],
],
'AgentCount' => ['description' => '施压机器。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'TestMode' => ['description' => ' 施压模式。TPS表示施压模式为RPS模式。'."\n"
."\n"
.'>该返回结果为CONCURRENCY/TPS。', 'type' => 'string', 'example' => 'TPS'],
'AutoStep' => ['description' => '是否为自动递增模式。', 'type' => 'boolean', 'example' => 'false'],
'Increment' => ['description' => '递增百分比,取值范围[10,100],且是整十倍。只有在并发模式且是自动递增模式下有效,即 testMode=concurrency_mode 且 autoStep=true 时。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'KeepTime' => ['description' => '单量级持续时长,单位分钟,一定是小于施压时长 maxRunningTime。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'VpcLoadConfig' => [
'description' => 'VPC配置,VPC压测模式下生效。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => '专有网络ID。', 'type' => 'string', 'example' => 'vpc-akjhsdajgjsfggahjkga'],
'VSwitchId' => ['description' => '虚拟交换机ID。', 'type' => 'string', 'example' => 'vsw-skjfhlahsljkhsfalkjdoiw'],
'SecurityGroupId' => ['description' => '安全组 ID。', 'type' => 'string', 'example' => 'sg-jkasgfieiajidsjakjscb'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'],
],
],
],
],
'FileParameterList' => [
'description' => '文件参数。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FileOssAddress' => ['description' => '您自己的OSS文件地址,要求公网可访问。', 'type' => 'string', 'example' => 'https://test.oss-cn-shanghai.aliyuncs.com/json.jar'],
'FileName' => ['description' => '文件名。', 'type' => 'string', 'example' => 'city.csv'],
],
'description' => '',
],
],
'ModifiedTime' => ['description' => '最新修改时间。', 'type' => 'string', 'example' => '2021-03-26 15:30:30'],
'AdvanceSetting' => [
'description' => '高级设置。',
'type' => 'object',
'properties' => [
'LogRate' => ['description' => '日志采样率。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'DomainBindingList' => [
'description' => '域名和IP绑定关系。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Domain' => ['description' => '域名。', 'type' => 'string', 'example' => 'www.aliyundoc.com'],
'Ips' => [
'description' => '绑定IP。',
'type' => 'array',
'items' => ['description' => '绑定IP。', 'type' => 'string', 'example' => '[1.1.1.1]'],
],
],
'description' => '',
],
],
'ConnectionTimeoutInSecond' => ['description' => '场景超时时间,单位s。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'SuccessCode' => ['description' => '自定义成功状态码。', 'type' => 'string', 'example' => '429,304'],
],
],
'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2021-02-26 15:30:30'],
'RelationList' => [
'description' => '链路信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RelationName' => ['description' => '链路名。', 'type' => 'string', 'example' => 'Order chain'],
'FileParameterExplainList' => [
'description' => '文件参数说明。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CycleOnce' => ['description' => '是否循环一次。', 'type' => 'boolean', 'example' => 'true'],
'FileParamName' => ['description' => '文件中的参数名。', 'type' => 'string', 'example' => 'userName,age'],
'FileName' => ['description' => '文件名。', 'type' => 'string', 'example' => 'city.csv'],
'BaseFile' => ['description' => '是否作为基准列。', 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
],
'ApiList' => [
'description' => 'API信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ApiId' => ['description' => 'API ID。可以根据此ID在Relation中找到对应的API信息。', 'type' => 'string', 'example' => 'GBFDCV8'],
'CheckPointList' => [
'description' => '所有检查点。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CheckType' => ['description' => '检查类型。', 'type' => 'string', 'example' => 'EXPORTED_PARAM'],
'Operator' => ['description' => '比较符号。', 'type' => 'string', 'example' => 'ctn'],
'ExpectValue' => ['description' => '期望值。', 'type' => 'string', 'example' => '111'],
'CheckPoint' => ['description' => '检查点。', 'type' => 'string', 'example' => 'userId'],
],
'description' => '',
],
],
'HeaderList' => [
'description' => 'Header信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'HeaderValue' => ['description' => '参数值。', 'type' => 'string', 'example' => '1111'],
'HeaderName' => ['description' => '参数名。', 'type' => 'string', 'example' => 'userId'],
],
'description' => '',
],
],
'TimeoutInSecond' => ['description' => '超时时间,单位秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'ExportList' => [
'description' => '所有导出参数。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ExportType' => ['description' => '导出参数来源。', 'type' => 'string', 'example' => 'BODY_JSON'],
'ExportValue' => ['description' => '解释表达式。', 'type' => 'string', 'example' => 'username'],
'ExportName' => ['description' => '导出参数名。', 'type' => 'string', 'example' => 'data.username'],
'Count' => ['description' => '导出参数匹配项。', 'type' => 'string', 'example' => '0'],
],
'description' => '',
],
],
'Url' => ['description' => '请求URL。', 'type' => 'string', 'example' => 'https://www.aliyundoc.com'],
'Method' => ['description' => '请求方法。', 'type' => 'string', 'example' => 'GET'],
'Body' => [
'description' => 'Body内容。',
'type' => 'object',
'properties' => [
'BodyValue' => ['description' => 'Body值。', 'type' => 'string', 'example' => '{\\"key1\\":\\"111\\",\\"key2\\":\\"222\\"}'],
'ContentType' => ['description' => 'Body类型。', 'type' => 'string', 'example' => 'application/x-www-form-urlencoded'],
],
],
'RedirectCountLimit' => ['description' => '重定向次数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'ApiName' => ['description' => 'API名称。', 'type' => 'string', 'example' => 'Order'],
],
'description' => '',
],
],
'RelationId' => ['description' => '链路ID。', 'type' => 'string', 'example' => 'HNBGS7M'],
],
'description' => '',
],
],
'SceneName' => ['description' => '场景名。', 'type' => 'string', 'example' => 'Order scenario'],
'SceneId' => ['description' => '场景ID。', 'type' => 'string', 'example' => 'BGFJ7GV'],
'GlobalParameterList' => [
'description' => '全局参数。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ParamName' => ['description' => '参数名。', 'type' => 'string', 'example' => 'userName'],
'ParamValue' => ['description' => '参数值。', 'type' => 'string', 'example' => 'lisi'],
],
'description' => '',
],
],
'Headers' => [
'description' => '场景所设置的全局Header',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Name' => ['description' => 'Header的名称', 'type' => 'string', 'example' => 'key1'],
'Value' => ['description' => 'Header的值', 'type' => 'string', 'example' => 'value1'],
],
'description' => '',
],
],
],
],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
."\n"
.'- `true`:成功'."\n"
.'- `false`:失败', 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'GetPtsSceneFail', 'errorMessage' => 'The scene does not exit', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"DC4E3177-6745-4925-B423-4E89VV34221A\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Scene\\": {\\n \\"Status\\": \\"Running\\",\\n \\"LoadConfig\\": {\\n \\"ApiLoadConfigList\\": [\\n {\\n \\"RpsBegin\\": 10,\\n \\"RpsLimit\\": 20,\\n \\"ApiId\\": \\"GBFDCV8\\"\\n }\\n ],\\n \\"MaxRunningTime\\": 2,\\n \\"RelationLoadConfigList\\": [\\n {\\n \\"ConcurrencyBegin\\": 10,\\n \\"ConcurrencyLimit\\": 20,\\n \\"RelationId\\": \\"HNBGS7M\\"\\n }\\n ],\\n \\"Configuration\\": {\\n \\"AllRpsBegin\\": 100,\\n \\"AllConcurrencyBegin\\": 100,\\n \\"AllConcurrencyLimit\\": 200,\\n \\"AllRpsLimit\\": 200\\n },\\n \\"AgentCount\\": 1,\\n \\"TestMode\\": \\"TPS\\",\\n \\"AutoStep\\": false,\\n \\"Increment\\": 10,\\n \\"KeepTime\\": 2,\\n \\"VpcLoadConfig\\": {\\n \\"VpcId\\": \\"vpc-akjhsdajgjsfggahjkga\\",\\n \\"VSwitchId\\": \\"vsw-skjfhlahsljkhsfalkjdoiw\\",\\n \\"SecurityGroupId\\": \\"sg-jkasgfieiajidsjakjscb\\",\\n \\"RegionId\\": \\"cn-beijing\\"\\n }\\n },\\n \\"FileParameterList\\": [\\n {\\n \\"FileOssAddress\\": \\"https://test.oss-cn-shanghai.aliyuncs.com/json.jar\\",\\n \\"FileName\\": \\"city.csv\\"\\n }\\n ],\\n \\"ModifiedTime\\": \\"2021-03-26 15:30:30\\",\\n \\"AdvanceSetting\\": {\\n \\"LogRate\\": 1,\\n \\"DomainBindingList\\": [\\n {\\n \\"Domain\\": \\"www.aliyundoc.com\\",\\n \\"Ips\\": [\\n \\"[1.1.1.1]\\"\\n ]\\n }\\n ],\\n \\"ConnectionTimeoutInSecond\\": 5,\\n \\"SuccessCode\\": \\"429,304\\"\\n },\\n \\"CreateTime\\": \\"2021-02-26 15:30:30\\",\\n \\"RelationList\\": [\\n {\\n \\"RelationName\\": \\"Order chain\\",\\n \\"FileParameterExplainList\\": [\\n {\\n \\"CycleOnce\\": true,\\n \\"FileParamName\\": \\"userName,age\\",\\n \\"FileName\\": \\"city.csv\\",\\n \\"BaseFile\\": true\\n }\\n ],\\n \\"ApiList\\": [\\n {\\n \\"ApiId\\": \\"GBFDCV8\\",\\n \\"CheckPointList\\": [\\n {\\n \\"CheckType\\": \\"EXPORTED_PARAM\\",\\n \\"Operator\\": \\"ctn\\",\\n \\"ExpectValue\\": \\"111\\",\\n \\"CheckPoint\\": \\"userId\\"\\n }\\n ],\\n \\"HeaderList\\": [\\n {\\n \\"HeaderValue\\": \\"1111\\",\\n \\"HeaderName\\": \\"userId\\"\\n }\\n ],\\n \\"TimeoutInSecond\\": 5,\\n \\"ExportList\\": [\\n {\\n \\"ExportType\\": \\"BODY_JSON\\",\\n \\"ExportValue\\": \\"username\\",\\n \\"ExportName\\": \\"data.username\\",\\n \\"Count\\": \\"0\\"\\n }\\n ],\\n \\"Url\\": \\"https://www.aliyundoc.com\\",\\n \\"Method\\": \\"GET\\",\\n \\"Body\\": {\\n \\"BodyValue\\": \\"{\\\\\\\\\\\\\\"key1\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"111\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key2\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"222\\\\\\\\\\\\\\"}\\",\\n \\"ContentType\\": \\"application/x-www-form-urlencoded\\"\\n },\\n \\"RedirectCountLimit\\": 5,\\n \\"ApiName\\": \\"Order\\"\\n }\\n ],\\n \\"RelationId\\": \\"HNBGS7M\\"\\n }\\n ],\\n \\"SceneName\\": \\"Order scenario\\",\\n \\"SceneId\\": \\"BGFJ7GV\\",\\n \\"GlobalParameterList\\": [\\n {\\n \\"ParamName\\": \\"userName\\",\\n \\"ParamValue\\": \\"lisi\\"\\n }\\n ],\\n \\"Headers\\": [\\n {\\n \\"Name\\": \\"key1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ]\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<GetPtsSceneResponse>\\n <Message>空</Message>\\n <RequestId>DC4E3177-6745-4925-B423-4E89VV34221A</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Scene>\\n <Status>Running</Status>\\n <LoadConfig>\\n <ApiLoadConfigList>\\n <RpsBegin>10</RpsBegin>\\n <RpsLimit>20</RpsLimit>\\n <ApiId>GBFDCV8</ApiId>\\n </ApiLoadConfigList>\\n <MaxRunningTime>2</MaxRunningTime>\\n <RelationLoadConfigList>\\n <ConcurrencyBegin>10</ConcurrencyBegin>\\n <ConcurrencyLimit>20</ConcurrencyLimit>\\n <RelationId>HNBGS7M</RelationId>\\n </RelationLoadConfigList>\\n <Configuration>\\n <AllRpsBegin>100</AllRpsBegin>\\n <AllConcurrencyBegin>100</AllConcurrencyBegin>\\n <AllConcurrencyLimit>200</AllConcurrencyLimit>\\n <AllRpsLimit>200</AllRpsLimit>\\n </Configuration>\\n <AgentCount>1</AgentCount>\\n <TestMode>TPS</TestMode>\\n </LoadConfig>\\n <FileParameterList>\\n <FileOssAddress>https://oss.ccccc</FileOssAddress>\\n <FileName>city.csv</FileName>\\n </FileParameterList>\\n <ModifiedTime>2021-03-26 15:30:30</ModifiedTime>\\n <AdvanceSetting>\\n <LogRate>1</LogRate>\\n <DomainBindingList>\\n <Domain>www.aliyundoc.com</Domain>\\n <Ips>[1.1.1.1]</Ips>\\n </DomainBindingList>\\n <ConnectionTimeoutInSecond>5</ConnectionTimeoutInSecond>\\n <SuccessCode>429,304</SuccessCode>\\n </AdvanceSetting>\\n <CreateTime>2021-02-26 15:30:30</CreateTime>\\n <RelationList>\\n <RelationName>下单链路</RelationName>\\n <FileParameterExplainList>\\n <CycleOnce>true</CycleOnce>\\n <FileParamName>userName,age</FileParamName>\\n <FileName>city.csv</FileName>\\n <BaseFile>true</BaseFile>\\n </FileParameterExplainList>\\n <ApiList>\\n <ApiId>GBFDCV8</ApiId>\\n <CheckPointList>\\n <CheckType>EXPORTED_PARAM</CheckType>\\n <Operator>ctn</Operator>\\n <ExpectValue>111</ExpectValue>\\n <CheckPoint>userId</CheckPoint>\\n </CheckPointList>\\n <HeaderList>\\n <HeaderValue>1111</HeaderValue>\\n <HeaderName>userId</HeaderName>\\n </HeaderList>\\n <TimeoutInSecond>5</TimeoutInSecond>\\n <ExportList>\\n <ExportType>BODY_JSON</ExportType>\\n <ExportValue>username</ExportValue>\\n <ExportName>data.username</ExportName>\\n <Count>0</Count>\\n </ExportList>\\n <Url>https://www.aliyundoc.com</Url>\\n <Method>GET</Method>\\n <Body>\\n <BodyValue>{\\\\\\"key1\\\\\\":\\\\\\"111\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"222\\\\\\"}</BodyValue>\\n <ContentType>application/x-www-form-urlencoded</ContentType>\\n </Body>\\n <RedirectCountLimit>5</RedirectCountLimit>\\n <ApiName>下单</ApiName>\\n </ApiList>\\n <RelationId>HNBGS7M</RelationId>\\n </RelationList>\\n <SceneName>下单场景</SceneName>\\n <SceneId>BGFJ7GV</SceneId>\\n <GlobalParameterList>\\n <ParamName>userName</ParamName>\\n <ParamValue>lisi</ParamValue>\\n </GlobalParameterList>\\n </Scene>\\n <Code>200</Code>\\n <Success>true</Success>\\n</GetPtsSceneResponse>","errorExample":""}]',
'title' => '查询场景',
'summary' => '查询场景的结构、施压等信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-03-27T03:49:20.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2021-12-27T07:51:48.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsScene'],
],
],
'ramActions' => [],
],
'GetPtsSceneBaseLine' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID。更多信息,请参见[参数说明](~~201321~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'NB54CV'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'SceneId' => ['description' => '场景ID。', 'type' => 'string', 'example' => 'NHG67BF'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F7D2CE0-AE4C-4143-955A-8E4595AF86A6'],
'Message' => ['description' => '错误提示信息,如成功则为空。', 'type' => 'string', 'example' => '空'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Baseline' => [
'description' => '基线数据。',
'type' => 'object',
'properties' => [
'SceneBaseline' => [
'description' => '场景基线数据。',
'type' => 'object',
'properties' => [
'FailCountBiz' => ['description' => '业务失败数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'],
'SuccessRateBiz' => ['description' => '业务成功率。', 'type' => 'number', 'format' => 'float', 'example' => '0.1'],
'AvgRt' => ['description' => '平均RT。', 'type' => 'number', 'format' => 'float', 'example' => '10'],
'FailCountReq' => ['description' => '请求失败数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'],
'AvgTps' => ['description' => '平均TPS。', 'type' => 'number', 'format' => 'float', 'example' => '1000'],
'Seg99Rt' => ['description' => '99分位RT。', 'type' => 'number', 'format' => 'float', 'example' => '10'],
'SuccessRateReq' => ['description' => '请求成功率。', 'type' => 'number', 'format' => 'float', 'example' => '0.9'],
'Seg90Rt' => ['description' => '90分位RT。', 'type' => 'number', 'format' => 'float', 'example' => '10'],
],
],
'Name' => ['description' => '场景名。', 'type' => 'string', 'example' => 'Stress test scenario'],
'ApiBaselines' => [
'description' => 'API的基线数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FailCountBiz' => ['description' => '业务失败数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'AvgTps' => ['description' => '平均TPS。', 'type' => 'number', 'format' => 'float', 'example' => '1000'],
'MinRt' => ['description' => '最小RT。', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
'Seg99Rt' => ['description' => '99分位RT。', 'type' => 'number', 'format' => 'float', 'example' => '50'],
'MaxRt' => ['description' => '最大RT。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'Seg90Rt' => ['description' => '90分位RT。', 'type' => 'number', 'format' => 'float', 'example' => '40'],
'SuccessRateBiz' => ['description' => '业务成功率。', 'type' => 'number', 'format' => 'float', 'example' => '0.1'],
'AvgRt' => ['description' => '平均RT。', 'type' => 'number', 'format' => 'float', 'example' => '10'],
'FailCountReq' => ['description' => '请求失败数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'Name' => ['description' => 'API名称。', 'type' => 'string', 'example' => 'Order API'],
'SuccessRateReq' => ['description' => '请求成功率。', 'type' => 'number', 'format' => 'float', 'example' => '0.9'],
'Id' => ['description' => 'API的ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '76543'],
],
'description' => '',
],
],
],
],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'GetPtsSceneBaseLineFail', 'errorMessage' => 'The scene information cannot be empty.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"SceneId\\": \\"NHG67BF\\",\\n \\"RequestId\\": \\"4F7D2CE0-AE4C-4143-955A-8E4595AF86A6\\",\\n \\"Message\\": \\"空\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Baseline\\": {\\n \\"SceneBaseline\\": {\\n \\"FailCountBiz\\": 1000,\\n \\"SuccessRateBiz\\": 0.1,\\n \\"AvgRt\\": 10,\\n \\"FailCountReq\\": 1000,\\n \\"AvgTps\\": 1000,\\n \\"Seg99Rt\\": 10,\\n \\"SuccessRateReq\\": 0.9,\\n \\"Seg90Rt\\": 10\\n },\\n \\"Name\\": \\"Stress test scenario\\",\\n \\"ApiBaselines\\": [\\n {\\n \\"FailCountBiz\\": 100,\\n \\"AvgTps\\": 1000,\\n \\"MinRt\\": 8,\\n \\"Seg99Rt\\": 50,\\n \\"MaxRt\\": 50,\\n \\"Seg90Rt\\": 40,\\n \\"SuccessRateBiz\\": 0.1,\\n \\"AvgRt\\": 10,\\n \\"FailCountReq\\": 100,\\n \\"Name\\": \\"Order API\\",\\n \\"SuccessRateReq\\": 0.9,\\n \\"Id\\": 76543\\n }\\n ]\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<GetPtsSceneBaseLineResponse>\\n <SceneId>NHG67BF</SceneId>\\n <RequestId>4F7D2CE0-AE4C-4143-955A-8E4595AF86A6</RequestId>\\n <Message/>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Baseline>\\n <SceneBaseline>\\n <FailCountBiz>1000</FailCountBiz>\\n <SuccessRateBiz>0.1</SuccessRateBiz>\\n <AvgRt>10</AvgRt>\\n <FailCountReq>1000</FailCountReq>\\n <AvgTps>1000</AvgTps>\\n <Seg99Rt>10</Seg99Rt>\\n <SuccessRateReq>0.9</SuccessRateReq>\\n <Seg90Rt>10</Seg90Rt>\\n </SceneBaseline>\\n <Name>压测场景</Name>\\n <ApiBaselines>\\n <FailCountBiz>100</FailCountBiz>\\n <AvgTps>1000</AvgTps>\\n <MinRt>8</MinRt>\\n <Seg99Rt>50</Seg99Rt>\\n <MaxRt>50</MaxRt>\\n <Seg90Rt>40</Seg90Rt>\\n <SuccessRateBiz>0.1</SuccessRateBiz>\\n <AvgRt>10</AvgRt>\\n <FailCountReq>100</FailCountReq>\\n <Name>下单API</Name>\\n <SuccessRateReq>0.9</SuccessRateReq>\\n <Id>76543</Id>\\n </ApiBaselines>\\n </Baseline>\\n <Code>200</Code>\\n <Success>true</Success>\\n</GetPtsSceneBaseLineResponse>","errorExample":""}]',
'title' => '查询场景基线',
'summary' => '查询场景设置的基线数据。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsSceneBaseLine'],
],
],
'ramActions' => [],
],
'GetPtsSceneRunningData' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'NKKI6GB'],
],
[
'name' => 'PlanId',
'in' => 'query',
'schema' => ['description' => '任务ID,可从StartPtsScene获取。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'XM6NC5RY'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => '场景状态,缺省值为7。', 'type' => 'integer', 'format' => 'int32', 'example' => '7'],
'TotalRequestCount' => ['description' => '总请求数。', 'type' => 'integer', 'format' => 'int64', 'example' => '8900'],
'HasReport' => ['description' => '是否生成报告。', 'type' => 'boolean', 'example' => 'false'],
'ConcurrencyLimit' => ['description' => '并发限制。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'Message' => ['description' => '错误提示消息,若成功则不返回该字段。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'DC4E3177-6745-4925-B423-4E89VV34221A'],
'BeginTime' => ['description' => '压测开始时间,时间戳ms。', 'type' => 'integer', 'format' => 'int64', 'example' => '1651895518339'],
'AgentLocation' => [
'description' => '施压机位置信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Region' => ['description' => '地区。', 'type' => 'string', 'example' => '华东地区'],
'Isp' => ['description' => '提供商。', 'type' => 'string', 'example' => '阿里巴巴'],
'Count' => ['description' => '施压机台数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'Province' => ['description' => '省份。', 'type' => 'string', 'example' => '山东省'],
],
'description' => '',
],
],
'Seg90Rt' => ['description' => '90分位RT。', 'type' => 'integer', 'format' => 'int64', 'example' => '45'],
'ResponseBps' => ['description' => '响应体大小。', 'type' => 'string', 'example' => '8kb'],
'TotalAgents' => ['description' => '所有机器数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string', 'example' => '4001'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败'."\n", 'type' => 'boolean', 'example' => 'true'],
'Vum' => ['description' => '消耗VUM。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'AverageRt' => ['description' => '平均RT。', 'type' => 'integer', 'format' => 'int64', 'example' => '45'],
'ChainMonitorDataList' => [
'description' => 'API的压测信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'TimePoint' => ['description' => '时间点。', 'type' => 'integer', 'format' => 'int64', 'example' => '1278908899'],
'ApiId' => ['description' => 'API 的ID。', 'type' => 'string', 'example' => 'ANBDC8B'],
'MinRt' => ['description' => '最小RT。', 'type' => 'integer', 'format' => 'int32', 'example' => '16'],
'Qps2XX' => ['description' => '请求成功的RPS。', 'type' => 'number', 'format' => 'float', 'example' => '78'],
'MaxRt' => ['description' => '最大RT。', 'type' => 'integer', 'format' => 'int32', 'example' => '56'],
'ConfigQps' => ['description' => '配置RPS。', 'type' => 'integer', 'format' => 'int32', 'example' => '78'],
'FailedCount' => ['description' => '请求失败总数。', 'type' => 'integer', 'format' => 'int64', 'example' => '456'],
'FailedQps' => ['description' => '请求失败的RPS。', 'type' => 'number', 'format' => 'float', 'example' => '15'],
'AverageRt' => ['description' => '平均RT。', 'type' => 'integer', 'format' => 'int32', 'example' => '46'],
'CheckPointResult' => [
'description' => '检查点结果。',
'type' => 'object',
'properties' => [
'SucceedBusinessCount' => ['description' => '业务成功数。', 'type' => 'integer', 'format' => 'int64', 'example' => '908'],
'SucceedBusinessQps' => ['description' => '业务成功RPS。', 'type' => 'number', 'format' => 'float', 'example' => '89'],
'FailedBusinessCount' => ['description' => '业务失败数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'],
'FailedBusinessQps' => ['description' => '业务失败RPS。', 'type' => 'number', 'format' => 'float', 'example' => '78'],
],
],
'Count2XX' => ['description' => '请求成功数。', 'type' => 'integer', 'format' => 'int64', 'example' => '7890'],
'RealQps' => ['description' => '实际RPS。', 'type' => 'number', 'format' => 'float', 'example' => '23'],
'ApiName' => ['description' => 'API的名称。', 'type' => 'string', 'example' => 'First API'],
'NodeId' => ['description' => 'API的ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '78509'],
'Concurrency' => ['description' => '并发。', 'type' => 'number', 'format' => 'float', 'example' => '100'],
],
'description' => '',
],
],
'RequestBps' => ['description' => '请求体大小。', 'type' => 'string', 'example' => '89kb'],
'FailedBusinessCount' => ['description' => '业务失败数据。', 'type' => 'integer', 'format' => 'int64', 'example' => '78'],
'Concurrency' => ['description' => '并发。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32', 'example' => '400'],
'FailedRequestCount' => ['description' => '请求失败数。', 'type' => 'integer', 'format' => 'int64', 'example' => '90'],
'TpsLimit' => ['description' => '配置TPS限制。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'AliveAgents' => ['description' => '健康引擎数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'TotalRealQps' => ['description' => '总QPS。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'GetPtsSceneRunningDataFail', 'errorMessage' => 'The scene does not exit', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": 7,\\n \\"TotalRequestCount\\": 8900,\\n \\"HasReport\\": false,\\n \\"ConcurrencyLimit\\": 20,\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"DC4E3177-6745-4925-B423-4E89VV34221A\\",\\n \\"BeginTime\\": 1651895518339,\\n \\"AgentLocation\\": [\\n {\\n \\"Region\\": \\"华东地区\\",\\n \\"Isp\\": \\"阿里巴巴\\",\\n \\"Count\\": 10,\\n \\"Province\\": \\"山东省\\"\\n }\\n ],\\n \\"Seg90Rt\\": 45,\\n \\"ResponseBps\\": \\"8kb\\",\\n \\"TotalAgents\\": 10,\\n \\"Code\\": \\"4001\\",\\n \\"Success\\": true,\\n \\"Vum\\": 100,\\n \\"AverageRt\\": 45,\\n \\"ChainMonitorDataList\\": [\\n {\\n \\"TimePoint\\": 1278908899,\\n \\"ApiId\\": \\"ANBDC8B\\",\\n \\"MinRt\\": 16,\\n \\"Qps2XX\\": 78,\\n \\"MaxRt\\": 56,\\n \\"ConfigQps\\": 78,\\n \\"FailedCount\\": 456,\\n \\"FailedQps\\": 15,\\n \\"AverageRt\\": 46,\\n \\"CheckPointResult\\": {\\n \\"SucceedBusinessCount\\": 908,\\n \\"SucceedBusinessQps\\": 89,\\n \\"FailedBusinessCount\\": 1000,\\n \\"FailedBusinessQps\\": 78\\n },\\n \\"Count2XX\\": 7890,\\n \\"RealQps\\": 23,\\n \\"ApiName\\": \\"First API\\",\\n \\"NodeId\\": 78509,\\n \\"Concurrency\\": 100\\n }\\n ],\\n \\"RequestBps\\": \\"89kb\\",\\n \\"FailedBusinessCount\\": 78,\\n \\"Concurrency\\": 10,\\n \\"HttpStatusCode\\": 400,\\n \\"FailedRequestCount\\": 90,\\n \\"TpsLimit\\": 80,\\n \\"AliveAgents\\": 10,\\n \\"TotalRealQps\\": 10\\n}","errorExample":""},{"type":"xml","example":"<GetPtsSceneRunningDataResponse>\\n <Status>6</Status>\\n <HasReport>false</HasReport>\\n <ConcurrencyLimit>20</ConcurrencyLimit>\\n <TotalRequestCount>8900</TotalRequestCount>\\n <RequestId>DC4E3177-6745-4925-B423-4E89VV34221A</RequestId>\\n <Message/>\\n <BeginTime>189009880000</BeginTime>\\n <AgentLocation>\\n <Isp>阿里巴巴</Isp>\\n <Region>华东地区</Region>\\n <Count>10</Count>\\n <Province>山东省</Province>\\n </AgentLocation>\\n <Seg90Rt>45</Seg90Rt>\\n <TotalAgents>10</TotalAgents>\\n <ResponseBps>8kb</ResponseBps>\\n <Code>4001</Code>\\n <Success>true</Success>\\n <Vum>100</Vum>\\n <AverageRt>45</AverageRt>\\n <ChainMonitorDataList>\\n <ApiId>ANBDC8B</ApiId>\\n <ApiName>第一个API</ApiName>\\n <AverageRt>46</AverageRt>\\n <Concurrency>100</Concurrency>\\n <FailedQps>15</FailedQps>\\n <RealQps>23</RealQps>\\n <TimePoint>1278908899</TimePoint>\\n <NodeId>78509</NodeId>\\n <FailedCount>456</FailedCount>\\n <Qps2XX>78</Qps2XX>\\n <MinRt>16</MinRt>\\n <MaxRt>56</MaxRt>\\n <ConfigQps>78</ConfigQps>\\n <Count2XX>7890</Count2XX>\\n <CheckPointResult>\\n <FailedBusinessCount>1000</FailedBusinessCount>\\n <FailedBusinessQps>78</FailedBusinessQps>\\n <SucceedBusinessQps>89</SucceedBusinessQps>\\n <SucceedBusinessCount>908</SucceedBusinessCount>\\n </CheckPointResult>\\n </ChainMonitorDataList>\\n <RequestBps>89kb</RequestBps>\\n <Concurrency>10</Concurrency>\\n <FailedBusinessCount>78</FailedBusinessCount>\\n <HttpStatusCode>400</HttpStatusCode>\\n <FailedRequestCount>90</FailedRequestCount>\\n <TpsLimit>80</TpsLimit>\\n <AliveAgents>10</AliveAgents>\\n</GetPtsSceneRunningDataResponse>","errorExample":""}]',
'title' => '获取压测实时数据',
'summary' => '场景压测或调试中获取场景的运行时数据。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-11-07T02:51:12.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsSceneRunningData'],
],
],
'ramActions' => [],
],
'GetPtsSceneRunningStatus' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID,创建场景后系统生成的唯一表示。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'NHBG6V'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => '场景状态。包括:'."\n"
."\n"
.'- CREATED'."\n"
.'- SYNCING'."\n"
.'- SYNC_DONE'."\n"
.'- UPLOADING'."\n"
.'- UPLOADED'."\n"
.'- PREPARING'."\n"
.'- READY'."\n"
.'- RUNNING'."\n"
.'- STOPPING '."\n"
.'- STOPPED', 'type' => 'string', 'example' => 'RUNNING'],
'ModifiedTime' => ['description' => '修改时间。', 'type' => 'string', 'example' => '2021-03-26 16:03:56'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'DC4E3177-6745-4925-B423-4E89VV34221A'],
'Message' => ['description' => '错误提示消息,若成功则不返回该字段。', 'type' => 'string'],
'SceneName' => ['description' => '场景名。', 'type' => 'string', 'example' => 'Order scenario'],
'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2021-03-01 16:05:56'],
'HttpStatusCode' => ['description' => '请求状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32', 'example' => '400'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string', 'example' => '4001'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败'."\n", 'type' => 'boolean', 'example' => 'false'],
],
'description' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'GetPtsSceneRunningStatusFail', 'errorMessage' => 'The scene does not exist', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"RUNNING\\",\\n \\"ModifiedTime\\": \\"2021-03-26 16:03:56\\",\\n \\"RequestId\\": \\"DC4E3177-6745-4925-B423-4E89VV34221A\\",\\n \\"Message\\": \\"\\",\\n \\"SceneName\\": \\"Order scenario\\",\\n \\"CreateTime\\": \\"2021-03-01 16:05:56\\",\\n \\"HttpStatusCode\\": 400,\\n \\"Code\\": \\"4001\\",\\n \\"Success\\": false\\n}","errorExample":""},{"type":"xml","example":"<GetPtsSceneRunningStatusResponse>\\n <Status>RUNNING</Status>\\n <ModifiedTime>2021-03-26 16:03:56</ModifiedTime>\\n <RequestId>DC4E3177-6745-4925-B423-4E89VV34221A</RequestId>\\n <Message>创建或者修改场景入参必须是实体类Scene的JSON串</Message>\\n <SceneName>下单场景</SceneName>\\n <CreateTime>2021-03-01 16:05:56</CreateTime>\\n <HttpStatusCode>400</HttpStatusCode>\\n <Code>4001</Code>\\n <Success>false</Success>\\n</GetPtsSceneRunningStatusResponse>","errorExample":""}]',
'title' => '获取场景运行时状态',
'summary' => '场景启动压测后,获取运行时状态。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsSceneRunningStatus'],
],
],
'ramActions' => [],
],
'GetUserVpcSecurityGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '第几页。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483646', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '每页显示条数。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '100', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => ['description' => '专有网络ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'vpc-bp10xjz7c7oqjgasodihj1kx7t'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'SecurityGroupCount' => ['description' => '安全组数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '9'],
'SecurityGroupList' => [
'description' => '安全组列表。',
'type' => 'array',
'items' => [
'description' => '安全组详情。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => '专有网络ID。', 'type' => 'string', 'example' => 'vpc-uf6tar2ohlasdhsatjln37h30bv'],
'Description' => ['description' => '安全组描述信息。', 'type' => 'string', 'example' => '空'],
'SecurityGroupId' => ['description' => '安全组 ID。', 'type' => 'string', 'example' => 'sg-bp16bt3zuugxpfjkasdfvthxth8'],
'SecurityGroupName' => ['description' => '安全组名。', 'type' => 'string', 'example' => 'my-security-group'],
],
],
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '61B15017-1A68-5C47-834F-87E2BBC44F2C'],
'Message' => ['description' => '错误提示信息,如成功则为空。', 'type' => 'string', 'example' => '空'],
'PageSize' => ['description' => '每页显示条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageNumber' => ['description' => '第几页。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败'."\n", 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Code', 'errorMessage' => 'The specified parameter is invalid.', 'description' => ''],
],
],
'title' => '获取安全组列表',
'changeSet' => [
['createdAt' => '2022-04-12T08:57:18.000Z', 'description' => 'OpenAPI 下线'],
['createdAt' => '2022-04-12T08:57:18.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'pts:GetUserVpcSecurityGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"SecurityGroupCount\\": 9,\\n \\"SecurityGroupList\\": [\\n {\\n \\"VpcId\\": \\"vpc-uf6tar2ohlasdhsatjln37h30bv\\",\\n \\"Description\\": \\"空\\",\\n \\"SecurityGroupId\\": \\"sg-bp16bt3zuugxpfjkasdfvthxth8\\",\\n \\"SecurityGroupName\\": \\"my-security-group\\"\\n }\\n ],\\n \\"RequestId\\": \\"61B15017-1A68-5C47-834F-87E2BBC44F2C\\",\\n \\"Message\\": \\"空\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'GetUserVpcVSwitch' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '分页查询时的页码。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483646', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '每页显示记录条数。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '100', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => ['description' => '专有网络ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'vpc-2ze22scdz2ebdfjasdfjkqhf4pyj'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'VSwitchCount' => ['description' => '交换机的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '6'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0235E5FC-4C7C-5F0C-843C-FC674F15F947'],
'Message' => ['description' => '错误提示信息,若成功则为空。', 'type' => 'string', 'example' => '空'],
'PageSize' => ['description' => '每页显示记录条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'PageNumber' => ['description' => '分页查询时的页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'VSwitchList' => [
'description' => '交换机列表。',
'type' => 'array',
'items' => [
'description' => '交换机信息。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => '专有网络ID。', 'type' => 'string', 'example' => 'vpc-wz9bpdaebft6j23fesdf84v2f1um3a'],
'MaxAgentCount' => ['description' => '最大可添加施压机数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'AvailableIpAddressCount' => ['description' => '交换机中可用的IP地址数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'],
'VSwitchId' => ['description' => '交换机ID。', 'type' => 'string', 'example' => 'vsw-bp1eil9df23rsd8l1sevebiszooj'],
'VSwitchName' => ['description' => '虚拟交换机名称', 'type' => 'string', 'example' => 'my-vswitch'],
],
],
],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Code', 'errorMessage' => 'The specified parameter is invalid.', 'description' => ''],
],
],
'title' => '获取虚拟交换机列表',
'changeSet' => [
['createdAt' => '2022-04-12T08:57:18.000Z', 'description' => 'OpenAPI 下线'],
['createdAt' => '2022-04-12T08:57:18.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'pts:GetUserVpcVSwitch',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"VSwitchCount\\": 6,\\n \\"RequestId\\": \\"0235E5FC-4C7C-5F0C-843C-FC674F15F947\\",\\n \\"Message\\": \\"空\\",\\n \\"PageSize\\": 5,\\n \\"PageNumber\\": 1,\\n \\"VSwitchList\\": [\\n {\\n \\"VpcId\\": \\"vpc-wz9bpdaebft6j23fesdf84v2f1um3a\\",\\n \\"MaxAgentCount\\": 1000,\\n \\"AvailableIpAddressCount\\": 1000,\\n \\"VSwitchId\\": \\"vsw-bp1eil9df23rsd8l1sevebiszooj\\",\\n \\"VSwitchName\\": \\"my-vswitch\\"\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'GetUserVpcs' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '分页查询时设置的页码。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483646', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '每页显示记录条数。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '100', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => ['description' => '专有网络ID。', 'type' => 'string', 'required' => false, 'example' => 'vpc-2ze22asdfuwiea2ebjkqhf4pyj'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '总条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'Vpcs' => [
'description' => 'VPC列表。',
'type' => 'array',
'items' => [
'description' => 'VPC的详细信息。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => '专有网络ID。', 'type' => 'string', 'example' => 'vpc-uf6gc56wdjpafoiwej6adqb4qn72xtw'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'VpcName' => ['description' => 'VPC名称。', 'type' => 'string', 'example' => 'shanghai-vpc'],
'CidrBlock' => ['description' => 'VPC的IPv4网段。', 'type' => 'string', 'example' => '172.16.80.0/20'],
'Description' => ['description' => 'VPC的描述信息。', 'type' => 'string', 'example' => '空'],
'ResourceGroupId' => ['description' => 'VPC所属的资源组ID。', 'type' => 'string', 'example' => 'rg-acfm3fzmgkehpewjertna'],
'VSwitchIds' => [
'description' => '交换机列表。',
'type' => 'array',
'items' => ['description' => '交换机ID。', 'type' => 'string', 'example' => 'vsw-bp1s21fe8r3esdslplvcv5240'],
],
'RouterTableIds' => [
'description' => '路由表ID列表。',
'type' => 'array',
'items' => ['description' => '路由表ID。', 'type' => 'string', 'example' => 'vtb-bp11tkmteho3svealseipea6h'],
],
],
],
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'CEE46204-E1CF-5F48-B094-67362DD4B73F'],
'Message' => ['description' => '错误提示信息,若成功则为空。', 'type' => 'string', 'example' => '空'],
'PageSize' => ['description' => '每页显示记录条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageNumber' => ['description' => '分页查询时设置的页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Code', 'errorMessage' => 'The specified parameter is invalid.', 'description' => ''],
],
],
'title' => '获取VPC列表',
'changeSet' => [
['createdAt' => '2022-04-12T08:57:18.000Z', 'description' => 'OpenAPI 下线'],
['createdAt' => '2022-04-12T08:57:18.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'pts:GetUserVpcs',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 100,\\n \\"Vpcs\\": [\\n {\\n \\"VpcId\\": \\"vpc-uf6gc56wdjpafoiwej6adqb4qn72xtw\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"VpcName\\": \\"shanghai-vpc\\",\\n \\"CidrBlock\\": \\"172.16.80.0/20\\",\\n \\"Description\\": \\"空\\",\\n \\"ResourceGroupId\\": \\"rg-acfm3fzmgkehpewjertna\\",\\n \\"VSwitchIds\\": [\\n \\"vsw-bp1s21fe8r3esdslplvcv5240\\"\\n ],\\n \\"RouterTableIds\\": [\\n \\"vtb-bp11tkmteho3svealseipea6h\\"\\n ]\\n }\\n ],\\n \\"RequestId\\": \\"CEE46204-E1CF-5F48-B094-67362DD4B73F\\",\\n \\"Message\\": \\"空\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'ListEnvs' => [
'summary' => '根据条件列出JMeter环境。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '请求第N页的环境信息。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '10000000', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '当前页的请求环境数,即一页所包含的环境数量。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '200', 'minimum' => '5', 'example' => '10'],
],
[
'name' => 'EnvId',
'in' => 'query',
'schema' => ['title' => '环境ID', 'description' => '需查询的环境ID(为精确查询)。', 'type' => 'string', 'required' => false, 'example' => '10YPA8H'],
],
[
'name' => 'EnvName',
'in' => 'query',
'schema' => ['title' => '环境名', 'description' => '需查询的环境名称关键字(模糊查询)。', 'type' => 'string', 'required' => false, 'example' => 'test-create'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '查询到的环境总数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'PageSize' => ['description' => '返回环境数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageNumber' => ['description' => '返回第N页环境信息。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Envs' => [
'title' => '环境列表',
'description' => '环境列表',
'type' => 'array',
'items' => [
'description' => '环境列表。',
'type' => 'object',
'properties' => [
'CreateTime' => ['title' => '创建时间', 'description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1637053715165'],
'RunningScenes' => [
'title' => '关联的场景id',
'description' => '运行中的场景ID。',
'type' => 'array',
'items' => ['description' => '场景ID详情。', 'type' => 'string', 'example' => '[10YPA8H, 0PYP8WH]'],
],
'EnvVersion' => ['title' => '依赖的jmeter版本', 'description' => '所依赖的JMeter版本。', 'type' => 'string', 'example' => '5.0'],
'ModifiedTime' => ['title' => '修改时间', 'description' => '修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1637053719165'],
'Files' => [
'title' => '包含的jar包',
'description' => '包含的JAR包。',
'type' => 'array',
'items' => [
'description' => '文件详情。',
'type' => 'object',
'properties' => [
'FileSize' => ['title' => '文件大小,单位为Byte', 'description' => '文件大小,单位为Byte。', 'type' => 'integer', 'format' => 'int64', 'example' => '788'],
'Md5' => ['title' => 'jar包的md5值', 'description' => 'JAR包的MD5值。', 'type' => 'string', 'example' => '43B584026CE5E570F3DE638FA7EEF9E0'],
'FileName' => ['title' => '文件名', 'description' => '文件名。', 'type' => 'string', 'example' => 'json.jar'],
'FileOssAddress' => ['title' => '文件的oss地址', 'description' => '文件的OSS地址。', 'type' => 'string', 'example' => 'https://test.oss-cn-shanghai.aliyuncs.com/json.jar'],
'FileId' => ['title' => '文件ID', 'description' => '文件ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '61660'],
],
],
],
'RelatedScenes' => [
'title' => '关联的场景',
'description' => '关联的场景。',
'type' => 'array',
'items' => ['description' => '关联的场景详情。', 'type' => 'string', 'example' => '[10YPA8H, 0PYP8WH]'],
],
'UsedCapacity' => ['title' => '环境的文件总大小', 'description' => '环境文件的总大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '26668'],
'EnvName' => ['title' => '环境名', 'description' => '环境名。', 'type' => 'string', 'example' => 'test-create'],
'EnvId' => ['title' => '环境ID', 'description' => '环境ID。', 'type' => 'string', 'example' => '86S1LH'],
'Properties' => [
'title' => 'jmeter属性',
'description' => 'JMeter属性。',
'type' => 'array',
'items' => [
'description' => '属性详情。',
'type' => 'object',
'properties' => [
'Name' => ['title' => '属性名', 'description' => '属性名。', 'type' => 'string', 'example' => 'remote_hosts'],
'Value' => ['title' => '属性值', 'description' => '属性值。', 'type' => 'string', 'example' => '127.0.0.1'],
'Description' => ['title' => '描述', 'description' => '描述。', 'type' => 'string', 'example' => 'Remote host'],
],
],
],
],
],
],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
503 => [
['errorCode' => 'EnvNotExist', 'errorMessage' => 'The env does not exist.', 'description' => '环境不存在'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 100,\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"Message\\": \\"\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Envs\\": [\\n {\\n \\"CreateTime\\": 1637053715165,\\n \\"RunningScenes\\": [\\n \\"[10YPA8H, 0PYP8WH]\\"\\n ],\\n \\"EnvVersion\\": \\"5.0\\",\\n \\"ModifiedTime\\": 1637053719165,\\n \\"Files\\": [\\n {\\n \\"FileSize\\": 788,\\n \\"Md5\\": \\"43B584026CE5E570F3DE638FA7EEF9E0\\",\\n \\"FileName\\": \\"json.jar\\",\\n \\"FileOssAddress\\": \\"https://test.oss-cn-shanghai.aliyuncs.com/json.jar\\",\\n \\"FileId\\": 61660\\n }\\n ],\\n \\"RelatedScenes\\": [\\n \\"[10YPA8H, 0PYP8WH]\\"\\n ],\\n \\"UsedCapacity\\": 26668,\\n \\"EnvName\\": \\"test-create\\",\\n \\"EnvId\\": \\"86S1LH\\",\\n \\"Properties\\": [\\n {\\n \\"Name\\": \\"remote_hosts\\",\\n \\"Value\\": \\"127.0.0.1\\",\\n \\"Description\\": \\"Remote host\\"\\n }\\n ]\\n }\\n ],\\n \\"HttpStatusCode\\": 0,\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListEnvsResponse>\\n <TotalCount>100</TotalCount>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Message>空</Message>\\n <PageSize>10</PageSize>\\n <PageNumber>1</PageNumber>\\n <Envs>\\n <CreateTime>1637053715165</CreateTime>\\n <RunningScenes>[10YPA8H, 0PYP8WH]</RunningScenes>\\n <EnvVersion>5.0</EnvVersion>\\n <ModifiedTime>1637053719165</ModifiedTime>\\n <Files>\\n <FileSize>788</FileSize>\\n <Md5>43B584026CE5E570F3DE638FA7EEF9E0</Md5>\\n <FileName>json.jar</FileName>\\n <FileOssAddress>https://test.oss-cn-shanghai.aliyuncs.com/json.jar</FileOssAddress>\\n <FileId>61660</FileId>\\n </Files>\\n <RelatedScenes>[10YPA8H, 0PYP8WH]</RelatedScenes>\\n <UsedCapacity>26668</UsedCapacity>\\n <EnvName>test-create</EnvName>\\n <EnvId>86S1LH</EnvId>\\n <Properties>\\n <Name>remote_hosts</Name>\\n <Value>127.0.0.1</Value>\\n <Description>远程主机</Description>\\n </Properties>\\n </Envs>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListEnvsResponse>","errorExample":""}]',
'title' => '环境列表',
'changeSet' => [
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEnvs'],
],
],
'ramActions' => [],
],
'ListJMeterReports' => [
'summary' => '根据条件列出JMeter报告的概要信息。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '请求第N页的报告信息。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '100', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '请求报告数。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '50', 'minimum' => '1', 'example' => '10'],
],
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['title' => '要查看的报告的场景id', 'description' => '需查看的报告的场景ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '10YPA8H'],
],
[
'name' => 'ReportId',
'in' => 'query',
'schema' => ['title' => '报告ID', 'description' => '报告ID。', 'type' => 'string', 'required' => false, 'example' => '7R4RE352'],
],
[
'name' => 'BeginTime',
'in' => 'query',
'schema' => ['title' => '报告的起始时间,单位为ms', 'description' => '查询的起始时间,单位为ms。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '9223372036854775807', 'minimum' => '0', 'example' => '1637115303000'],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['title' => '报告的结束时间', 'description' => '查询的结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '9223372036854775807', 'minimum' => '0', 'example' => '1637115306000'],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['title' => '报告关键字', 'description' => '报告关键字。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '按条件查询到的报告总数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'Message' => ['description' => '错误提示信息,若成功则为空。', 'type' => 'string', 'example' => '空'],
'PageSize' => ['description' => '返回报告数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageNumber' => ['description' => '返回第N页的报告信息。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Reports' => [
'description' => '报告信息。',
'type' => 'array',
'items' => [
'description' => '报告详情。',
'type' => 'object',
'properties' => [
'ReportName' => ['title' => '报告名称', 'description' => '报告名称。', 'type' => 'string', 'example' => 'test'],
'Duration' => ['title' => '压测持续时间', 'description' => '压测持续时间。', 'type' => 'string', 'example' => '10 minutes'],
'ReportId' => ['title' => '报告id', 'description' => '报告ID。', 'type' => 'string', 'example' => '7R4RE352'],
'Vum' => ['title' => '消耗的vum', 'description' => '消耗的VUM。', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'],
'ActualStartTime' => ['title' => '压测开始时间', 'description' => '压测开始时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1637157073000'],
],
],
],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'ReportNotExist', 'errorMessage' => 'The report does not exist.', 'description' => '报告不存在'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 100,\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"Message\\": \\"空\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"HttpStatusCode\\": 200,\\n \\"Reports\\": [\\n {\\n \\"ReportName\\": \\"test\\",\\n \\"Duration\\": \\"10 minutes\\",\\n \\"ReportId\\": \\"7R4RE352\\",\\n \\"Vum\\": 1000,\\n \\"ActualStartTime\\": 1637157073000\\n }\\n ],\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListJMeterReportsResponse>\\n <TotalCount>100</TotalCount>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Message>空</Message>\\n <PageSize>10</PageSize>\\n <PageNumber>1</PageNumber>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Reports>\\n <ReportName>test</ReportName>\\n <Duration>10分钟</Duration>\\n <ReportId>7R4RE352</ReportId>\\n <Vum>1000</Vum>\\n <ActualStartTime>1637157073000</ActualStartTime>\\n </Reports>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListJMeterReportsResponse>","errorExample":""}]',
'title' => 'JMeter报告列表',
'changeSet' => [
['createdAt' => '2024-12-06T09:14:03.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2021-12-01T13:24:31.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListJMeterReports'],
],
],
'ramActions' => [],
],
'ListOpenJMeterScenes' => [
'summary' => '根据条件获得JMeter场景列表。',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '请求的第N页。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '请求的场景数。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '1000', 'minimum' => '10', 'example' => '10'],
],
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['title' => '场景id', 'description' => '场景ID。', 'type' => 'string', 'required' => false, 'example' => 'DYYPZIH'],
],
[
'name' => 'SceneName',
'in' => 'query',
'schema' => ['title' => '场景名', 'description' => '场景名。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则为空。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'JMeterScene' => [
'description' => '场景信息。',
'type' => 'array',
'items' => [
'description' => '场景详情。',
'type' => 'object',
'properties' => [
'DurationStr' => ['title' => '压测持续时间', 'description' => '压测持续时间。', 'type' => 'string', 'example' => '10 minutes'],
'SceneId' => ['title' => '场景id', 'description' => '场景ID。', 'type' => 'string', 'example' => 'DYYPZIH'],
'SceneName' => ['title' => '场景名', 'description' => '场景名。', 'type' => 'string', 'example' => 'test'],
'Status' => ['description' => '场景状态。包括:'."\n"
.'- PREPARING: 准备中'."\n"
.'- PREPARED: 准备完成'."\n"
.'- STARTING: 启动中'."\n"
.'- RUNNING: 执行中'."\n"
.'- STOPPING: 停止中'."\n"
.'- STOPPED: 待启动', 'type' => 'string', 'example' => 'STOPPED'],
],
],
],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
'PageNumber' => ['description' => '返回场景第N页。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '返回场景数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'TotalCount' => ['description' => '返回场景总数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'SceneNotExist', 'errorMessage' => 'The scene does not exist.', 'description' => '场景不存在'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"HttpStatusCode\\": 0,\\n \\"JMeterScene\\": [\\n {\\n \\"DurationStr\\": \\"10 minutes\\",\\n \\"SceneId\\": \\"DYYPZIH\\",\\n \\"SceneName\\": \\"test\\",\\n \\"Status\\": \\"STOPPED\\"\\n }\\n ],\\n \\"Code\\": \\"\\",\\n \\"Success\\": true,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 100\\n}","errorExample":""},{"type":"xml","example":"<ListOpenJMeterScenesResponse>\\n <Message>空</Message>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <JMeterScene>\\n <DurationStr>10分钟</DurationStr>\\n <SceneId>DYYPZIH</SceneId>\\n <SceneName>test</SceneName>\\n </JMeterScene>\\n <Code>200</Code>\\n <Success>true</Success>\\n <PageNumber>1</PageNumber>\\n <PageSize>10</PageSize>\\n <TotalCount>100</TotalCount>\\n</ListOpenJMeterScenesResponse>","errorExample":""}]',
'title' => 'JMeter场景列表',
'changeSet' => [
['createdAt' => '2024-01-23T11:52:16.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListOpenJMeterScenes'],
],
],
'ramActions' => [],
],
'ListPtsReports' => [
'summary' => '根据条件列出PTS报告的概要信息。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'formData',
'schema' => ['description' => '请求第N页的报告信息,N从1开始。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '50', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'formData',
'schema' => ['description' => '每页请求的报告数。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '20', 'minimum' => '1', 'example' => '10'],
],
[
'name' => 'SceneId',
'in' => 'formData',
'schema' => ['title' => '要查看的报告的场景id', 'description' => '要查看的报告的场景ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '1PDAL8H'],
],
[
'name' => 'ReportId',
'in' => 'formData',
'schema' => ['title' => '报告ID', 'description' => '报告ID。', 'type' => 'string', 'required' => false, 'example' => '7RLPM3Y2'],
],
[
'name' => 'BeginTime',
'in' => 'formData',
'schema' => ['title' => '报告的起始时间,单位为ms', 'description' => '报告的起始时间戳,单位为ms。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '9223372036854775807', 'minimum' => '0', 'example' => '1637115303000'],
],
[
'name' => 'EndTime',
'in' => 'formData',
'schema' => ['title' => '报告的结束时间', 'description' => '报告的结束时间戳,单位为ms。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '9223372036854775807', 'minimum' => '0', 'example' => '1637115306000'],
],
[
'name' => 'Keyword',
'in' => 'formData',
'schema' => ['title' => '报告关键字', 'description' => '报告关键字。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '根据条件查询到的报告总数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E4LR80-15P1-555A-9ZZF-B736AZO5E5ID'],
'Message' => ['description' => '错误提示信息,若成功则为空字符串。', 'type' => 'string', 'example' => '空'],
'PageSize' => ['description' => '每一页返回的报告数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageNumber' => ['description' => '返回的是第N页的报告信息,N从1开始。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Reports' => [
'description' => '报告信息。',
'type' => 'array',
'items' => [
'description' => '报告详情。',
'type' => 'object',
'properties' => [
'ReportName' => ['title' => '报告名称', 'description' => '报告名称。', 'type' => 'string', 'example' => 'test'],
'Duration' => ['title' => '压测持续时间', 'description' => '压测持续时间。', 'type' => 'string', 'example' => '10 minutes'],
'ReportId' => ['title' => '报告id', 'description' => '报告ID。', 'type' => 'string', 'example' => '7RLPM3Y2'],
'Vum' => ['title' => '消耗的vum', 'description' => '消耗的VUM。', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'],
'ActualStartTime' => ['title' => '压测开始时间', 'description' => '压测开始时间戳,单位为ms。', 'type' => 'integer', 'format' => 'int64', 'example' => '1637157073000'],
],
],
],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'true: 成功。'."\n"
.'false: 失败。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'ReportNotExist', 'errorMessage' => 'The report does not exist.', 'description' => '报告不存在'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 100,\\n \\"RequestId\\": \\"A8E4LR80-15P1-555A-9ZZF-B736AZO5E5ID\\",\\n \\"Message\\": \\"空\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"HttpStatusCode\\": 200,\\n \\"Reports\\": [\\n {\\n \\"ReportName\\": \\"test\\",\\n \\"Duration\\": \\"10 minutes\\",\\n \\"ReportId\\": \\"7RLPM3Y2\\",\\n \\"Vum\\": 1000,\\n \\"ActualStartTime\\": 1637157073000\\n }\\n ],\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListPtsReportsResponse>\\n <TotalCount>100</TotalCount>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Message/>\\n <PageSize>10</PageSize>\\n <PageNumber>1</PageNumber>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Reports>\\n <ReportName>test</ReportName>\\n <Duration>10分钟</Duration>\\n <ReportId>7R4RE352</ReportId>\\n <Vum>1000</Vum>\\n <ActualStartTime>1637157073000</ActualStartTime>\\n </Reports>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListPtsReportsResponse>","errorExample":""}]',
'title' => '查询PTS报告列表',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListPtsReports'],
],
],
'ramActions' => [],
],
'ListPtsScene' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'abilityTreeCode' => '22660',
'abilityTreeNodes' => ['FEATUREptsFQKRPS'],
],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '第几页,取值范围1~1073741824。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '每页显示场景条数,取值范围10~1000。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '1000', 'minimum' => '10', 'example' => '10'],
],
[
'name' => 'KeyWord',
'in' => 'query',
'schema' => ['description' => '关键字,可以通过对场景名**SceneName**进行模糊搜索或者对场景ID**SceneId**进行精确搜索。', 'type' => 'string', 'required' => false, 'example' => 'Test order'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不返回任何数据。', 'type' => 'string', 'example' => '创建或者修改场景入参必须是实体类scene的JSON串'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'DD6F2ED8-E31B-497F-85AB-C4E358A5F667'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回任何数据。', 'type' => 'integer', 'format' => 'int32', 'example' => '400'],
'SceneViewList' => [
'description' => '查询的场景列表信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CreateTime' => ['description' => '场景创建时间。', 'type' => 'string', 'example' => '2021-02-26 15:28:39'],
'SceneId' => ['description' => '场景ID。', 'type' => 'string', 'example' => 'DFGVS3S'],
'SceneName' => ['description' => '场景名。', 'type' => 'string', 'example' => 'Test online ordering'],
'Status' => ['description' => 'PTS场景状态', 'type' => 'string', 'example' => 'Running'],
],
'description' => '',
],
],
'Code' => ['description' => '系统状态码,若成功则不返回任何数据。', 'type' => 'string', 'example' => '4001'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'false'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ListPtsSceneFail', 'errorMessage' => 'Keyword length cannot exceed 30 characters', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"创建或者修改场景入参必须是实体类scene的JSON串\\",\\n \\"RequestId\\": \\"DD6F2ED8-E31B-497F-85AB-C4E358A5F667\\",\\n \\"HttpStatusCode\\": 400,\\n \\"SceneViewList\\": [\\n {\\n \\"CreateTime\\": \\"2021-02-26 15:28:39\\",\\n \\"SceneId\\": \\"DFGVS3S\\",\\n \\"SceneName\\": \\"Test online ordering\\",\\n \\"Status\\": \\"Running\\"\\n }\\n ],\\n \\"Code\\": \\"4001\\",\\n \\"Success\\": false\\n}","errorExample":""},{"type":"xml","example":"<ListJMeterReportsResponse>\\n <TotalCount>100</TotalCount>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Message>空</Message>\\n <PageSize>10</PageSize>\\n <PageNumber>1</PageNumber>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Reports>\\n <ReportName>test</ReportName>\\n <Duration>10分钟</Duration>\\n <ReportId>7R4RE352</ReportId>\\n <Vum>1000</Vum>\\n <ActualStartTime>1637157073000</ActualStartTime>\\n </Reports>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListJMeterReportsResponse>","errorExample":""}]',
'title' => '分页查询场景',
'summary' => '分页查询场景概览信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-03-07T07:30:32.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListPtsScene'],
],
],
'ramActions' => [],
],
'ModifyPtsScene' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Scene',
'in' => 'formData',
'schema' => ['description' => '场景详细信息。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'SD6YZCI'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示消息。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '449ADAFB-8DA4-4317-A284-4922D04DE828'],
'HttpStatusCode' => ['description' => '请求状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败'."\n", 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ModifyPtsSceneFail', 'errorMessage' => 'The scene does not exit', 'description' => ''],
],
],
'title' => '修改场景',
'summary' => '修改场景配置信息,比如URL、施压信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-05-09T13:23:05.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ModifyPtsScene'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:ModifyPtsScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"449ADAFB-8DA4-4317-A284-4922D04DE828\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ModifyPtsSceneResponse>\\n <Message>空</Message>\\n <RequestId>449ADAFB-8DA4-4317-A284-4922D04DE828</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ModifyPtsSceneResponse>","errorExample":""}]',
],
'RemoveEnv' => [
'summary' => '根据JMeter环境ID移除JMeter环境。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'EnvId',
'in' => 'query',
'schema' => ['title' => '要删除的环境ID', 'description' => '需删除的环境ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '10YPA8H', 'maxLength' => 20],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功。'."\n"
.'- false:失败。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
503 => [
['errorCode' => 'EnvNotExist', 'errorMessage' => 'The env does not exist.', 'description' => '环境不存在'],
],
],
'title' => '移除环境',
'changeSet' => [
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveEnv'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:RemoveEnv',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"HttpStatusCode\\": 0,\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RemoveEnvResponse>\\n <Message>空</Message>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</RemoveEnvResponse>","errorExample":""}]',
],
'RemoveOpenJMeterScene' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['title' => '场景ID', 'description' => '需删除的场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DYYPZIH'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'SceneNotExist', 'errorMessage' => 'The scene does not exist.', 'description' => '场景不存在'],
],
],
'title' => '移除场景',
'summary' => '移除JMeter场景。',
'changeSet' => [
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RemoveOpenJMeterScene'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:RemoveOpenJMeterScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"HttpStatusCode\\": 0,\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RemoveOpenJMeterSceneResponse>\\n <Message>空</Message>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</RemoveOpenJMeterSceneResponse>","errorExample":""}]',
],
'SaveEnv' => [
'summary' => '新建或更新JMeter环境。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Env',
'in' => 'query',
'style' => 'json',
'schema' => [
'title' => '环境',
'description' => '环境。',
'type' => 'object',
'properties' => [
'EnvId' => ['title' => '环境id,不填表示新建环境,填了表示修改该环境', 'description' => '环境ID。若不填,表示新建环境;若填写,表示修改该环境。', 'type' => 'string', 'required' => false, 'example' => '10YPA8H', 'maxLength' => 20],
'EnvName' => ['title' => '环境名称', 'description' => '环境名称。', 'type' => 'string', 'required' => true, 'example' => 'test-create', 'maxLength' => 50, 'minLength' => 1],
'Files' => [
'title' => '环境依赖的文件',
'description' => '环境依赖的文件。',
'type' => 'array',
'items' => [
'description' => '文件详情。',
'type' => 'object',
'properties' => [
'FileName' => ['title' => '文件名', 'description' => '文件名。建议与**FileOssAddress**的文件名保持一致。', 'type' => 'string', 'required' => true, 'example' => 'json.jar', 'maxLength' => 100, 'minLength' => 1],
'FileOssAddress' => ['title' => '文件oss地址,目前只支持上海region的oss地址', 'description' => '您自己的OSS文件地址,要求公网可访问。'."\n"
.'>目前只支持上海地域的OSS地址。', 'type' => 'string', 'required' => true, 'example' => 'https://test.oss-cn-shanghai.aliyuncs.com/json.jar', 'maxLength' => 200, 'minLength' => 1],
],
'required' => false,
],
'required' => true,
'maxItems' => 80,
'minItems' => 0,
],
'Properties' => [
'title' => 'jmeter属性',
'description' => 'JMeter属性。',
'type' => 'array',
'items' => [
'description' => '属性详情。',
'type' => 'object',
'properties' => [
'Name' => ['title' => '属性名', 'description' => '属性名。', 'type' => 'string', 'required' => false, 'example' => 'remote_hosts', 'maxLength' => 1024, 'minLength' => 1],
'Value' => ['title' => '属性值', 'description' => '属性值。', 'type' => 'string', 'required' => false, 'example' => '127.0.0.1', 'maxLength' => 1024, 'minLength' => 1],
'Description' => ['title' => '描述', 'description' => '描述。', 'type' => 'string', 'required' => false, 'example' => 'Remote host', 'maxLength' => 1024],
],
'required' => false,
],
'required' => false,
],
'JmeterPluginLabel' => ['title' => 'jmeter插件的环境标签', 'description' => '插件标签。', 'type' => 'string', 'required' => false, 'example' => 'test', 'maxLength' => 32, 'pattern' => '^[A-Z0-9]+$'],
],
'required' => true,
'docRequired' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'EnvId' => ['title' => '操作的环境id', 'description' => '操作环境的ID。', 'type' => 'string', 'example' => '10YPA8H'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
503 => [
['errorCode' => 'SaveEnvFail', 'errorMessage' => 'The env cannot be empty.', 'description' => '环境参数不能为空'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"HttpStatusCode\\": 0,\\n \\"EnvId\\": \\"10YPA8H\\",\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<SaveEnvResponse>\\n <Message>空</Message>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <EnvId>10YPA8H</EnvId>\\n <Code>200</Code>\\n <Success>true</Success>\\n</SaveEnvResponse>","errorExample":""}]',
'title' => '保存环境',
'changeSet' => [
['createdAt' => '2021-12-23T11:21:47.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2021-12-20T08:51:10.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2021-12-20T03:42:13.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2021-12-07T03:21:27.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SaveEnv'],
],
],
'ramActions' => [],
],
'SaveOpenJMeterScene' => [
'summary' => '新建或更新JMeter场景。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'abilityTreeCode' => '104490',
'abilityTreeNodes' => ['FEATUREptsFQKRPS'],
],
'parameters' => [
[
'name' => 'OpenJMeterScene',
'in' => 'query',
'style' => 'json',
'schema' => [
'title' => '场景详情',
'description' => '场景详情。',
'type' => 'object',
'properties' => [
'SceneName' => ['title' => '场景名', 'description' => '场景名。', 'type' => 'string', 'required' => true, 'example' => 'test'],
'EnvironmentId' => ['title' => '关联的环境id', 'description' => '关联的环境ID。', 'type' => 'string', 'required' => false, 'example' => 'I8PZIH'],
'JmeterPluginLabel' => ['title' => 'jmeter插件的环境标签', 'description' => 'jmeter插件标签。', 'type' => 'string', 'required' => false, 'example' => 'test', 'maxLength' => 32, 'pattern' => '^[A-Z0-9]+$'],
'TestFile' => ['title' => '测试文件', 'description' => '测试文件。', 'type' => 'string', 'required' => true, 'example' => 'test.jmx'],
'FileList' => [
'title' => '文件列表',
'description' => '文件列表。',
'type' => 'array',
'items' => [
'description' => '文件详情。',
'type' => 'object',
'properties' => [
'FileName' => ['title' => '文件名', 'description' => '文件名。', 'type' => 'string', 'required' => true, 'example' => 'test.jmx'],
'FileOssAddress' => ['title' => '文件公网可访问的oss地址', 'description' => '文件在公网可访问的OSS地址。'."\n"
.'>目前仅支持上海地域。', 'type' => 'string', 'required' => true, 'example' => 'https://test.cn-shanghai.aliyuncs.com/test.jmx'],
'Md5' => ['title' => '文件的MD5', 'description' => '文件的MD5。', 'type' => 'string', 'required' => false, 'example' => 'DA70F97A74D76B6A3BEF9CC8AE0D89EB'],
'FileId' => ['title' => '文件id', 'description' => '文件ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '61232'],
'SplitCsv' => ['title' => '是否切分,仅针对csv有效', 'description' => '是否切分,仅针对CSV有效。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'FileSize' => ['title' => '文件大小,单位byte', 'description' => '文件大小,文件总大小不超过500 M,单位Byte。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '28880'],
'Tags' => ['title' => '文件tag', 'description' => '文件标签。', 'type' => 'string', 'required' => false, 'example' => '空'],
],
'required' => false,
],
'required' => true,
],
'JMeterProperties' => [
'title' => 'Jmeter属性',
'description' => 'JMeter属性。',
'type' => 'array',
'items' => [
'description' => '属性详情。',
'type' => 'object',
'properties' => [
'Name' => ['description' => '属性名。', 'type' => 'string', 'required' => false, 'example' => 'https.sessioncontext.shared'],
'Value' => ['description' => '属性值。', 'type' => 'string', 'required' => false, 'example' => 'false'],
],
'required' => false,
],
'required' => false,
],
'RampUp' => ['title' => '预热时间', 'description' => '预热时间,单位秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '600'],
'Steps' => ['title' => '预热阶段', 'description' => '预热阶段。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'],
'Concurrency' => ['title' => '最大并发', 'description' => '最大并发,并发上限由用户的资源包决定,在mode= CONCURRENCY时必须设置。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
'Duration' => ['title' => '压测持续时间', 'description' => '压测持续时间,最长压测时间不超过一天,单位秒,取值范围为 60~86400。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '600'],
'SceneId' => ['title' => '场景ID', 'description' => '场景ID。没有传场景ID表示新建场景,传场景ID表示更新场景。', 'type' => 'string', 'required' => false, 'example' => 'DYYPZIH'],
'IsVpcTest' => ['title' => '是否为VPC测试,默认为false表示公网测试,此值为true时VPC相关配置才生效', 'description' => '是否为VPC测试。默认为false,表示公网测试。当此值为true时,VPC相关配置才会生效。', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'false'],
'DnsCacheConfig' => [
'title' => 'DNS配置',
'description' => 'DNS配置。',
'type' => 'object',
'properties' => [
'ClearCacheEachIteration' => ['description' => '每次循环是否清空缓存。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'DnsServers' => [
'description' => 'DNS服务器。',
'type' => 'array',
'items' => ['description' => 'DNS服务器详情。', 'type' => 'string', 'required' => false, 'example' => '[8.8.8.8]'],
'required' => false,
],
'HostTable' => [
'description' => '域名绑定。',
'type' => 'object',
'required' => false,
'additionalProperties' => ['type' => 'string', 'example' => '"ns.server.om":"8.8.8.8"', 'description' => '域名绑定详情。'],
],
],
'required' => false,
],
'AgentCount' => ['title' => '施压引擎数量', 'description' => '施压机数量。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '2'],
'RegionId' => ['title' => 'region的id,VPC压测时配置', 'description' => '地域ID,在VPC压测时配置。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'],
'VpcId' => ['title' => 'vpc的id,VPC压测时配置', 'description' => 'VPC的ID,在VPC压测时配置。', 'type' => 'string', 'required' => false, 'example' => 'vpc-2ze2sahjdgahsebjkqhf4pyj'],
'SecurityGroupId' => ['title' => '安全组id,VPC压测时配置', 'description' => '安全组ID,在VPC压测时配置。', 'type' => 'string', 'required' => false, 'example' => 'sg-2zeid0dd7bhahsgdahspaly'],
'VSwitchId' => ['title' => '交换机id,VPC压测时配置', 'description' => '交换机ID,在VPC压测时配置。', 'type' => 'string', 'required' => false, 'example' => 'vsw-2zehsgdhsahw1r'],
'SyncTimerType' => ['title' => 'synchronizing timer 类型', 'description' => 'JMeter中的同步定时器类型。', 'type' => 'string', 'required' => false, 'example' => 'GLOBAL'],
'ConstantThroughputTimerType' => ['title' => 'constantThroughputTimerType', 'description' => 'JMeter中的固定吞吐量定时器类型。', 'type' => 'string', 'required' => false, 'example' => 'GLOBAL'],
'Mode' => ['title' => '压力模式', 'description' => '施压模型。', 'type' => 'string', 'required' => true, 'example' => 'CONCURRENCY'],
'StartRps' => ['description' => '起始的RPS,RPS模式下生效。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'MaxRps' => ['description' => '最大RPS,RPS模式下生效。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'StartConcurrency' => ['description' => '起始并发,并发模式下生效,在mode= CONCURRENCY时必须设置。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'RegionalCondition' => [
'description' => '施压机地域定制',
'type' => 'array',
'items' => [
'description' => '单地域施压机数量',
'type' => 'object',
'properties' => [
'Region' => ['description' => '地域id', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
'Amount' => ['description' => '施压机数量,所有地域施压机数量之和需要等于场景的AgentCount值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
'required' => false,
],
'required' => false,
],
],
'required' => true,
'docRequired' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'SceneId' => ['title' => '场景id', 'description' => '创建或更新的场景ID。', 'type' => 'string', 'example' => 'DYYPZIH'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string', 'example' => '空'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'SaveOpenJMeterSceneFail', 'errorMessage' => 'The scene cannot be empty.', 'description' => '场景内容不能为空'],
],
],
'title' => '保存场景',
'changeSet' => [
['createdAt' => '2024-01-23T11:52:16.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2021-12-20T08:51:10.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2021-12-07T03:21:27.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2021-12-01T13:24:31.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SaveOpenJMeterScene'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'pts:SaveOpenJMeterScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"SceneId\\": \\"DYYPZIH\\",\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"Message\\": \\"空\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<SaveOpenJMeterSceneResponse>\\n <SceneId>DYYPZIH</SceneId>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Message>空</Message>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</SaveOpenJMeterSceneResponse>","errorExample":""}]',
],
'SavePtsScene' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Scene',
'in' => 'query',
'style' => 'json',
'schema' => [
'title' => '场景详细信息',
'description' => '场景详细信息。',
'type' => 'object',
'properties' => [
'SceneId' => ['title' => '场景ID,不传为新建,传递为修改', 'description' => '场景ID。没有传场景ID表示新建场景,传场景ID表示更新场景。', 'type' => 'string', 'required' => false, 'example' => 'IUYAHGJ'],
'SceneName' => ['title' => '场景名', 'description' => '场景名。', 'type' => 'string', 'required' => true, 'example' => 'test'],
'RelationList' => [
'title' => '链路配置',
'description' => '链路配置。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RelationName' => ['title' => '链路名', 'description' => '链路名。', 'type' => 'string', 'required' => true, 'example' => 'Link 1'],
'RelationId' => ['title' => '链路id', 'description' => '链路ID。', 'type' => 'string', 'required' => false, 'example' => '1'],
'ApiList' => [
'title' => '链路下的API信息',
'description' => '链路下的API信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ApiName' => ['title' => 'API名', 'description' => 'API名称。', 'type' => 'string', 'required' => true, 'example' => 'api'],
'Url' => ['title' => '压测URL', 'description' => '压测URL。', 'type' => 'string', 'required' => true, 'example' => 'http://www.example.com'],
'Method' => ['title' => '请求方法', 'description' => '请求方法。', 'type' => 'string', 'required' => true, 'example' => 'GET'],
'ApiId' => ['title' => 'API的id', 'description' => 'API的ID。', 'type' => 'string', 'required' => false, 'example' => '1'],
'ExportList' => [
'title' => '出参',
'description' => '出参。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ExportType' => ['title' => '出参来源 请求体(BODY_TEXT),请求体(BODY_JSON),请求头(HEADER),响应状态码(STATUS_CODE)', 'description' => '出参来源。包括:'."\n"
."\n"
.'- 请求体(BODY_TEXT)'."\n"
.'- 请求体(BODY_JSON)'."\n"
.'- 请求头(HEADER)'."\n"
.'- 响应状态码(STATUS_CODE)', 'type' => 'string', 'required' => false, 'example' => 'BODY_JSON'],
'ExportName' => ['title' => '出参名', 'description' => '出参名。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Count' => ['title' => '第几个匹配项,可以是数字 或 random( BODY_TEXT情况下才需要count)', 'description' => '第几个匹配项。可以是数字或Random,当出参来源为请求体(BODY_TEXT)时需要填写该项。', 'type' => 'string', 'required' => false, 'example' => '0'],
'ExportValue' => ['title' => '出参的解析表达式', 'description' => '出参的解析表达式。', 'type' => 'string', 'required' => false, 'example' => 'data.itemlist[0]'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
'HeaderList' => [
'title' => 'headerList',
'description' => 'Header请求头。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'HeaderName' => ['title' => 'header参数名', 'description' => 'Header参数名。', 'type' => 'string', 'required' => false, 'example' => 'Accept-Encoding'],
'HeaderValue' => ['title' => '参数对应的值', 'description' => '参数对应的值。', 'type' => 'string', 'required' => false, 'example' => 'gzip, deflate, br'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
'CheckPointList' => [
'title' => '检查点',
'description' => '检查点。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Operator' => ['title' => '检查条件 CheckPointOperator 中', 'description' => '检查点条件。', 'type' => 'string', 'required' => false, 'example' => 'ctn'],
'ExpectValue' => ['title' => '检查内容,即期望值', 'description' => '检查内容,即期望值。', 'type' => 'string', 'required' => false, 'example' => '111'],
'CheckType' => ['title' => '检查点类型 响应body(BODY_TEXT),响应header(HEADER), 响应状态码(STATUS_CODE) ,出参(EXPORTED_PARAM)', 'description' => '检查点类型。包括:'."\n"
."\n"
.'- 响应Body(BODY_TEXT)'."\n"
.'- 响应Header(HEADER)'."\n"
.'- 响应状态码(STATUS_CODE)'."\n"
.'- 出参(EXPORTED_PARAM)', 'type' => 'string', 'required' => false, 'example' => 'EXPORTED_PARAM'],
'CheckPoint' => ['title' => '检查对象 type=HEADER 时,表示header中的字段,type=EXPORTED_PARAM ,表示出参名', 'description' => '检查对象。'."\n"
."\n"
.'当`type=HEADER`时,表示Header中的字段;当`type=EXPORTED_PARAM` 时,表示出参名。', 'type' => 'string', 'required' => false, 'example' => 'userId'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
'TimeoutInSecond' => ['title' => 'API超时时间,单位秒,默认5s,范围[1-60]', 'description' => 'API超时时间。单位秒,默认5s,取值范围[1-60]。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'],
'Body' => [
'title' => '请求body',
'description' => '请求Body。',
'type' => 'object',
'properties' => [
'ContentType' => ['title' => 'body 类型,默认 application/x-www-form-urlencoded', 'description' => 'Body类型,默认`application/x-www-form-urlencoded`。', 'type' => 'string', 'required' => false, 'example' => 'application/x-www-form-urlencoded'],
'BodyValue' => ['title' => 'body 的实际内容 形式 {"key1":"value2","key2":"value2"}', 'description' => 'body的实际内容。例如, {"key1":"value2","key2":"value2"}。', 'type' => 'string', 'required' => false, 'example' => '{\\"global\\":\\"${global}\\",\\"name\\":\\"${name}\\"}'],
],
'required' => false,
],
'RedirectCountLimit' => ['title' => '重定向次数,只能是0(允许重定向)或者10(不允许重定向)', 'description' => '重定向次数。只能是0(允许重定向)或者10(不允许重定向),用户根据自己的情况配置。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0'],
],
'required' => false,
'description' => '',
],
'required' => true,
],
'FileParameterExplainList' => [
'title' => '链路中的文件参数配置信息',
'description' => '链路中的文件参数配置信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FileName' => ['title' => '文件名', 'description' => '文件名。', 'type' => 'string', 'required' => true, 'example' => 'fileName.csv'],
'FileParamName' => ['title' => '文件使用的参数列名', 'description' => '文件使用的参数列名。', 'type' => 'string', 'required' => true, 'example' => 'name,uid,age'],
'BaseFile' => ['title' => '是否作为基准文件', 'description' => '是否作为基准文件。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'CycleOnce' => ['title' => '文件是否轮询一次', 'description' => '文件是否轮询一次。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
],
'required' => false,
'description' => '',
],
'required' => true,
],
'LoadConfig' => [
'title' => '施压配置',
'description' => '施压配置。',
'type' => 'object',
'properties' => [
'TestMode' => ['title' => '施压模式,并发模式(concurrency_mode) 和RPS模式(tps_mode)', 'description' => '施压模式。包括:'."\n"
."\n"
.'- 并发模式(concurrency_mode)'."\n"
.'- RPS模式(tps_mode)', 'type' => 'string', 'required' => true, 'example' => 'concurrency_mode'],
'Configuration' => [
'title' => '场景施压量级配置信息',
'description' => '场景施压量级配置信息。',
'type' => 'object',
'properties' => [
'AllRpsBegin' => ['title' => '所有API的起始RPS总值,均分给每个API,在RPS模式下使用,若不设置该值,则apiLoadConfig必须填写', 'description' => '所有API的起始RPS总值。'."\n"
."\n"
.'均分给每个API,在RPS模式下使用,若不设置该值,则**apiLoadConfig**必须填写。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'AllRpsLimit' => ['title' => '所有API的最大RPS总值,均分给每个API,在RPS模式下使用,若不设置该值,则apiLoadConfig必须填写', 'description' => '所有API的最大RPS总值。'."\n"
."\n"
.'均分给每个API,在RPS模式下使用,若不设置该值,则**apiLoadConfig**必须填写。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'AllConcurrencyBegin' => ['title' => '所有链路的起始并发总值,均分给每个链路,在并发模式下使用,若不设置该值,则relationLoadConfig必须填写', 'description' => '所有链路的起始并发总值。'."\n"
."\n"
.'均分给每个链路,在并发模式下使用,若不设置该值,则**relationLoadConfig**必须填写。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'AllConcurrencyLimit' => ['title' => '所有链路的最大并发总值,均分给每个链路,在并发模式下使用,若不设置该值,则relationLoadConfig必须填写', 'description' => '所有链路的最大并发总值。'."\n"
."\n"
.'均分给每个链路,在并发模式下使用,若不设置该值,则**relationLoadConfig**必须填写。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
'required' => true,
],
'MaxRunningTime' => ['title' => '施压时长,单位分钟,[1-1440]', 'description' => '施压时长。单位分钟,取值范围[1-1440]。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
'AutoStep' => ['title' => '是否自动递增,只有在并发模式下有效,即 testMode=concurrency_mode 时', 'description' => '是否自动递增。只有在并发模式下有效,即`testMode=concurrency_mode`时有效。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'AgentCount' => ['title' => '指定机器数,并发必须大于250(RPS大于2000)才能使用,最大扩展机器数不能超过 最大并发/250(最大RPS/2000)', 'description' => '指定机器数。并发需要>250(RPS>2000)时使用,最大扩展机器数不能超过最大并发数/250(最大RPS/2000)。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'Increment' => ['title' => '递增百分比,取值范围[10,100],且是整十倍;只有在并发模式且是自动递增模式下有效,即 testMode=concurrency_mode 且 autoStep=true 时', 'description' => '递增百分比。取值范围[10,100],取值需是10的倍数。'."\n"
."\n"
.'只在并发模式且同时是自动递增模式下有效,即`testMode=concurrency_mode`且`autoStep=true`时有效。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'],
'KeepTime' => ['title' => '单量级持续时长,单位分钟,一定是小于施压时长 maxRunningTime', 'description' => '单量级持续时长。单位分钟,该时长需小于施压时长**maxRunningTime**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'],
'ApiLoadConfigList' => [
'title' => 'API的起始、最大RPS值设置,在RPS模式下使用',
'description' => 'API的起始、最大RPS值设置,在RPS模式下使用。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ApiId' => ['title' => 'apiId', 'description' => 'API ID。', 'type' => 'string', 'required' => true, 'example' => '1'],
'RpsLimit' => ['title' => '最大RPS值', 'description' => '最大RPS值。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '100'],
'RpsBegin' => ['title' => '起始RPS值', 'description' => '起始RPS值。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '100'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
'VpcLoadConfig' => [
'title' => 'VPC配置',
'description' => 'VPC配置。',
'type' => 'object',
'properties' => [
'VpcId' => ['title' => 'vpcId', 'description' => 'VPC ID。', 'type' => 'string', 'required' => true, 'example' => 'vpc-akjhsdajgjsfggahjkga'],
'VSwitchId' => ['title' => '交换机的Id', 'description' => '交换机 ID。', 'type' => 'string', 'required' => true, 'example' => 'vsw-skjfhlahsljkhsfalkjdoiw'],
'SecurityGroupId' => ['title' => '安全组的Id', 'description' => '安全组 ID。', 'type' => 'string', 'required' => true, 'example' => 'sg-jkasgfieiajidsjakjscb'],
'RegionId' => ['title' => 'regionId', 'description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing'],
],
'required' => false,
],
'RelationLoadConfigList' => [
'title' => '链路的起始、最大并发值设置,在并发模式下使用',
'description' => '链路的起始、最大并发值设置,在并发模式下使用。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RelationId' => ['title' => '链路id', 'description' => '链路ID。', 'type' => 'string', 'required' => false, 'example' => '1'],
'ConcurrencyLimit' => ['title' => '最大并发', 'description' => '最大并发数。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '100'],
'ConcurrencyBegin' => ['title' => 'concurrencyBegin', 'description' => '起始并发。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '100'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
],
'required' => true,
],
'AdvanceSetting' => [
'title' => '高级设置',
'description' => '高级设置。',
'type' => 'object',
'properties' => [
'LogRate' => ['title' => '日志采样率,[1,50],且是10的倍数', 'description' => '日志采样率。取值范围[1,50],大于2时取值需要是10的倍数,即[1,10,20,30,40,50]。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'DomainBindingList' => [
'title' => '域名绑定IP关系',
'description' => '域名绑定IP关系。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Domain' => ['title' => '域名', 'description' => '域名。', 'type' => 'string', 'required' => false, 'example' => 'www.example.com'],
'Ips' => [
'title' => '对应的IP',
'description' => '对应的IP。',
'type' => 'array',
'items' => ['type' => 'string', 'required' => false, 'example' => '["192.168.1.1","192.168.1.2"]', 'description' => ''],
'required' => false,
],
],
'required' => false,
'description' => '',
],
'required' => false,
],
'ConnectionTimeoutInSecond' => ['title' => '超时时间,单位秒', 'description' => '超时时间,单位秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'],
'SuccessCode' => ['title' => '新增成功状态码,多个用英文逗号隔开', 'description' => '新增成功状态码,多个需用半角逗号(,)隔开。', 'type' => 'string', 'required' => false, 'example' => '205'],
],
'required' => false,
],
'GlobalParameterList' => [
'title' => '全局自定义参数',
'description' => '全局自定义参数。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ParamName' => ['title' => '参数名', 'description' => '参数名。', 'type' => 'string', 'required' => false, 'example' => 'global'],
'ParamValue' => ['title' => '全局参数值,不可参数化', 'description' => '全局参数值,不可参数化。', 'type' => 'string', 'required' => false, 'example' => '11111'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
'FileParameterList' => [
'title' => '文件参数',
'description' => '文件参数。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FileName' => ['title' => '文件名', 'description' => '文件名。', 'type' => 'string', 'required' => false, 'example' => 'test.csv'],
'FileOssAddress' => ['title' => '文件的oss地址,必须是公网可访问的', 'description' => '您自己的OSS文件地址,要求公网可访问。', 'type' => 'string', 'required' => false, 'example' => 'https://jmeter-pts-testing-version.oss-cn-shanghai.aliyuncs.com/param-file.csv'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
],
'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误信息提示,若成功则为空。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
'SceneId' => ['title' => '场景ID', 'description' => '场景ID', 'type' => 'string', 'example' => 'IUYAHGJ'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ModifyPtsSceneFail', 'errorMessage' => 'The scene does not exit', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true,\\n \\"SceneId\\": \\"IUYAHGJ\\"\\n}","errorExample":""},{"type":"xml","example":"<SavePtsSceneResponse>\\n <Message>空</Message>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n <SceneId>IUYAHGJ</SceneId>\\n</SavePtsSceneResponse>","errorExample":""}]',
'title' => '保存或修改场景',
'summary' => '保存或修改场景。',
'changeSet' => [
['createdAt' => '2022-03-25T06:50:16.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SavePtsScene'],
],
],
'ramActions' => [],
],
'StartDebugPtsScene' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '22662',
'abilityTreeNodes' => ['FEATUREptsFQKRPS'],
],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'NHBGB8B'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'C1905194-EE28-4F78-AD81-85A40D52D1BC'],
'Message' => ['description' => '错误提示消息,若成功则为空。', 'type' => 'string', 'example' => '空'],
'PlanId' => ['description' => '任务ID。', 'type' => 'string', 'example' => ' NJJBH8B'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
."\n"
.'- true:成功'."\n"
.'- false:失败'."\n", 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'StartDebugPtsSceneFail', 'errorMessage' => 'The scene does not exit', 'description' => ''],
],
],
'title' => '启动场景调试',
'summary' => '启动场景的调试,了解配置信息是否通。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartDebugPtsScene'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'pts:StartDebugPtsScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"C1905194-EE28-4F78-AD81-85A40D52D1BC\\",\\n \\"Message\\": \\"空\\",\\n \\"PlanId\\": \\" NJJBH8B\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<StartDebugPtsSceneResponse>\\n <RequestId>C1905194-EE28-4F78-AD81-85A40D52D1BC</RequestId>\\n <Message/>\\n <PlanId> NJJBH8B</PlanId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</StartDebugPtsSceneResponse>","errorExample":""}]',
],
'StartDebuggingJMeterScene' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['title' => '场景id', 'description' => '需调试的场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DYYPZIH'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'ReportId' => ['description' => '调试生成的报告ID。', 'type' => 'string', 'example' => 'MH0SU1I'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'SceneNotExist', 'errorMessage' => 'The scene does not exist.', 'description' => '场景不存在'],
],
],
'title' => '调试场景',
'summary' => '开始调试JMeter场景。',
'changeSet' => [
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartDebuggingJMeterScene'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'pts:StartDebuggingJMeterScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"Message\\": \\"\\",\\n \\"ReportId\\": \\"MH0SU1I\\",\\n \\"HttpStatusCode\\": 0,\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<StartDebuggingJMeterSceneResponse>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Message>空</Message>\\n <ReportId>MH0SU1I</ReportId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</StartDebuggingJMeterSceneResponse>","errorExample":""}]',
],
'StartPtsScene' => [
'summary' => '启动场景入参为场景ID。',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'high',
'chargeType' => 'paid',
'abilityTreeCode' => '22663',
'abilityTreeNodes' => ['FEATUREptsFQKRPS'],
],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '待启动的场景ID,每次成功创建场景后返回的SceneID,在场景列表页也可查看。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'FGSRA3'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'BD12DCC9-5E48-4E77-9657-8D34D8C0F97B'],
'Message' => ['description' => '错误提示信息,如果是成功,该字段为空。', 'type' => 'string', 'example' => '空'],
'PlanId' => ['description' => '执行场景成功,返回的压测计划ID。', 'type' => 'string', 'example' => 'SFVAFE'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败'."\n", 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'StartPtsSceneFail', 'errorMessage' => 'Scene not exist', 'description' => ''],
],
],
'title' => '启动场景',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartPtsScene'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'pts:StartPtsScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"BD12DCC9-5E48-4E77-9657-8D34D8C0F97B\\",\\n \\"Message\\": \\"空\\",\\n \\"PlanId\\": \\"SFVAFE\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<StartPtsSceneResponse>\\n <RequestId>BD12DCC9-5E48-4E77-9657-8D34D8C0F97B</RequestId>\\n <Message/>\\n <PlanId>SFVAFE</PlanId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</StartPtsSceneResponse>","errorExample":""}]',
],
'StartTestingJMeterScene' => [
'summary' => '开始压测JMeter场景。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '104515',
'abilityTreeNodes' => ['FEATUREptsB8BARJ'],
],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['title' => '场景id', 'description' => '需启动压测的场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DYYPZIH'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'ReportId' => ['description' => '报告ID。', 'type' => 'string', 'example' => 'MH0SU1I'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'SceneNotExist', 'errorMessage' => 'The scene does not exist.', 'description' => '场景不存在'],
],
],
'title' => '压测场景',
'changeSet' => [
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartTestingJMeterScene'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'pts:StartTestingJMeterScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"Message\\": \\"\\",\\n \\"ReportId\\": \\"MH0SU1I\\",\\n \\"HttpStatusCode\\": 0,\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<StartTestingJMeterSceneResponse>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <Message>空</Message>\\n <ReportId>MH0SU1I</ReportId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</StartTestingJMeterSceneResponse>","errorExample":""}]',
],
'StopDebugPtsScene' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'RDDCF7'],
],
[
'name' => 'PlanId',
'in' => 'query',
'schema' => ['description' => '任务ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'FVDC7HB'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则为空。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0AE6505C-55CE-444A-B73B-810D0ED27C66'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败'."\n", 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'StopDebugPtsSceneFail', 'errorMessage' => 'The scene does not exit', 'description' => ''],
],
],
'title' => '停止场景调试',
'summary' => '停止正在调试中的场景。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopDebugPtsScene'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:StopDebugPtsScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"0AE6505C-55CE-444A-B73B-810D0ED27C66\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<StopDebugPtsSceneResponse>\\n <Message/>\\n <RequestId>0AE6505C-55CE-444A-B73B-810D0ED27C66</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</StopDebugPtsSceneResponse>","errorExample":""}]',
],
'StopDebuggingJMeterScene' => [
'summary' => '停止JMeter场景调试。',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['title' => '场景id', 'description' => '需停止调试的场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DYYPZIH'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例',
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'Code' => ['description' => '系统状态码,若成功则为空。', 'type' => 'string'],
'Success' => ['description' => '是否成功'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'SceneNotExist', 'errorMessage' => 'The scene does not exist.', 'description' => '场景不存在'],
],
],
'title' => '停止调试',
'changeSet' => [
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StopDebuggingJMeterScene'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:StopDebuggingJMeterScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"HttpStatusCode\\": 0,\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<StopDebuggingJMeterSceneResponse>\\n <Message>空</Message>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</StopDebuggingJMeterSceneResponse>","errorExample":""}]',
],
'StopPtsScene' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '待停止的场景ID,每次成功创建场景后返回的SceneID,在PTS控制台的场景列表页也可查看。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'GV4DEBG'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,成功该字段为空。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'DD6F2ED8-E31B-497F-85AB-C4E358A5F6F9'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败'."\n", 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'StopPtsSceneFail', 'errorMessage' => 'The scene 11434 has no plan', 'description' => ''],
],
],
'title' => '停止场景',
'summary' => '停止场景入参为场景ID。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopPtsScene'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:StopPtsScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"DD6F2ED8-E31B-497F-85AB-C4E358A5F6F9\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<StopPtsSceneResponse>\\n <IsSuccess>true</IsSuccess>\\n <RequestId>DD6F2ED8-E31B-497F-85AB-C4E358A5F6F9</RequestId>\\n <Message/>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</StopPtsSceneResponse>","errorExample":""}]',
],
'StopTestingJMeterScene' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['title' => '场景id', 'description' => '需停止压测的场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'DYYPZIH'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回示例。',
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,若成功则不返回该字段。', 'type' => 'string'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'A8E16480-15C1-555A-922F-B736A005E52D'],
'HttpStatusCode' => ['description' => 'HTTP状态码,若成功则不返回该字段。', 'type' => 'integer', 'format' => 'int32'],
'Code' => ['description' => '系统状态码,若成功则不返回该字段。', 'type' => 'string'],
'Success' => ['description' => '是否成功。'."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'SceneNotExist', 'errorMessage' => 'The scene does not exist.', 'description' => '场景不存在'],
],
],
'title' => '停止压测',
'summary' => '停止JMeter场景压测。',
'changeSet' => [
['createdAt' => '2021-11-23T08:47:13.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2021-11-19T06:38:31.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StopTestingJMeterScene'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:StopTestingJMeterScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"A8E16480-15C1-555A-922F-B736A005E52D\\",\\n \\"HttpStatusCode\\": 0,\\n \\"Code\\": \\"\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<StopTestingJMeterSceneResponse>\\n <Message>空</Message>\\n <RequestId>A8E16480-15C1-555A-922F-B736A005E52D</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</StopTestingJMeterSceneResponse>","errorExample":""}]',
],
'UpdatePtsSceneBaseLine' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID。更多信息,请参见[参数说明](~~201321~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'NB54CV'],
],
[
'name' => 'SceneBaseline',
'in' => 'query',
'style' => 'json',
'schema' => ['description' => '场景基线数据。可以直接使用amazon-pts-api中的二方包的SceneBaseline类的toJSONString传作为入参。', 'type' => 'object', 'required' => false, 'example' => '{"avgRt":1,"avgTps":1,"failCountBiz":1,"failCountReq":1,"seg90Rt":1,"seg99Rt":2,"successRateBiz":0.5,"successRateReq":1}'],
],
[
'name' => 'ApiBaselines',
'in' => 'query',
'style' => 'json',
'schema' => ['description' => 'API基线数据。可以直接使用amazon-pts-api中的二方包的ApiBaseLine类的list数组的toJSONString传作为入参。', 'type' => 'object', 'required' => false, 'example' => '[{"avgRt":1,"avgTps":1,"failCountBiz":1,"failCountReq":182381,"id":362447,"maxRt":3051,"minRt":0,"name":"1-1","seg50Rt":1,"seg75Rt":1,"seg90Rt":1,"seg99Rt":3,"successRateBiz":1,"successRateReq":0,"timingConnAvg":0},{"avgRt":1.06,"avgTps":1,"failCountBiz":0,"failCountReq":151143,"id":362446,"maxRt":3068,"minRt":0,"name":"dd","seg50Rt":1,"seg75Rt":1,"seg90Rt":1,"seg99Rt":2,"successRateBiz":1,"successRateReq":0}]'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '错误提示信息,如成功则为空。', 'type' => 'string', 'example' => '空'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4F7D2CE0-AE4C-4143-955A-8E4595AF86A6'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '系统状态码。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否成功。'."\n"
."\n"
.'- true:成功'."\n"
.'- false:失败', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'UpdatePtsSceneBaseLineFail', 'errorMessage' => 'The scene cannot be empty.', 'description' => ''],
],
],
'title' => '修改场景基线',
'summary' => '更新一个场景的基线数据。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdatePtsSceneBaseLine'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'pts:UpdatePtsSceneBaseLine',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'PTS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"空\\",\\n \\"RequestId\\": \\"4F7D2CE0-AE4C-4143-955A-8E4595AF86A6\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<UpdatePtsSceneBaseLineResponse>\\n <Message/>\\n <RequestId>4F7D2CE0-AE4C-4143-955A-8E4595AF86A6</RequestId>\\n <HttpStatusCode>200</HttpStatusCode>\\n <Code>200</Code>\\n <Success>true</Success>\\n</UpdatePtsSceneBaseLineResponse>","errorExample":""}]',
],
],
'endpoints' => [
['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-2', 'regionName' => '澳大利亚(悉尼)已关停', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-south-1', 'regionName' => '印度(孟买)已关停', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'me-east-1', 'regionName' => '阿联酋(迪拜)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing-finance-1', 'regionName' => '华北2 金融云(邀测)', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'pts.aliyuncs.com', 'endpoint' => 'pts.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
['code' => 'EnvNotExist', 'message' => 'The env does not exist.', 'http_code' => 503, 'description' => '环境不存在'],
['code' => 'Forbidden.NoPermission', 'message' => 'Call method permission denied, please grant permission for current account. https://help.aliyun.com/zh/pts/grant-pts-permissions-to-ram-users-or-roles.', 'http_code' => 403, 'description' => '无调用该接口的权限,请参照文档进行赋权。https://help.aliyun.com/zh/pts/grant-pts-permissions-to-ram-users-or-roles.'],
['code' => 'InvalidParameter', 'message' => 'The input parameter SceneId is invalid.', 'http_code' => 400, 'description' => '指定的 SceneId 不合法,请您检查 SceneId 是否正确,且存在。'],
['code' => 'InvalidParameter', 'message' => 'The specified parameter is invalid.', 'http_code' => 403, 'description' => '参数错误,请检查'],
['code' => 'micros.errorcode.invalid.params.not.empty.message', 'message' => 'You must specify the parameter %s.', 'http_code' => 400, 'description' => '你必须指明你的参数 '],
['code' => 'ReportNotExist', 'message' => 'The report does not exist.', 'http_code' => 403, 'description' => '报告不存在'],
['code' => 'SaveEnvFail', 'message' => 'The env cannot be empty.', 'http_code' => 503, 'description' => '环境参数不能为空'],
['code' => 'SaveOpenJMeterSceneFail', 'message' => 'The scene cannot be empty.', 'http_code' => 403, 'description' => '场景内容不能为空'],
['code' => 'SceneNotExist', 'message' => 'The scene does not exist.', 'http_code' => 403, 'description' => '场景不存在'],
['code' => 'Success', 'message' => 'The operation is successful.', 'http_code' => 200, 'description' => '执行成功'],
],
'changeSet' => [
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'ListPtsScene'],
],
'createdAt' => '2024-03-07T07:30:46.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetOpenJMeterScene'],
['description' => '响应参数发生变更', 'api' => 'ListOpenJMeterScenes'],
['description' => '请求参数发生变更', 'api' => 'SaveOpenJMeterScene'],
],
'createdAt' => '2024-01-23T11:52:25.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetJMeterSceneRunningData'],
],
'createdAt' => '2023-12-06T11:20:27.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetPtsScene'],
],
'createdAt' => '2023-03-27T03:49:28.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetPtsSceneRunningData'],
],
'createdAt' => '2022-11-07T02:54:06.000Z',
'description' => '1. 支持PTS压测调速OpenAPI2. 支持开通PTS服务OpenAPI',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetUserVpcs'],
['description' => '响应参数发生变更', 'api' => 'GetUserVpcSecurityGroup'],
['description' => '响应参数发生变更', 'api' => 'GetUserVpcVSwitch'],
['description' => '请求参数发生变更', 'api' => 'ModifyPtsScene'],
],
'createdAt' => '2022-05-11T02:41:36.000Z',
'description' => 'ModifyPtsScene支持form-data格式参数',
],
[
'apis' => [
['description' => 'OpenAPI 下线', 'api' => 'AdjustJMeterSceneSpeed'],
['description' => 'OpenAPI 下线', 'api' => 'GetAllRegions'],
['description' => 'OpenAPI 下线', 'api' => 'GetUserVpcs'],
['description' => 'OpenAPI 下线', 'api' => 'GetUserVpcSecurityGroup'],
['description' => 'OpenAPI 下线', 'api' => 'GetUserVpcVSwitch'],
],
'createdAt' => '2022-04-18T03:06:01.000Z',
'description' => '新增VPC功能',
],
[
'apis' => [
['description' => 'OpenAPI 下线', 'api' => 'SavePtsScene'],
],
'createdAt' => '2022-03-25T06:51:31.000Z',
'description' => '新增创建和修改PTS场景的接口,使用格式化传值',
],
[
'apis' => [
['description' => 'OpenAPI 下线', 'api' => 'GetUserVumPackages'],
],
'createdAt' => '2022-01-05T09:37:17.000Z',
'description' => '增加查询资源包的API',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetPtsScene'],
],
'createdAt' => '2021-12-28T04:35:42.000Z',
'description' => 'GetScene支持获取RPS配置',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'SaveEnv'],
],
'createdAt' => '2021-12-23T11:22:22.000Z',
'description' => '调整env文件限制数量',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'SaveEnv'],
['description' => '请求参数发生变更', 'api' => 'SaveOpenJMeterScene'],
],
'createdAt' => '2021-12-20T09:18:27.000Z',
'description' => '设置jmeterpluginLabel为可见',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetJMeterSceneRunningData'],
['description' => '请求参数发生变更', 'api' => 'SaveEnv'],
],
'createdAt' => '2021-12-20T06:11:16.000Z',
'description' => '增加runningData返回数据',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'SaveEnv'],
['description' => '请求参数发生变更', 'api' => 'SaveOpenJMeterScene'],
],
'createdAt' => '2021-12-07T15:37:54.000Z',
'description' => 'jmeter 场景和环境增加 jmeter_plugin_label字段',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetOpenJMeterScene'],
['description' => '请求参数发生变更', 'api' => 'ListJMeterReports'],
['description' => '请求参数发生变更', 'api' => 'SaveOpenJMeterScene'],
],
'createdAt' => '2021-12-01T13:25:01.000Z',
'description' => 'timers to timerType',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'GetJMeterLogs'],
['description' => '错误码发生变更', 'api' => 'GetJMeterSampleMetrics'],
['description' => '错误码发生变更', 'api' => 'GetJMeterSamplingLogs'],
['description' => '错误码发生变更', 'api' => 'GetJMeterSceneRunningData'],
['description' => '错误码发生变更、响应参数发生变更', 'api' => 'GetOpenJMeterScene'],
['description' => '错误码发生变更', 'api' => 'ListEnvs'],
['description' => '错误码发生变更', 'api' => 'ListJMeterReports'],
['description' => '错误码发生变更', 'api' => 'ListOpenJMeterScenes'],
['description' => '错误码发生变更', 'api' => 'RemoveEnv'],
['description' => '错误码发生变更', 'api' => 'RemoveOpenJMeterScene'],
],
'createdAt' => '2021-11-23T08:47:54.000Z',
'description' => '错误码修改',
],
[
'apis' => [
['description' => 'OpenAPI 下线', 'api' => 'GetJMeterLogs'],
['description' => 'OpenAPI 下线', 'api' => 'GetJMeterSampleMetrics'],
['description' => 'OpenAPI 下线', 'api' => 'GetJMeterSamplingLogs'],
['description' => 'OpenAPI 下线', 'api' => 'GetJMeterSceneRunningData'],
['description' => 'OpenAPI 下线', 'api' => 'GetOpenJMeterScene'],
['description' => 'OpenAPI 下线', 'api' => 'ListEnvs'],
['description' => 'OpenAPI 下线', 'api' => 'ListJMeterReports'],
['description' => 'OpenAPI 下线', 'api' => 'ListOpenJMeterScenes'],
['description' => 'OpenAPI 下线', 'api' => 'RemoveEnv'],
['description' => 'OpenAPI 下线', 'api' => 'RemoveOpenJMeterScene'],
],
'createdAt' => '2021-11-19T06:39:12.000Z',
'description' => 'jmeter OpenAPI',
],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopDebugPtsScene'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreatePtsScene'],
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListPtsScene'],
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RemoveOpenJMeterScene'],
['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveEnv'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsSceneRunningData'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SaveEnv'],
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetJMeterSceneRunningData'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEnvs'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SavePtsScene'],
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StopTestingJMeterScene'],
['threshold' => '5', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreatePtsSceneBaseLineFromReport'],
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ModifyPtsScene'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartDebugPtsScene'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsReportsBySceneId'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AdjustPtsSceneSpeed'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePtsSceneBaseLine'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetJMeterSamplingLogs'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsDebugSampleLogs'],
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StopDebuggingJMeterScene'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsScene'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsSceneBaseLine'],
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartDebuggingJMeterScene'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsReportDetails'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPtsSceneRunningStatus'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdatePtsSceneBaseLine'],
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartTestingJMeterScene'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetJMeterLogs'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetJMeterSampleMetrics'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopPtsScene'],
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListOpenJMeterScenes'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAllRegions'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePtsScene'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePtsScenes'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListPtsReports'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartPtsScene'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SaveOpenJMeterScene'],
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetOpenJMeterScene'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListJMeterReports'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AdjustJMeterSceneSpeed'],
],
],
'ram' => [
'productCode' => 'PTS',
'productName' => '性能测试',
'ramCodes' => ['pts'],
'ramLevel' => '服务级',
'ramActions' => [],
'resourceTypes' => [],
],
];
|