@alicloud/dms20250414 4.0.0 → 4.1.0

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.
Files changed (71) hide show
  1. package/dist/client.d.ts +38 -8
  2. package/dist/client.js +119 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateCustomAgentRequest.d.ts +71 -43
  5. package/dist/models/CreateCustomAgentRequest.js.map +1 -1
  6. package/dist/models/CreateCustomAgentResponseBody.d.ts +58 -29
  7. package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
  8. package/dist/models/CreateCustomAgentShrinkRequest.d.ts +51 -37
  9. package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -1
  10. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.d.ts +69 -0
  11. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.js +68 -0
  12. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.js.map +1 -0
  13. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.d.ts +19 -0
  14. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.js +69 -0
  15. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.js.map +1 -0
  16. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.d.ts +194 -0
  17. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.js +136 -0
  18. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.js.map +1 -0
  19. package/dist/models/DescribeCustomAgentResponseBody.d.ts +84 -25
  20. package/dist/models/DescribeCustomAgentResponseBody.js.map +1 -1
  21. package/dist/models/DescribeDataAgentSessionRequest.d.ts +1 -1
  22. package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +94 -54
  23. package/dist/models/DescribeDataAgentSessionResponseBody.js +31 -1
  24. package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
  25. package/dist/models/ListCustomAgentMonitorSessionsRequest.d.ts +75 -0
  26. package/dist/models/ListCustomAgentMonitorSessionsRequest.js +70 -0
  27. package/dist/models/ListCustomAgentMonitorSessionsRequest.js.map +1 -0
  28. package/dist/models/ListCustomAgentMonitorSessionsResponse.d.ts +19 -0
  29. package/dist/models/ListCustomAgentMonitorSessionsResponse.js +69 -0
  30. package/dist/models/ListCustomAgentMonitorSessionsResponse.js.map +1 -0
  31. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.d.ts +208 -0
  32. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.js +138 -0
  33. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.js.map +1 -0
  34. package/dist/models/ListCustomAgentRequest.d.ts +4 -4
  35. package/dist/models/ListCustomAgentResponseBody.d.ts +138 -28
  36. package/dist/models/ListCustomAgentResponseBody.js.map +1 -1
  37. package/dist/models/ListDataAgentWorkspaceRequest.d.ts +13 -6
  38. package/dist/models/ListDataAgentWorkspaceRequest.js.map +1 -1
  39. package/dist/models/ListDataAgentWorkspaceResponseBody.d.ts +28 -7
  40. package/dist/models/ListDataAgentWorkspaceResponseBody.js.map +1 -1
  41. package/dist/models/ModifyCustomAgentRequest.d.ts +71 -38
  42. package/dist/models/ModifyCustomAgentRequest.js.map +1 -1
  43. package/dist/models/ModifyCustomAgentResponseBody.d.ts +63 -30
  44. package/dist/models/ModifyCustomAgentResponseBody.js.map +1 -1
  45. package/dist/models/ModifyCustomAgentShrinkRequest.d.ts +51 -32
  46. package/dist/models/ModifyCustomAgentShrinkRequest.js.map +1 -1
  47. package/dist/models/model.d.ts +11 -0
  48. package/dist/models/model.js +39 -17
  49. package/dist/models/model.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/client.ts +136 -8
  52. package/src/models/CreateCustomAgentRequest.ts +71 -43
  53. package/src/models/CreateCustomAgentResponseBody.ts +58 -29
  54. package/src/models/CreateCustomAgentShrinkRequest.ts +51 -37
  55. package/src/models/DescribeCustomAgentMonitorMetricsRequest.ts +92 -0
  56. package/src/models/DescribeCustomAgentMonitorMetricsResponse.ts +40 -0
  57. package/src/models/DescribeCustomAgentMonitorMetricsResponseBody.ts +267 -0
  58. package/src/models/DescribeCustomAgentResponseBody.ts +84 -25
  59. package/src/models/DescribeDataAgentSessionRequest.ts +1 -1
  60. package/src/models/DescribeDataAgentSessionResponseBody.ts +115 -54
  61. package/src/models/ListCustomAgentMonitorSessionsRequest.ts +100 -0
  62. package/src/models/ListCustomAgentMonitorSessionsResponse.ts +40 -0
  63. package/src/models/ListCustomAgentMonitorSessionsResponseBody.ts +283 -0
  64. package/src/models/ListCustomAgentRequest.ts +4 -4
  65. package/src/models/ListCustomAgentResponseBody.ts +138 -28
  66. package/src/models/ListDataAgentWorkspaceRequest.ts +13 -6
  67. package/src/models/ListDataAgentWorkspaceResponseBody.ts +28 -7
  68. package/src/models/ModifyCustomAgentRequest.ts +71 -38
  69. package/src/models/ModifyCustomAgentResponseBody.ts +63 -30
  70. package/src/models/ModifyCustomAgentShrinkRequest.ts +51 -32
  71. package/src/models/model.ts +11 -0
package/dist/client.d.ts CHANGED
@@ -513,7 +513,7 @@ export default class Client extends OpenApi {
513
513
  */
514
514
  deleteWorkspaceCode(request: $_model.DeleteWorkspaceCodeRequest): Promise<$_model.DeleteWorkspaceCodeResponse>;
515
515
  /**
516
- * Retrieves the details of a custom agent by custom agent ID.
516
+ * Queries the details of a custom agent by custom agent ID.
517
517
  *
518
518
  * @param request - DescribeCustomAgentRequest
519
519
  * @param runtime - runtime options for this request RuntimeOptions
@@ -521,12 +521,27 @@ export default class Client extends OpenApi {
521
521
  */
522
522
  describeCustomAgentWithOptions(request: $_model.DescribeCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomAgentResponse>;
523
523
  /**
524
- * Retrieves the details of a custom agent by custom agent ID.
524
+ * Queries the details of a custom agent by custom agent ID.
525
525
  *
526
526
  * @param request - DescribeCustomAgentRequest
527
527
  * @returns DescribeCustomAgentResponse
528
528
  */
529
529
  describeCustomAgent(request: $_model.DescribeCustomAgentRequest): Promise<$_model.DescribeCustomAgentResponse>;
530
+ /**
531
+ * DescribeCustomAgentMonitorMetrics - Retrieves monitoring metrics data for custom agents, including trend data.
532
+ *
533
+ * @param request - DescribeCustomAgentMonitorMetricsRequest
534
+ * @param runtime - runtime options for this request RuntimeOptions
535
+ * @returns DescribeCustomAgentMonitorMetricsResponse
536
+ */
537
+ describeCustomAgentMonitorMetricsWithOptions(request: $_model.DescribeCustomAgentMonitorMetricsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomAgentMonitorMetricsResponse>;
538
+ /**
539
+ * DescribeCustomAgentMonitorMetrics - Retrieves monitoring metrics data for custom agents, including trend data.
540
+ *
541
+ * @param request - DescribeCustomAgentMonitorMetricsRequest
542
+ * @returns DescribeCustomAgentMonitorMetricsResponse
543
+ */
544
+ describeCustomAgentMonitorMetrics(request: $_model.DescribeCustomAgentMonitorMetricsRequest): Promise<$_model.DescribeCustomAgentMonitorMetricsResponse>;
530
545
  /**
531
546
  * Queries DataAgent metrics.
532
547
  *
@@ -1066,7 +1081,7 @@ export default class Client extends OpenApi {
1066
1081
  */
1067
1082
  listAirflows(request: $_model.ListAirflowsRequest): Promise<$_model.ListAirflowsResponse>;
1068
1083
  /**
1069
- * Lists all custom agents in a personal space or workspace.
1084
+ * Lists all custom agents in personal spaces and workspaces.
1070
1085
  *
1071
1086
  * @param request - ListCustomAgentRequest
1072
1087
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1074,12 +1089,27 @@ export default class Client extends OpenApi {
1074
1089
  */
1075
1090
  listCustomAgentWithOptions(request: $_model.ListCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListCustomAgentResponse>;
1076
1091
  /**
1077
- * Lists all custom agents in a personal space or workspace.
1092
+ * Lists all custom agents in personal spaces and workspaces.
1078
1093
  *
1079
1094
  * @param request - ListCustomAgentRequest
1080
1095
  * @returns ListCustomAgentResponse
1081
1096
  */
1082
1097
  listCustomAgent(request: $_model.ListCustomAgentRequest): Promise<$_model.ListCustomAgentResponse>;
1098
+ /**
1099
+ * ListCustomAgentMonitorSessions - Retrieves the list of monitoring sessions for custom agents.
1100
+ *
1101
+ * @param request - ListCustomAgentMonitorSessionsRequest
1102
+ * @param runtime - runtime options for this request RuntimeOptions
1103
+ * @returns ListCustomAgentMonitorSessionsResponse
1104
+ */
1105
+ listCustomAgentMonitorSessionsWithOptions(request: $_model.ListCustomAgentMonitorSessionsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListCustomAgentMonitorSessionsResponse>;
1106
+ /**
1107
+ * ListCustomAgentMonitorSessions - Retrieves the list of monitoring sessions for custom agents.
1108
+ *
1109
+ * @param request - ListCustomAgentMonitorSessionsRequest
1110
+ * @returns ListCustomAgentMonitorSessionsResponse
1111
+ */
1112
+ listCustomAgentMonitorSessions(request: $_model.ListCustomAgentMonitorSessionsRequest): Promise<$_model.ListCustomAgentMonitorSessionsResponse>;
1083
1113
  /**
1084
1114
  * Lists accuracy test configuration items that meet the specified conditions.
1085
1115
  *
@@ -1219,7 +1249,7 @@ export default class Client extends OpenApi {
1219
1249
  */
1220
1250
  listDataAgentTheme(request: $_model.ListDataAgentThemeRequest): Promise<$_model.ListDataAgentThemeResponse>;
1221
1251
  /**
1222
- * Retrieves the workspaces under the primary account with pagination.
1252
+ * Retrieves a paginated list of collaborative workspaces under the primary account.
1223
1253
  *
1224
1254
  * @param request - ListDataAgentWorkspaceRequest
1225
1255
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1227,7 +1257,7 @@ export default class Client extends OpenApi {
1227
1257
  */
1228
1258
  listDataAgentWorkspaceWithOptions(request: $_model.ListDataAgentWorkspaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListDataAgentWorkspaceResponse>;
1229
1259
  /**
1230
- * Retrieves the workspaces under the primary account with pagination.
1260
+ * Retrieves a paginated list of collaborative workspaces under the primary account.
1231
1261
  *
1232
1262
  * @param request - ListDataAgentWorkspaceRequest
1233
1263
  * @returns ListDataAgentWorkspaceResponse
@@ -1390,7 +1420,7 @@ export default class Client extends OpenApi {
1390
1420
  */
1391
1421
  listWorkspaceCode(request: $_model.ListWorkspaceCodeRequest): Promise<$_model.ListWorkspaceCodeResponse>;
1392
1422
  /**
1393
- * Modifies a custom agent in a personal space or workspace.
1423
+ * Modifies a custom agent in a personal or shared workspace.
1394
1424
  *
1395
1425
  * @param tmpReq - ModifyCustomAgentRequest
1396
1426
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1398,7 +1428,7 @@ export default class Client extends OpenApi {
1398
1428
  */
1399
1429
  modifyCustomAgentWithOptions(tmpReq: $_model.ModifyCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyCustomAgentResponse>;
1400
1430
  /**
1401
- * Modifies a custom agent in a personal space or workspace.
1431
+ * Modifies a custom agent in a personal or shared workspace.
1402
1432
  *
1403
1433
  * @param request - ModifyCustomAgentRequest
1404
1434
  * @returns ModifyCustomAgentResponse
package/dist/client.js CHANGED
@@ -1750,7 +1750,7 @@ class Client extends openapi_core_1.default {
1750
1750
  return await this.deleteWorkspaceCodeWithOptions(request, runtime);
1751
1751
  }
1752
1752
  /**
1753
- * Retrieves the details of a custom agent by custom agent ID.
1753
+ * Queries the details of a custom agent by custom agent ID.
1754
1754
  *
1755
1755
  * @param request - DescribeCustomAgentRequest
1756
1756
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1782,7 +1782,7 @@ class Client extends openapi_core_1.default {
1782
1782
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCustomAgentResponse({}));
1783
1783
  }
1784
1784
  /**
1785
- * Retrieves the details of a custom agent by custom agent ID.
1785
+ * Queries the details of a custom agent by custom agent ID.
1786
1786
  *
1787
1787
  * @param request - DescribeCustomAgentRequest
1788
1788
  * @returns DescribeCustomAgentResponse
@@ -1791,6 +1791,60 @@ class Client extends openapi_core_1.default {
1791
1791
  let runtime = new $dara.RuntimeOptions({});
1792
1792
  return await this.describeCustomAgentWithOptions(request, runtime);
1793
1793
  }
1794
+ /**
1795
+ * DescribeCustomAgentMonitorMetrics - Retrieves monitoring metrics data for custom agents, including trend data.
1796
+ *
1797
+ * @param request - DescribeCustomAgentMonitorMetricsRequest
1798
+ * @param runtime - runtime options for this request RuntimeOptions
1799
+ * @returns DescribeCustomAgentMonitorMetricsResponse
1800
+ */
1801
+ async describeCustomAgentMonitorMetricsWithOptions(request, runtime) {
1802
+ request.validate();
1803
+ let query = {};
1804
+ if (!$dara.isNull(request.customAgentId)) {
1805
+ query["CustomAgentId"] = request.customAgentId;
1806
+ }
1807
+ if (!$dara.isNull(request.endTime)) {
1808
+ query["EndTime"] = request.endTime;
1809
+ }
1810
+ if (!$dara.isNull(request.granularity)) {
1811
+ query["Granularity"] = request.granularity;
1812
+ }
1813
+ if (!$dara.isNull(request.queryType)) {
1814
+ query["QueryType"] = request.queryType;
1815
+ }
1816
+ if (!$dara.isNull(request.startTime)) {
1817
+ query["StartTime"] = request.startTime;
1818
+ }
1819
+ if (!$dara.isNull(request.workspaceId)) {
1820
+ query["WorkspaceId"] = request.workspaceId;
1821
+ }
1822
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1823
+ query: openapi_core_2.OpenApiUtil.query(query),
1824
+ });
1825
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1826
+ action: "DescribeCustomAgentMonitorMetrics",
1827
+ version: "2025-04-14",
1828
+ protocol: "HTTPS",
1829
+ pathname: "/",
1830
+ method: "POST",
1831
+ authType: "AK",
1832
+ style: "RPC",
1833
+ reqBodyType: "formData",
1834
+ bodyType: "json",
1835
+ });
1836
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCustomAgentMonitorMetricsResponse({}));
1837
+ }
1838
+ /**
1839
+ * DescribeCustomAgentMonitorMetrics - Retrieves monitoring metrics data for custom agents, including trend data.
1840
+ *
1841
+ * @param request - DescribeCustomAgentMonitorMetricsRequest
1842
+ * @returns DescribeCustomAgentMonitorMetricsResponse
1843
+ */
1844
+ async describeCustomAgentMonitorMetrics(request) {
1845
+ let runtime = new $dara.RuntimeOptions({});
1846
+ return await this.describeCustomAgentMonitorMetricsWithOptions(request, runtime);
1847
+ }
1794
1848
  /**
1795
1849
  * Queries DataAgent metrics.
1796
1850
  *
@@ -3353,7 +3407,7 @@ class Client extends openapi_core_1.default {
3353
3407
  return await this.listAirflowsWithOptions(request, runtime);
3354
3408
  }
3355
3409
  /**
3356
- * Lists all custom agents in a personal space or workspace.
3410
+ * Lists all custom agents in personal spaces and workspaces.
3357
3411
  *
3358
3412
  * @param request - ListCustomAgentRequest
3359
3413
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3397,7 +3451,7 @@ class Client extends openapi_core_1.default {
3397
3451
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCustomAgentResponse({}));
3398
3452
  }
3399
3453
  /**
3400
- * Lists all custom agents in a personal space or workspace.
3454
+ * Lists all custom agents in personal spaces and workspaces.
3401
3455
  *
3402
3456
  * @param request - ListCustomAgentRequest
3403
3457
  * @returns ListCustomAgentResponse
@@ -3406,6 +3460,63 @@ class Client extends openapi_core_1.default {
3406
3460
  let runtime = new $dara.RuntimeOptions({});
3407
3461
  return await this.listCustomAgentWithOptions(request, runtime);
3408
3462
  }
3463
+ /**
3464
+ * ListCustomAgentMonitorSessions - Retrieves the list of monitoring sessions for custom agents.
3465
+ *
3466
+ * @param request - ListCustomAgentMonitorSessionsRequest
3467
+ * @param runtime - runtime options for this request RuntimeOptions
3468
+ * @returns ListCustomAgentMonitorSessionsResponse
3469
+ */
3470
+ async listCustomAgentMonitorSessionsWithOptions(request, runtime) {
3471
+ request.validate();
3472
+ let query = {};
3473
+ if (!$dara.isNull(request.customAgentId)) {
3474
+ query["CustomAgentId"] = request.customAgentId;
3475
+ }
3476
+ if (!$dara.isNull(request.endTime)) {
3477
+ query["EndTime"] = request.endTime;
3478
+ }
3479
+ if (!$dara.isNull(request.pageNumber)) {
3480
+ query["PageNumber"] = request.pageNumber;
3481
+ }
3482
+ if (!$dara.isNull(request.pageSize)) {
3483
+ query["PageSize"] = request.pageSize;
3484
+ }
3485
+ if (!$dara.isNull(request.queryType)) {
3486
+ query["QueryType"] = request.queryType;
3487
+ }
3488
+ if (!$dara.isNull(request.startTime)) {
3489
+ query["StartTime"] = request.startTime;
3490
+ }
3491
+ if (!$dara.isNull(request.workspaceId)) {
3492
+ query["WorkspaceId"] = request.workspaceId;
3493
+ }
3494
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3495
+ query: openapi_core_2.OpenApiUtil.query(query),
3496
+ });
3497
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3498
+ action: "ListCustomAgentMonitorSessions",
3499
+ version: "2025-04-14",
3500
+ protocol: "HTTPS",
3501
+ pathname: "/",
3502
+ method: "POST",
3503
+ authType: "AK",
3504
+ style: "RPC",
3505
+ reqBodyType: "formData",
3506
+ bodyType: "json",
3507
+ });
3508
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCustomAgentMonitorSessionsResponse({}));
3509
+ }
3510
+ /**
3511
+ * ListCustomAgentMonitorSessions - Retrieves the list of monitoring sessions for custom agents.
3512
+ *
3513
+ * @param request - ListCustomAgentMonitorSessionsRequest
3514
+ * @returns ListCustomAgentMonitorSessionsResponse
3515
+ */
3516
+ async listCustomAgentMonitorSessions(request) {
3517
+ let runtime = new $dara.RuntimeOptions({});
3518
+ return await this.listCustomAgentMonitorSessionsWithOptions(request, runtime);
3519
+ }
3409
3520
  /**
3410
3521
  * Lists accuracy test configuration items that meet the specified conditions.
3411
3522
  *
@@ -3914,7 +4025,7 @@ class Client extends openapi_core_1.default {
3914
4025
  return await this.listDataAgentThemeWithOptions(request, runtime);
3915
4026
  }
3916
4027
  /**
3917
- * Retrieves the workspaces under the primary account with pagination.
4028
+ * Retrieves a paginated list of collaborative workspaces under the primary account.
3918
4029
  *
3919
4030
  * @param request - ListDataAgentWorkspaceRequest
3920
4031
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3970,7 +4081,7 @@ class Client extends openapi_core_1.default {
3970
4081
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentWorkspaceResponse({}));
3971
4082
  }
3972
4083
  /**
3973
- * Retrieves the workspaces under the primary account with pagination.
4084
+ * Retrieves a paginated list of collaborative workspaces under the primary account.
3974
4085
  *
3975
4086
  * @param request - ListDataAgentWorkspaceRequest
3976
4087
  * @returns ListDataAgentWorkspaceResponse
@@ -4562,7 +4673,7 @@ class Client extends openapi_core_1.default {
4562
4673
  return await this.listWorkspaceCodeWithOptions(request, runtime);
4563
4674
  }
4564
4675
  /**
4565
- * Modifies a custom agent in a personal space or workspace.
4676
+ * Modifies a custom agent in a personal or shared workspace.
4566
4677
  *
4567
4678
  * @param tmpReq - ModifyCustomAgentRequest
4568
4679
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4662,7 +4773,7 @@ class Client extends openapi_core_1.default {
4662
4773
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyCustomAgentResponse({}));
4663
4774
  }
4664
4775
  /**
4665
- * Modifies a custom agent in a personal space or workspace.
4776
+ * Modifies a custom agent in a personal or shared workspace.
4666
4777
  *
4667
4778
  * @param request - ModifyCustomAgentRequest
4668
4779
  * @returns ModifyCustomAgentResponse