@alicloud/eas20210701 1.1.7 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -4,6 +4,25 @@
4
4
  import * as $Util from '@alicloud/tea-util';
5
5
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
6
  import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class Group extends $tea.Model {
8
+ accessToken?: string;
9
+ clusterId?: string;
10
+ createTime?: string;
11
+ internetEndpoint?: string;
12
+ intranetEndpoint?: string;
13
+ name?: string;
14
+ queueService?: string;
15
+ updateTime?: string;
16
+ static names(): {
17
+ [key: string]: string;
18
+ };
19
+ static types(): {
20
+ [key: string]: any;
21
+ };
22
+ constructor(map?: {
23
+ [key: string]: any;
24
+ });
25
+ }
7
26
  export declare class Instance extends $tea.Model {
8
27
  hostIP?: string;
9
28
  hostName?: string;
@@ -57,12 +76,14 @@ export declare class Resource extends $tea.Model {
57
76
  });
58
77
  }
59
78
  export declare class ResourceInstance extends $tea.Model {
79
+ arch?: string;
60
80
  autoRenewal?: boolean;
61
81
  chargeType?: string;
62
82
  createTime?: string;
63
83
  expiredTime?: string;
64
84
  instanceCpuCount?: number;
65
85
  instanceGpuCount?: number;
86
+ instanceGpuMemory?: string;
66
87
  instanceId?: string;
67
88
  instanceIp?: string;
68
89
  instanceMemory?: string;
@@ -72,6 +93,8 @@ export declare class ResourceInstance extends $tea.Model {
72
93
  instanceUsedCpu?: number;
73
94
  instanceUsedGpu?: number;
74
95
  instanceUsedMemory?: string;
96
+ region?: string;
97
+ zone?: string;
75
98
  static names(): {
76
99
  [key: string]: string;
77
100
  };
@@ -127,6 +150,8 @@ export declare class Service extends $tea.Model {
127
150
  requestId?: string;
128
151
  resource?: string;
129
152
  resourceAlias?: string;
153
+ role?: string;
154
+ roleAttrs?: string;
130
155
  runningInstance?: number;
131
156
  serviceConfig?: string;
132
157
  serviceGroup?: string;
@@ -162,9 +187,9 @@ export declare class CreateBenchmarkTaskRequest extends $tea.Model {
162
187
  }
163
188
  export declare class CreateBenchmarkTaskResponseBody extends $tea.Model {
164
189
  message?: string;
165
- name?: string;
166
190
  region?: string;
167
191
  requestId?: string;
192
+ taskName?: string;
168
193
  static names(): {
169
194
  [key: string]: string;
170
195
  };
@@ -374,7 +399,7 @@ export declare class CreateServiceResponse extends $tea.Model {
374
399
  export declare class CreateServiceAutoScalerRequest extends $tea.Model {
375
400
  max?: number;
376
401
  min?: number;
377
- strategies?: CreateServiceAutoScalerRequestStrategies;
402
+ scaleStrategies?: CreateServiceAutoScalerRequestScaleStrategies[];
378
403
  static names(): {
379
404
  [key: string]: string;
380
405
  };
@@ -817,6 +842,7 @@ export declare class DescribeBenchmarkTaskResponseBody extends $tea.Model {
817
842
  availableAgent?: number;
818
843
  callerUid?: string;
819
844
  desiredAgent?: number;
845
+ endpoint?: string;
820
846
  message?: string;
821
847
  parentUid?: string;
822
848
  reason?: string;
@@ -852,7 +878,20 @@ export declare class DescribeBenchmarkTaskResponse extends $tea.Model {
852
878
  [key: string]: any;
853
879
  });
854
880
  }
881
+ export declare class DescribeBenchmarkTaskReportRequest extends $tea.Model {
882
+ reportType?: string;
883
+ static names(): {
884
+ [key: string]: string;
885
+ };
886
+ static types(): {
887
+ [key: string]: any;
888
+ };
889
+ constructor(map?: {
890
+ [key: string]: any;
891
+ });
892
+ }
855
893
  export declare class DescribeBenchmarkTaskReportResponseBody extends $tea.Model {
894
+ data?: any;
856
895
  reportUrl?: string;
857
896
  requestId?: string;
858
897
  static names(): {
@@ -881,6 +920,22 @@ export declare class DescribeBenchmarkTaskReportResponse extends $tea.Model {
881
920
  [key: string]: any;
882
921
  });
883
922
  }
923
+ export declare class DescribeGroupResponse extends $tea.Model {
924
+ headers: {
925
+ [key: string]: string;
926
+ };
927
+ statusCode: number;
928
+ body: Group;
929
+ static names(): {
930
+ [key: string]: string;
931
+ };
932
+ static types(): {
933
+ [key: string]: any;
934
+ };
935
+ constructor(map?: {
936
+ [key: string]: any;
937
+ });
938
+ }
884
939
  export declare class DescribeResourceResponseBody extends $tea.Model {
885
940
  clusterId?: string;
886
941
  cpuCount?: number;
@@ -1008,16 +1063,12 @@ export declare class DescribeServiceAutoScalerResponseBody extends $tea.Model {
1008
1063
  behavior?: {
1009
1064
  [key: string]: any;
1010
1065
  };
1011
- currentValues?: {
1012
- [key: string]: any;
1013
- };
1066
+ currentMetrics?: DescribeServiceAutoScalerResponseBodyCurrentMetrics[];
1014
1067
  maxReplica?: number;
1015
1068
  minReplica?: number;
1016
1069
  requestId?: string;
1070
+ scaleStrategies?: DescribeServiceAutoScalerResponseBodyScaleStrategies[];
1017
1071
  serviceName?: string;
1018
- strategies?: {
1019
- [key: string]: any;
1020
- };
1021
1072
  static names(): {
1022
1073
  [key: string]: string;
1023
1074
  };
@@ -1075,6 +1126,53 @@ export declare class DescribeServiceCronScalerResponse extends $tea.Model {
1075
1126
  [key: string]: any;
1076
1127
  });
1077
1128
  }
1129
+ export declare class DescribeServiceEventRequest extends $tea.Model {
1130
+ endTime?: string;
1131
+ pageNum?: string;
1132
+ pageSize?: string;
1133
+ startTime?: string;
1134
+ static names(): {
1135
+ [key: string]: string;
1136
+ };
1137
+ static types(): {
1138
+ [key: string]: any;
1139
+ };
1140
+ constructor(map?: {
1141
+ [key: string]: any;
1142
+ });
1143
+ }
1144
+ export declare class DescribeServiceEventResponseBody extends $tea.Model {
1145
+ events?: DescribeServiceEventResponseBodyEvents[];
1146
+ pageNum?: number;
1147
+ requestId?: string;
1148
+ totalCount?: number;
1149
+ totalPageNum?: number;
1150
+ static names(): {
1151
+ [key: string]: string;
1152
+ };
1153
+ static types(): {
1154
+ [key: string]: any;
1155
+ };
1156
+ constructor(map?: {
1157
+ [key: string]: any;
1158
+ });
1159
+ }
1160
+ export declare class DescribeServiceEventResponse extends $tea.Model {
1161
+ headers: {
1162
+ [key: string]: string;
1163
+ };
1164
+ statusCode: number;
1165
+ body: DescribeServiceEventResponseBody;
1166
+ static names(): {
1167
+ [key: string]: string;
1168
+ };
1169
+ static types(): {
1170
+ [key: string]: any;
1171
+ };
1172
+ constructor(map?: {
1173
+ [key: string]: any;
1174
+ });
1175
+ }
1078
1176
  export declare class DescribeServiceLogRequest extends $tea.Model {
1079
1177
  endTime?: string;
1080
1178
  ip?: string;
@@ -1155,9 +1253,27 @@ export declare class DescribeServiceMirrorResponse extends $tea.Model {
1155
1253
  [key: string]: any;
1156
1254
  });
1157
1255
  }
1256
+ export declare class ListBenchmarkTaskRequest extends $tea.Model {
1257
+ fileter?: string;
1258
+ pageNumber?: string;
1259
+ pageSize?: string;
1260
+ serviceName?: string;
1261
+ static names(): {
1262
+ [key: string]: string;
1263
+ };
1264
+ static types(): {
1265
+ [key: string]: any;
1266
+ };
1267
+ constructor(map?: {
1268
+ [key: string]: any;
1269
+ });
1270
+ }
1158
1271
  export declare class ListBenchmarkTaskResponseBody extends $tea.Model {
1272
+ pageNumber?: number;
1273
+ pageSize?: number;
1159
1274
  requestId?: string;
1160
1275
  tasks?: ListBenchmarkTaskResponseBodyTasks[];
1276
+ totalCount?: number;
1161
1277
  static names(): {
1162
1278
  [key: string]: string;
1163
1279
  };
@@ -1184,6 +1300,52 @@ export declare class ListBenchmarkTaskResponse extends $tea.Model {
1184
1300
  [key: string]: any;
1185
1301
  });
1186
1302
  }
1303
+ export declare class ListGroupsRequest extends $tea.Model {
1304
+ filter?: string;
1305
+ pageNumber?: string;
1306
+ pageSize?: string;
1307
+ static names(): {
1308
+ [key: string]: string;
1309
+ };
1310
+ static types(): {
1311
+ [key: string]: any;
1312
+ };
1313
+ constructor(map?: {
1314
+ [key: string]: any;
1315
+ });
1316
+ }
1317
+ export declare class ListGroupsResponseBody extends $tea.Model {
1318
+ groups?: Group[];
1319
+ pageNumber?: number;
1320
+ pageSize?: number;
1321
+ requestId?: string;
1322
+ totalCount?: number;
1323
+ static names(): {
1324
+ [key: string]: string;
1325
+ };
1326
+ static types(): {
1327
+ [key: string]: any;
1328
+ };
1329
+ constructor(map?: {
1330
+ [key: string]: any;
1331
+ });
1332
+ }
1333
+ export declare class ListGroupsResponse extends $tea.Model {
1334
+ headers: {
1335
+ [key: string]: string;
1336
+ };
1337
+ statusCode: number;
1338
+ body: ListGroupsResponseBody;
1339
+ static names(): {
1340
+ [key: string]: string;
1341
+ };
1342
+ static types(): {
1343
+ [key: string]: any;
1344
+ };
1345
+ constructor(map?: {
1346
+ [key: string]: any;
1347
+ });
1348
+ }
1187
1349
  export declare class ListResourceInstanceWorkerRequest extends $tea.Model {
1188
1350
  pageNumber?: number;
1189
1351
  pageSize?: number;
@@ -1410,8 +1572,54 @@ export declare class ListServiceInstancesResponse extends $tea.Model {
1410
1572
  [key: string]: any;
1411
1573
  });
1412
1574
  }
1575
+ export declare class ListServiceVersionsRequest extends $tea.Model {
1576
+ pageNumber?: number;
1577
+ pageSize?: number;
1578
+ static names(): {
1579
+ [key: string]: string;
1580
+ };
1581
+ static types(): {
1582
+ [key: string]: any;
1583
+ };
1584
+ constructor(map?: {
1585
+ [key: string]: any;
1586
+ });
1587
+ }
1588
+ export declare class ListServiceVersionsResponseBody extends $tea.Model {
1589
+ pageNumber?: number;
1590
+ pageSize?: number;
1591
+ requestId?: string;
1592
+ totalCount?: number;
1593
+ versions?: ListServiceVersionsResponseBodyVersions[];
1594
+ static names(): {
1595
+ [key: string]: string;
1596
+ };
1597
+ static types(): {
1598
+ [key: string]: any;
1599
+ };
1600
+ constructor(map?: {
1601
+ [key: string]: any;
1602
+ });
1603
+ }
1604
+ export declare class ListServiceVersionsResponse extends $tea.Model {
1605
+ headers: {
1606
+ [key: string]: string;
1607
+ };
1608
+ statusCode: number;
1609
+ body: ListServiceVersionsResponseBody;
1610
+ static names(): {
1611
+ [key: string]: string;
1612
+ };
1613
+ static types(): {
1614
+ [key: string]: any;
1615
+ };
1616
+ constructor(map?: {
1617
+ [key: string]: any;
1618
+ });
1619
+ }
1413
1620
  export declare class ListServicesRequest extends $tea.Model {
1414
1621
  filter?: string;
1622
+ groupName?: string;
1415
1623
  order?: string;
1416
1624
  pageNumber?: number;
1417
1625
  pageSize?: number;
@@ -1787,7 +1995,7 @@ export declare class UpdateServiceResponse extends $tea.Model {
1787
1995
  export declare class UpdateServiceAutoScalerRequest extends $tea.Model {
1788
1996
  max?: number;
1789
1997
  min?: number;
1790
- strategies?: UpdateServiceAutoScalerRequestStrategies;
1998
+ scaleStrategies?: UpdateServiceAutoScalerRequestScaleStrategies[];
1791
1999
  static names(): {
1792
2000
  [key: string]: string;
1793
2001
  };
@@ -1952,9 +2160,10 @@ export declare class UpdateServiceVersionResponse extends $tea.Model {
1952
2160
  [key: string]: any;
1953
2161
  });
1954
2162
  }
1955
- export declare class CreateServiceAutoScalerRequestStrategies extends $tea.Model {
1956
- cpu?: number;
1957
- qps?: number;
2163
+ export declare class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
2164
+ metricName?: string;
2165
+ service?: string;
2166
+ threshold?: number;
1958
2167
  static names(): {
1959
2168
  [key: string]: string;
1960
2169
  };
@@ -1979,6 +2188,34 @@ export declare class CreateServiceCronScalerRequestScaleJobs extends $tea.Model
1979
2188
  [key: string]: any;
1980
2189
  });
1981
2190
  }
2191
+ export declare class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $tea.Model {
2192
+ metricName?: string;
2193
+ service?: string;
2194
+ value?: number;
2195
+ static names(): {
2196
+ [key: string]: string;
2197
+ };
2198
+ static types(): {
2199
+ [key: string]: any;
2200
+ };
2201
+ constructor(map?: {
2202
+ [key: string]: any;
2203
+ });
2204
+ }
2205
+ export declare class DescribeServiceAutoScalerResponseBodyScaleStrategies extends $tea.Model {
2206
+ metricName?: string;
2207
+ service?: string;
2208
+ threshold?: number;
2209
+ static names(): {
2210
+ [key: string]: string;
2211
+ };
2212
+ static types(): {
2213
+ [key: string]: any;
2214
+ };
2215
+ constructor(map?: {
2216
+ [key: string]: any;
2217
+ });
2218
+ }
1982
2219
  export declare class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
1983
2220
  createTime?: string;
1984
2221
  lastProbeTime?: string;
@@ -1997,6 +2234,21 @@ export declare class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea
1997
2234
  [key: string]: any;
1998
2235
  });
1999
2236
  }
2237
+ export declare class DescribeServiceEventResponseBodyEvents extends $tea.Model {
2238
+ message?: string;
2239
+ reason?: string;
2240
+ time?: string;
2241
+ type?: string;
2242
+ static names(): {
2243
+ [key: string]: string;
2244
+ };
2245
+ static types(): {
2246
+ [key: string]: any;
2247
+ };
2248
+ constructor(map?: {
2249
+ [key: string]: any;
2250
+ });
2251
+ }
2000
2252
  export declare class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
2001
2253
  availableAgent?: number;
2002
2254
  createTime?: string;
@@ -2017,9 +2269,26 @@ export declare class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
2017
2269
  [key: string]: any;
2018
2270
  });
2019
2271
  }
2020
- export declare class UpdateServiceAutoScalerRequestStrategies extends $tea.Model {
2021
- cpu?: number;
2022
- qps?: number;
2272
+ export declare class ListServiceVersionsResponseBodyVersions extends $tea.Model {
2273
+ buildTime?: string;
2274
+ imageAvailable?: string;
2275
+ imageId?: number;
2276
+ message?: string;
2277
+ serviceRunnable?: string;
2278
+ static names(): {
2279
+ [key: string]: string;
2280
+ };
2281
+ static types(): {
2282
+ [key: string]: any;
2283
+ };
2284
+ constructor(map?: {
2285
+ [key: string]: any;
2286
+ });
2287
+ }
2288
+ export declare class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
2289
+ metricName?: string;
2290
+ service?: string;
2291
+ threshold?: number;
2023
2292
  static names(): {
2024
2293
  [key: string]: string;
2025
2294
  };
@@ -2125,10 +2394,14 @@ export default class Client extends OpenApi {
2125
2394
  describeBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {
2126
2395
  [key: string]: string;
2127
2396
  }, runtime: $Util.RuntimeOptions): Promise<DescribeBenchmarkTaskResponse>;
2128
- describeBenchmarkTaskReport(ClusterId: string, TaskName: string): Promise<DescribeBenchmarkTaskReportResponse>;
2129
- describeBenchmarkTaskReportWithOptions(ClusterId: string, TaskName: string, headers: {
2397
+ describeBenchmarkTaskReport(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest): Promise<DescribeBenchmarkTaskReportResponse>;
2398
+ describeBenchmarkTaskReportWithOptions(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest, headers: {
2130
2399
  [key: string]: string;
2131
2400
  }, runtime: $Util.RuntimeOptions): Promise<DescribeBenchmarkTaskReportResponse>;
2401
+ describeGroup(ClusterId: string, GroupName: string): Promise<DescribeGroupResponse>;
2402
+ describeGroupWithOptions(ClusterId: string, GroupName: string, headers: {
2403
+ [key: string]: string;
2404
+ }, runtime: $Util.RuntimeOptions): Promise<DescribeGroupResponse>;
2132
2405
  describeResource(ClusterId: string, ResourceId: string): Promise<DescribeResourceResponse>;
2133
2406
  describeResourceWithOptions(ClusterId: string, ResourceId: string, headers: {
2134
2407
  [key: string]: string;
@@ -2153,6 +2426,10 @@ export default class Client extends OpenApi {
2153
2426
  describeServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, headers: {
2154
2427
  [key: string]: string;
2155
2428
  }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceCronScalerResponse>;
2429
+ describeServiceEvent(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest): Promise<DescribeServiceEventResponse>;
2430
+ describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {
2431
+ [key: string]: string;
2432
+ }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse>;
2156
2433
  describeServiceLog(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest): Promise<DescribeServiceLogResponse>;
2157
2434
  describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {
2158
2435
  [key: string]: string;
@@ -2161,10 +2438,14 @@ export default class Client extends OpenApi {
2161
2438
  describeServiceMirrorWithOptions(ClusterId: string, ServiceName: string, headers: {
2162
2439
  [key: string]: string;
2163
2440
  }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceMirrorResponse>;
2164
- listBenchmarkTask(): Promise<ListBenchmarkTaskResponse>;
2165
- listBenchmarkTaskWithOptions(headers: {
2441
+ listBenchmarkTask(request: ListBenchmarkTaskRequest): Promise<ListBenchmarkTaskResponse>;
2442
+ listBenchmarkTaskWithOptions(request: ListBenchmarkTaskRequest, headers: {
2166
2443
  [key: string]: string;
2167
2444
  }, runtime: $Util.RuntimeOptions): Promise<ListBenchmarkTaskResponse>;
2445
+ listGroups(request: ListGroupsRequest): Promise<ListGroupsResponse>;
2446
+ listGroupsWithOptions(request: ListGroupsRequest, headers: {
2447
+ [key: string]: string;
2448
+ }, runtime: $Util.RuntimeOptions): Promise<ListGroupsResponse>;
2168
2449
  listResourceInstanceWorker(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest): Promise<ListResourceInstanceWorkerResponse>;
2169
2450
  listResourceInstanceWorkerWithOptions(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest, headers: {
2170
2451
  [key: string]: string;
@@ -2185,6 +2466,10 @@ export default class Client extends OpenApi {
2185
2466
  listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {
2186
2467
  [key: string]: string;
2187
2468
  }, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse>;
2469
+ listServiceVersions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest): Promise<ListServiceVersionsResponse>;
2470
+ listServiceVersionsWithOptions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest, headers: {
2471
+ [key: string]: string;
2472
+ }, runtime: $Util.RuntimeOptions): Promise<ListServiceVersionsResponse>;
2188
2473
  listServices(request: ListServicesRequest): Promise<ListServicesResponse>;
2189
2474
  listServicesWithOptions(request: ListServicesRequest, headers: {
2190
2475
  [key: string]: string;