@alicloud/dms20250414 1.19.1 → 1.20.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 +42 -0
- package/dist/client.js +112 -4
- package/dist/client.js.map +1 -1
- package/dist/models/Dlcatalog.d.ts +0 -9
- package/dist/models/Dlcatalog.js.map +1 -1
- package/dist/models/Dlcolumn.d.ts +1 -1
- package/dist/models/Dldatabase.d.ts +1 -1
- package/dist/models/Dlorder.d.ts +1 -1
- package/dist/models/DlresourceUri.d.ts +1 -4
- package/dist/models/DlresourceUri.js.map +1 -1
- package/dist/models/GetDataAgentTaskModelUsageMetricsRequest.d.ts +45 -0
- package/dist/models/GetDataAgentTaskModelUsageMetricsRequest.js +64 -0
- package/dist/models/GetDataAgentTaskModelUsageMetricsRequest.js.map +1 -0
- package/dist/models/GetDataAgentTaskModelUsageMetricsResponse.d.ts +19 -0
- package/dist/models/GetDataAgentTaskModelUsageMetricsResponse.js +69 -0
- package/dist/models/GetDataAgentTaskModelUsageMetricsResponse.js.map +1 -0
- package/dist/models/GetDataAgentTaskModelUsageMetricsResponseBody.d.ts +86 -0
- package/dist/models/GetDataAgentTaskModelUsageMetricsResponseBody.js +92 -0
- package/dist/models/GetDataAgentTaskModelUsageMetricsResponseBody.js.map +1 -0
- package/dist/models/GetDataAgentTaskModelUsageRequest.d.ts +45 -0
- package/dist/models/GetDataAgentTaskModelUsageRequest.js +64 -0
- package/dist/models/GetDataAgentTaskModelUsageRequest.js.map +1 -0
- package/dist/models/GetDataAgentTaskModelUsageResponse.d.ts +19 -0
- package/dist/models/GetDataAgentTaskModelUsageResponse.js +69 -0
- package/dist/models/GetDataAgentTaskModelUsageResponse.js.map +1 -0
- package/dist/models/GetDataAgentTaskModelUsageResponseBody.d.ts +97 -0
- package/dist/models/GetDataAgentTaskModelUsageResponseBody.js +94 -0
- package/dist/models/GetDataAgentTaskModelUsageResponseBody.js.map +1 -0
- package/dist/models/OssieModelView.d.ts +2 -0
- package/dist/models/OssieModelView.js +4 -0
- package/dist/models/OssieModelView.js.map +1 -1
- package/dist/models/PartitionError.d.ts +1 -1
- package/dist/models/model.d.ts +8 -0
- package/dist/models/model.js +27 -11
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +124 -4
- package/src/models/Dlcatalog.ts +0 -9
- package/src/models/Dlcolumn.ts +1 -1
- package/src/models/Dldatabase.ts +1 -1
- package/src/models/Dlorder.ts +1 -1
- package/src/models/DlresourceUri.ts +1 -4
- package/src/models/GetDataAgentTaskModelUsageMetricsRequest.ts +64 -0
- package/src/models/GetDataAgentTaskModelUsageMetricsResponse.ts +40 -0
- package/src/models/GetDataAgentTaskModelUsageMetricsResponseBody.ts +124 -0
- package/src/models/GetDataAgentTaskModelUsageRequest.ts +64 -0
- package/src/models/GetDataAgentTaskModelUsageResponse.ts +40 -0
- package/src/models/GetDataAgentTaskModelUsageResponseBody.ts +137 -0
- package/src/models/OssieModelView.ts +6 -0
- package/src/models/PartitionError.ts +1 -1
- package/src/models/model.ts +8 -0
package/dist/client.d.ts
CHANGED
|
@@ -760,6 +760,48 @@ export default class Client extends OpenApi {
|
|
|
760
760
|
* @returns GetDataAgentSubAccountInfoResponse
|
|
761
761
|
*/
|
|
762
762
|
getDataAgentSubAccountInfo(request: $_model.GetDataAgentSubAccountInfoRequest): Promise<$_model.GetDataAgentSubAccountInfoResponse>;
|
|
763
|
+
/**
|
|
764
|
+
* Queries the model usage summary of DataAgent analysis tasks within a specified time range, including the number of models used, total call count, total tokens consumed, and peak TPM.
|
|
765
|
+
*
|
|
766
|
+
* @remarks
|
|
767
|
+
* Queries the model usage summary of DataAgent analysis tasks within a specified time range, including the number of models used, total model call count, total tokens consumed, and peak TPM. This operation is used to analyze and monitor the model resource consumption of DataAgent analysis tasks.
|
|
768
|
+
*
|
|
769
|
+
* @param request - GetDataAgentTaskModelUsageRequest
|
|
770
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
771
|
+
* @returns GetDataAgentTaskModelUsageResponse
|
|
772
|
+
*/
|
|
773
|
+
getDataAgentTaskModelUsageWithOptions(request: $_model.GetDataAgentTaskModelUsageRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetDataAgentTaskModelUsageResponse>;
|
|
774
|
+
/**
|
|
775
|
+
* Queries the model usage summary of DataAgent analysis tasks within a specified time range, including the number of models used, total call count, total tokens consumed, and peak TPM.
|
|
776
|
+
*
|
|
777
|
+
* @remarks
|
|
778
|
+
* Queries the model usage summary of DataAgent analysis tasks within a specified time range, including the number of models used, total model call count, total tokens consumed, and peak TPM. This operation is used to analyze and monitor the model resource consumption of DataAgent analysis tasks.
|
|
779
|
+
*
|
|
780
|
+
* @param request - GetDataAgentTaskModelUsageRequest
|
|
781
|
+
* @returns GetDataAgentTaskModelUsageResponse
|
|
782
|
+
*/
|
|
783
|
+
getDataAgentTaskModelUsage(request: $_model.GetDataAgentTaskModelUsageRequest): Promise<$_model.GetDataAgentTaskModelUsageResponse>;
|
|
784
|
+
/**
|
|
785
|
+
* Queries the TPM time series metrics of DataAgent analysis task model usage within a specified time range, returning token consumption at each time point with minute-level granularity.
|
|
786
|
+
*
|
|
787
|
+
* @remarks
|
|
788
|
+
* Queries the TPM time series metrics of DataAgent analysis task model usage within a specified time range. The metrics are returned at minute-level granularity, showing the number of tokens consumed in each statistical interval for analyzing model usage trends over time.
|
|
789
|
+
*
|
|
790
|
+
* @param request - GetDataAgentTaskModelUsageMetricsRequest
|
|
791
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
792
|
+
* @returns GetDataAgentTaskModelUsageMetricsResponse
|
|
793
|
+
*/
|
|
794
|
+
getDataAgentTaskModelUsageMetricsWithOptions(request: $_model.GetDataAgentTaskModelUsageMetricsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetDataAgentTaskModelUsageMetricsResponse>;
|
|
795
|
+
/**
|
|
796
|
+
* Queries the TPM time series metrics of DataAgent analysis task model usage within a specified time range, returning token consumption at each time point with minute-level granularity.
|
|
797
|
+
*
|
|
798
|
+
* @remarks
|
|
799
|
+
* Queries the TPM time series metrics of DataAgent analysis task model usage within a specified time range. The metrics are returned at minute-level granularity, showing the number of tokens consumed in each statistical interval for analyzing model usage trends over time.
|
|
800
|
+
*
|
|
801
|
+
* @param request - GetDataAgentTaskModelUsageMetricsRequest
|
|
802
|
+
* @returns GetDataAgentTaskModelUsageMetricsResponse
|
|
803
|
+
*/
|
|
804
|
+
getDataAgentTaskModelUsageMetrics(request: $_model.GetDataAgentTaskModelUsageMetricsRequest): Promise<$_model.GetDataAgentTaskModelUsageMetricsResponse>;
|
|
763
805
|
/**
|
|
764
806
|
* Retrieves the details of a collaborative workspace.
|
|
765
807
|
*
|
package/dist/client.js
CHANGED
|
@@ -70,14 +70,14 @@ class Client extends openapi_core_1.default {
|
|
|
70
70
|
super(config);
|
|
71
71
|
this._endpointRule = "regional";
|
|
72
72
|
this._endpointMap = {
|
|
73
|
-
'us-west-1': "dms.us-west-1.aliyuncs.com",
|
|
74
|
-
'us-east-1': "dms.us-east-1.aliyuncs.com",
|
|
75
73
|
'cn-shenzhen': "dms.cn-shenzhen.aliyuncs.com",
|
|
74
|
+
'cn-beijing': "dms.cn-beijing.aliyuncs.com",
|
|
76
75
|
'cn-shanghai': "dms.cn-shanghai.aliyuncs.com",
|
|
77
76
|
'cn-hongkong': "dms.cn-hongkong.aliyuncs.com",
|
|
78
|
-
'cn-hangzhou': "dms.cn-hangzhou.aliyuncs.com",
|
|
79
|
-
'cn-beijing': "dms.cn-beijing.aliyuncs.com",
|
|
80
77
|
'ap-southeast-1': "dms.ap-southeast-1.aliyuncs.com",
|
|
78
|
+
'cn-hangzhou': "dms.cn-hangzhou.aliyuncs.com",
|
|
79
|
+
'us-west-1': "dms.us-west-1.aliyuncs.com",
|
|
80
|
+
'us-east-1': "dms.us-east-1.aliyuncs.com",
|
|
81
81
|
};
|
|
82
82
|
this.checkConfig(config);
|
|
83
83
|
this._endpoint = this.getEndpoint("dms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -2598,6 +2598,114 @@ class Client extends openapi_core_1.default {
|
|
|
2598
2598
|
let runtime = new $dara.RuntimeOptions({});
|
|
2599
2599
|
return await this.getDataAgentSubAccountInfoWithOptions(request, runtime);
|
|
2600
2600
|
}
|
|
2601
|
+
/**
|
|
2602
|
+
* Queries the model usage summary of DataAgent analysis tasks within a specified time range, including the number of models used, total call count, total tokens consumed, and peak TPM.
|
|
2603
|
+
*
|
|
2604
|
+
* @remarks
|
|
2605
|
+
* Queries the model usage summary of DataAgent analysis tasks within a specified time range, including the number of models used, total model call count, total tokens consumed, and peak TPM. This operation is used to analyze and monitor the model resource consumption of DataAgent analysis tasks.
|
|
2606
|
+
*
|
|
2607
|
+
* @param request - GetDataAgentTaskModelUsageRequest
|
|
2608
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2609
|
+
* @returns GetDataAgentTaskModelUsageResponse
|
|
2610
|
+
*/
|
|
2611
|
+
async getDataAgentTaskModelUsageWithOptions(request, runtime) {
|
|
2612
|
+
request.validate();
|
|
2613
|
+
let query = {};
|
|
2614
|
+
if (!$dara.isNull(request.beginTime)) {
|
|
2615
|
+
query["BeginTime"] = request.beginTime;
|
|
2616
|
+
}
|
|
2617
|
+
if (!$dara.isNull(request.DMSUnit)) {
|
|
2618
|
+
query["DMSUnit"] = request.DMSUnit;
|
|
2619
|
+
}
|
|
2620
|
+
if (!$dara.isNull(request.endTime)) {
|
|
2621
|
+
query["EndTime"] = request.endTime;
|
|
2622
|
+
}
|
|
2623
|
+
if (!$dara.isNull(request.regionId)) {
|
|
2624
|
+
query["RegionId"] = request.regionId;
|
|
2625
|
+
}
|
|
2626
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2627
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2628
|
+
});
|
|
2629
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2630
|
+
action: "GetDataAgentTaskModelUsage",
|
|
2631
|
+
version: "2025-04-14",
|
|
2632
|
+
protocol: "HTTPS",
|
|
2633
|
+
pathname: "/",
|
|
2634
|
+
method: "POST",
|
|
2635
|
+
authType: "AK",
|
|
2636
|
+
style: "RPC",
|
|
2637
|
+
reqBodyType: "formData",
|
|
2638
|
+
bodyType: "json",
|
|
2639
|
+
});
|
|
2640
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetDataAgentTaskModelUsageResponse({}));
|
|
2641
|
+
}
|
|
2642
|
+
/**
|
|
2643
|
+
* Queries the model usage summary of DataAgent analysis tasks within a specified time range, including the number of models used, total call count, total tokens consumed, and peak TPM.
|
|
2644
|
+
*
|
|
2645
|
+
* @remarks
|
|
2646
|
+
* Queries the model usage summary of DataAgent analysis tasks within a specified time range, including the number of models used, total model call count, total tokens consumed, and peak TPM. This operation is used to analyze and monitor the model resource consumption of DataAgent analysis tasks.
|
|
2647
|
+
*
|
|
2648
|
+
* @param request - GetDataAgentTaskModelUsageRequest
|
|
2649
|
+
* @returns GetDataAgentTaskModelUsageResponse
|
|
2650
|
+
*/
|
|
2651
|
+
async getDataAgentTaskModelUsage(request) {
|
|
2652
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2653
|
+
return await this.getDataAgentTaskModelUsageWithOptions(request, runtime);
|
|
2654
|
+
}
|
|
2655
|
+
/**
|
|
2656
|
+
* Queries the TPM time series metrics of DataAgent analysis task model usage within a specified time range, returning token consumption at each time point with minute-level granularity.
|
|
2657
|
+
*
|
|
2658
|
+
* @remarks
|
|
2659
|
+
* Queries the TPM time series metrics of DataAgent analysis task model usage within a specified time range. The metrics are returned at minute-level granularity, showing the number of tokens consumed in each statistical interval for analyzing model usage trends over time.
|
|
2660
|
+
*
|
|
2661
|
+
* @param request - GetDataAgentTaskModelUsageMetricsRequest
|
|
2662
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2663
|
+
* @returns GetDataAgentTaskModelUsageMetricsResponse
|
|
2664
|
+
*/
|
|
2665
|
+
async getDataAgentTaskModelUsageMetricsWithOptions(request, runtime) {
|
|
2666
|
+
request.validate();
|
|
2667
|
+
let query = {};
|
|
2668
|
+
if (!$dara.isNull(request.beginTime)) {
|
|
2669
|
+
query["BeginTime"] = request.beginTime;
|
|
2670
|
+
}
|
|
2671
|
+
if (!$dara.isNull(request.DMSUnit)) {
|
|
2672
|
+
query["DMSUnit"] = request.DMSUnit;
|
|
2673
|
+
}
|
|
2674
|
+
if (!$dara.isNull(request.endTime)) {
|
|
2675
|
+
query["EndTime"] = request.endTime;
|
|
2676
|
+
}
|
|
2677
|
+
if (!$dara.isNull(request.regionId)) {
|
|
2678
|
+
query["RegionId"] = request.regionId;
|
|
2679
|
+
}
|
|
2680
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2681
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2682
|
+
});
|
|
2683
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2684
|
+
action: "GetDataAgentTaskModelUsageMetrics",
|
|
2685
|
+
version: "2025-04-14",
|
|
2686
|
+
protocol: "HTTPS",
|
|
2687
|
+
pathname: "/",
|
|
2688
|
+
method: "POST",
|
|
2689
|
+
authType: "AK",
|
|
2690
|
+
style: "RPC",
|
|
2691
|
+
reqBodyType: "formData",
|
|
2692
|
+
bodyType: "json",
|
|
2693
|
+
});
|
|
2694
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetDataAgentTaskModelUsageMetricsResponse({}));
|
|
2695
|
+
}
|
|
2696
|
+
/**
|
|
2697
|
+
* Queries the TPM time series metrics of DataAgent analysis task model usage within a specified time range, returning token consumption at each time point with minute-level granularity.
|
|
2698
|
+
*
|
|
2699
|
+
* @remarks
|
|
2700
|
+
* Queries the TPM time series metrics of DataAgent analysis task model usage within a specified time range. The metrics are returned at minute-level granularity, showing the number of tokens consumed in each statistical interval for analyzing model usage trends over time.
|
|
2701
|
+
*
|
|
2702
|
+
* @param request - GetDataAgentTaskModelUsageMetricsRequest
|
|
2703
|
+
* @returns GetDataAgentTaskModelUsageMetricsResponse
|
|
2704
|
+
*/
|
|
2705
|
+
async getDataAgentTaskModelUsageMetrics(request) {
|
|
2706
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2707
|
+
return await this.getDataAgentTaskModelUsageMetricsWithOptions(request, runtime);
|
|
2708
|
+
}
|
|
2601
2709
|
/**
|
|
2602
2710
|
* Retrieves the details of a collaborative workspace.
|
|
2603
2711
|
*
|