@alicloud/dms20250414 3.0.0 → 3.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 (36) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +111 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.d.ts +69 -0
  5. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.js +68 -0
  6. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.js.map +1 -0
  7. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.d.ts +19 -0
  8. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.js +69 -0
  9. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.js.map +1 -0
  10. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.d.ts +194 -0
  11. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.js +136 -0
  12. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.js.map +1 -0
  13. package/dist/models/Dlcatalog.d.ts +9 -0
  14. package/dist/models/Dlcatalog.js.map +1 -1
  15. package/dist/models/ListCustomAgentMonitorSessionsRequest.d.ts +75 -0
  16. package/dist/models/ListCustomAgentMonitorSessionsRequest.js +70 -0
  17. package/dist/models/ListCustomAgentMonitorSessionsRequest.js.map +1 -0
  18. package/dist/models/ListCustomAgentMonitorSessionsResponse.d.ts +19 -0
  19. package/dist/models/ListCustomAgentMonitorSessionsResponse.js +69 -0
  20. package/dist/models/ListCustomAgentMonitorSessionsResponse.js.map +1 -0
  21. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.d.ts +208 -0
  22. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.js +138 -0
  23. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.js.map +1 -0
  24. package/dist/models/model.d.ts +10 -0
  25. package/dist/models/model.js +32 -12
  26. package/dist/models/model.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/client.ts +128 -0
  29. package/src/models/DescribeCustomAgentMonitorMetricsRequest.ts +92 -0
  30. package/src/models/DescribeCustomAgentMonitorMetricsResponse.ts +40 -0
  31. package/src/models/DescribeCustomAgentMonitorMetricsResponseBody.ts +267 -0
  32. package/src/models/Dlcatalog.ts +9 -0
  33. package/src/models/ListCustomAgentMonitorSessionsRequest.ts +100 -0
  34. package/src/models/ListCustomAgentMonitorSessionsResponse.ts +40 -0
  35. package/src/models/ListCustomAgentMonitorSessionsResponseBody.ts +283 -0
  36. package/src/models/model.ts +10 -0
package/dist/client.d.ts CHANGED
@@ -527,6 +527,21 @@ export default class Client extends OpenApi {
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
  *
@@ -1080,6 +1095,21 @@ export default class Client extends OpenApi {
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
  *
package/dist/client.js CHANGED
@@ -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
  *
@@ -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
  *