tencentcloud-sdk-python-adp 3.1.156__tar.gz → 3.1.162__tar.gz

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 (17) hide show
  1. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/setup.py +1 -1
  3. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud/adp/v20260520/adp_client.py +230 -0
  5. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud/adp/v20260520/adp_client_async.py +180 -0
  6. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud/adp/v20260520/errorcodes.py +3 -0
  7. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud/adp/v20260520/models.py +10628 -7119
  8. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud_sdk_python_adp.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_adp-3.1.162/tencentcloud_sdk_python_adp.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_adp-3.1.156/tencentcloud_sdk_python_adp.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/README.rst +0 -0
  12. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud/adp/__init__.py +0 -0
  14. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud/adp/v20260520/__init__.py +0 -0
  15. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud_sdk_python_adp.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud_sdk_python_adp.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_adp-3.1.156 → tencentcloud_sdk_python_adp-3.1.162}/tencentcloud_sdk_python_adp.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-adp
3
- Version: 3.1.156
3
+ Version: 3.1.162
4
4
  Summary: Tencent Cloud Adp SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.156
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.162
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-adp',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.156,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.162,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Adp SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.156'
17
+ __version__ = '3.1.162'
@@ -164,6 +164,29 @@ class AdpClient(AbstractClient):
164
164
  raise TencentCloudSDKException(type(e).__name__, str(e))
165
165
 
166
166
 
167
+ def CreateMsgRecordCategory(self, request):
168
+ r"""创建一条消息记录分类,支持指定分类名称与父分类(ParentId 为 0 时表示一级分类)
169
+
170
+ :param request: Request instance for CreateMsgRecordCategory.
171
+ :type request: :class:`tencentcloud.adp.v20260520.models.CreateMsgRecordCategoryRequest`
172
+ :rtype: :class:`tencentcloud.adp.v20260520.models.CreateMsgRecordCategoryResponse`
173
+
174
+ """
175
+ try:
176
+ params = request._serialize()
177
+ headers = request.headers
178
+ body = self.call("CreateMsgRecordCategory", params, headers=headers)
179
+ response = json.loads(body)
180
+ model = models.CreateMsgRecordCategoryResponse()
181
+ model._deserialize(response["Response"])
182
+ return model
183
+ except Exception as e:
184
+ if isinstance(e, TencentCloudSDKException):
185
+ raise
186
+ else:
187
+ raise TencentCloudSDKException(type(e).__name__, str(e))
188
+
189
+
167
190
  def CreatePlugin(self, request):
168
191
  r"""获取插件详情
169
192
 
@@ -440,6 +463,29 @@ class AdpClient(AbstractClient):
440
463
  raise TencentCloudSDKException(type(e).__name__, str(e))
441
464
 
442
465
 
466
+ def DeleteMsgRecordCategory(self, request):
467
+ r"""删除指定的消息记录分类
468
+
469
+ :param request: Request instance for DeleteMsgRecordCategory.
470
+ :type request: :class:`tencentcloud.adp.v20260520.models.DeleteMsgRecordCategoryRequest`
471
+ :rtype: :class:`tencentcloud.adp.v20260520.models.DeleteMsgRecordCategoryResponse`
472
+
473
+ """
474
+ try:
475
+ params = request._serialize()
476
+ headers = request.headers
477
+ body = self.call("DeleteMsgRecordCategory", params, headers=headers)
478
+ response = json.loads(body)
479
+ model = models.DeleteMsgRecordCategoryResponse()
480
+ model._deserialize(response["Response"])
481
+ return model
482
+ except Exception as e:
483
+ if isinstance(e, TencentCloudSDKException):
484
+ raise
485
+ else:
486
+ raise TencentCloudSDKException(type(e).__name__, str(e))
487
+
488
+
443
489
  def DeletePlugin(self, request):
444
490
  r"""修改插件
445
491
 
@@ -831,6 +877,52 @@ class AdpClient(AbstractClient):
831
877
  raise TencentCloudSDKException(type(e).__name__, str(e))
832
878
 
833
879
 
880
+ def DescribeConcurrencyLimitDetailList(self, request):
881
+ r"""查询并发超限明细,包含QPM/TPM超限与专属并发超限记录,返回超限发生时间、空间、应用、模型及请求内容
882
+
883
+ :param request: Request instance for DescribeConcurrencyLimitDetailList.
884
+ :type request: :class:`tencentcloud.adp.v20260520.models.DescribeConcurrencyLimitDetailListRequest`
885
+ :rtype: :class:`tencentcloud.adp.v20260520.models.DescribeConcurrencyLimitDetailListResponse`
886
+
887
+ """
888
+ try:
889
+ params = request._serialize()
890
+ headers = request.headers
891
+ body = self.call("DescribeConcurrencyLimitDetailList", params, headers=headers)
892
+ response = json.loads(body)
893
+ model = models.DescribeConcurrencyLimitDetailListResponse()
894
+ model._deserialize(response["Response"])
895
+ return model
896
+ except Exception as e:
897
+ if isinstance(e, TencentCloudSDKException):
898
+ raise
899
+ else:
900
+ raise TencentCloudSDKException(type(e).__name__, str(e))
901
+
902
+
903
+ def DescribeConsumptionDetailList(self, request):
904
+ r"""查询资源消耗明细,包含计费相关字段(消耗类型、消耗目标、消耗场景、套餐包及PU消耗等)
905
+
906
+ :param request: Request instance for DescribeConsumptionDetailList.
907
+ :type request: :class:`tencentcloud.adp.v20260520.models.DescribeConsumptionDetailListRequest`
908
+ :rtype: :class:`tencentcloud.adp.v20260520.models.DescribeConsumptionDetailListResponse`
909
+
910
+ """
911
+ try:
912
+ params = request._serialize()
913
+ headers = request.headers
914
+ body = self.call("DescribeConsumptionDetailList", params, headers=headers)
915
+ response = json.loads(body)
916
+ model = models.DescribeConsumptionDetailListResponse()
917
+ model._deserialize(response["Response"])
918
+ return model
919
+ except Exception as e:
920
+ if isinstance(e, TencentCloudSDKException):
921
+ raise
922
+ else:
923
+ raise TencentCloudSDKException(type(e).__name__, str(e))
924
+
925
+
834
926
  def DescribeConversation(self, request):
835
927
  r"""查看会话信息
836
928
 
@@ -923,6 +1015,29 @@ class AdpClient(AbstractClient):
923
1015
  raise TencentCloudSDKException(type(e).__name__, str(e))
924
1016
 
925
1017
 
1018
+ def DescribeMetricOverviewList(self, request):
1019
+ r"""查询看板总览KPI卡片数据,通过resource_type区分资源看板与业务看板域,返回各域KPI指标列表
1020
+
1021
+ :param request: Request instance for DescribeMetricOverviewList.
1022
+ :type request: :class:`tencentcloud.adp.v20260520.models.DescribeMetricOverviewListRequest`
1023
+ :rtype: :class:`tencentcloud.adp.v20260520.models.DescribeMetricOverviewListResponse`
1024
+
1025
+ """
1026
+ try:
1027
+ params = request._serialize()
1028
+ headers = request.headers
1029
+ body = self.call("DescribeMetricOverviewList", params, headers=headers)
1030
+ response = json.loads(body)
1031
+ model = models.DescribeMetricOverviewListResponse()
1032
+ model._deserialize(response["Response"])
1033
+ return model
1034
+ except Exception as e:
1035
+ if isinstance(e, TencentCloudSDKException):
1036
+ raise
1037
+ else:
1038
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1039
+
1040
+
926
1041
  def DescribeModelList(self, request):
927
1042
  r"""查询模型列表
928
1043
 
@@ -946,6 +1061,52 @@ class AdpClient(AbstractClient):
946
1061
  raise TencentCloudSDKException(type(e).__name__, str(e))
947
1062
 
948
1063
 
1064
+ def DescribeMsgRecordCategoryList(self, request):
1065
+ r"""查询应用的消息记录分类树,返回分类及子分类、各分类下记录数量与操作权限
1066
+
1067
+ :param request: Request instance for DescribeMsgRecordCategoryList.
1068
+ :type request: :class:`tencentcloud.adp.v20260520.models.DescribeMsgRecordCategoryListRequest`
1069
+ :rtype: :class:`tencentcloud.adp.v20260520.models.DescribeMsgRecordCategoryListResponse`
1070
+
1071
+ """
1072
+ try:
1073
+ params = request._serialize()
1074
+ headers = request.headers
1075
+ body = self.call("DescribeMsgRecordCategoryList", params, headers=headers)
1076
+ response = json.loads(body)
1077
+ model = models.DescribeMsgRecordCategoryListResponse()
1078
+ model._deserialize(response["Response"])
1079
+ return model
1080
+ except Exception as e:
1081
+ if isinstance(e, TencentCloudSDKException):
1082
+ raise
1083
+ else:
1084
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1085
+
1086
+
1087
+ def DescribeMsgRecordList(self, request):
1088
+ r"""查询应用的对话消息记录列表,支持按渠道类型、反馈类型、意图、调用结果等条件过滤,并支持游标分页与按创建时间排序
1089
+
1090
+ :param request: Request instance for DescribeMsgRecordList.
1091
+ :type request: :class:`tencentcloud.adp.v20260520.models.DescribeMsgRecordListRequest`
1092
+ :rtype: :class:`tencentcloud.adp.v20260520.models.DescribeMsgRecordListResponse`
1093
+
1094
+ """
1095
+ try:
1096
+ params = request._serialize()
1097
+ headers = request.headers
1098
+ body = self.call("DescribeMsgRecordList", params, headers=headers)
1099
+ response = json.loads(body)
1100
+ model = models.DescribeMsgRecordListResponse()
1101
+ model._deserialize(response["Response"])
1102
+ return model
1103
+ except Exception as e:
1104
+ if isinstance(e, TencentCloudSDKException):
1105
+ raise
1106
+ else:
1107
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1108
+
1109
+
949
1110
  def DescribePlugin(self, request):
950
1111
  r"""获取插件详情
951
1112
 
@@ -1176,6 +1337,52 @@ class AdpClient(AbstractClient):
1176
1337
  raise TencentCloudSDKException(type(e).__name__, str(e))
1177
1338
 
1178
1339
 
1340
+ def DescribeUsageDetailList(self, request):
1341
+ r"""查询资源调用时序明细,支持模型和插件两类资源,按时间顺序返回每条调用记录的详细信息
1342
+
1343
+ :param request: Request instance for DescribeUsageDetailList.
1344
+ :type request: :class:`tencentcloud.adp.v20260520.models.DescribeUsageDetailListRequest`
1345
+ :rtype: :class:`tencentcloud.adp.v20260520.models.DescribeUsageDetailListResponse`
1346
+
1347
+ """
1348
+ try:
1349
+ params = request._serialize()
1350
+ headers = request.headers
1351
+ body = self.call("DescribeUsageDetailList", params, headers=headers)
1352
+ response = json.loads(body)
1353
+ model = models.DescribeUsageDetailListResponse()
1354
+ model._deserialize(response["Response"])
1355
+ return model
1356
+ except Exception as e:
1357
+ if isinstance(e, TencentCloudSDKException):
1358
+ raise
1359
+ else:
1360
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1361
+
1362
+
1363
+ def DescribeUsageSummaryList(self, request):
1364
+ r"""查询资源用量聚合明细,支持模型、插件、平台三类资源,按空间/应用维度聚合展示调用次数、Token消耗等指标
1365
+
1366
+ :param request: Request instance for DescribeUsageSummaryList.
1367
+ :type request: :class:`tencentcloud.adp.v20260520.models.DescribeUsageSummaryListRequest`
1368
+ :rtype: :class:`tencentcloud.adp.v20260520.models.DescribeUsageSummaryListResponse`
1369
+
1370
+ """
1371
+ try:
1372
+ params = request._serialize()
1373
+ headers = request.headers
1374
+ body = self.call("DescribeUsageSummaryList", params, headers=headers)
1375
+ response = json.loads(body)
1376
+ model = models.DescribeUsageSummaryListResponse()
1377
+ model._deserialize(response["Response"])
1378
+ return model
1379
+ except Exception as e:
1380
+ if isinstance(e, TencentCloudSDKException):
1381
+ raise
1382
+ else:
1383
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1384
+
1385
+
1179
1386
  def DescribeVariable(self, request):
1180
1387
  r"""获取参数变量
1181
1388
 
@@ -1360,6 +1567,29 @@ class AdpClient(AbstractClient):
1360
1567
  raise TencentCloudSDKException(type(e).__name__, str(e))
1361
1568
 
1362
1569
 
1570
+ def ModifyMsgRecordCategory(self, request):
1571
+ r"""修改指定消息记录分类的名称
1572
+
1573
+ :param request: Request instance for ModifyMsgRecordCategory.
1574
+ :type request: :class:`tencentcloud.adp.v20260520.models.ModifyMsgRecordCategoryRequest`
1575
+ :rtype: :class:`tencentcloud.adp.v20260520.models.ModifyMsgRecordCategoryResponse`
1576
+
1577
+ """
1578
+ try:
1579
+ params = request._serialize()
1580
+ headers = request.headers
1581
+ body = self.call("ModifyMsgRecordCategory", params, headers=headers)
1582
+ response = json.loads(body)
1583
+ model = models.ModifyMsgRecordCategoryResponse()
1584
+ model._deserialize(response["Response"])
1585
+ return model
1586
+ except Exception as e:
1587
+ if isinstance(e, TencentCloudSDKException):
1588
+ raise
1589
+ else:
1590
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1591
+
1592
+
1363
1593
  def ModifyPlugin(self, request):
1364
1594
  r"""修改插件
1365
1595
 
@@ -133,6 +133,24 @@ class AdpClient(AbstractClient):
133
133
 
134
134
  return await self.call_and_deserialize(**kwargs)
135
135
 
136
+ async def CreateMsgRecordCategory(
137
+ self,
138
+ request: models.CreateMsgRecordCategoryRequest,
139
+ opts: Dict = None,
140
+ ) -> models.CreateMsgRecordCategoryResponse:
141
+ """
142
+ 创建一条消息记录分类,支持指定分类名称与父分类(ParentId 为 0 时表示一级分类)
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "CreateMsgRecordCategory"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.CreateMsgRecordCategoryResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
153
+
136
154
  async def CreatePlugin(
137
155
  self,
138
156
  request: models.CreatePluginRequest,
@@ -349,6 +367,24 @@ class AdpClient(AbstractClient):
349
367
 
350
368
  return await self.call_and_deserialize(**kwargs)
351
369
 
370
+ async def DeleteMsgRecordCategory(
371
+ self,
372
+ request: models.DeleteMsgRecordCategoryRequest,
373
+ opts: Dict = None,
374
+ ) -> models.DeleteMsgRecordCategoryResponse:
375
+ """
376
+ 删除指定的消息记录分类
377
+ """
378
+
379
+ kwargs = {}
380
+ kwargs["action"] = "DeleteMsgRecordCategory"
381
+ kwargs["params"] = request._serialize()
382
+ kwargs["resp_cls"] = models.DeleteMsgRecordCategoryResponse
383
+ kwargs["headers"] = request.headers
384
+ kwargs["opts"] = opts or {}
385
+
386
+ return await self.call_and_deserialize(**kwargs)
387
+
352
388
  async def DeletePlugin(
353
389
  self,
354
390
  request: models.DeletePluginRequest,
@@ -655,6 +691,42 @@ class AdpClient(AbstractClient):
655
691
 
656
692
  return await self.call_and_deserialize(**kwargs)
657
693
 
694
+ async def DescribeConcurrencyLimitDetailList(
695
+ self,
696
+ request: models.DescribeConcurrencyLimitDetailListRequest,
697
+ opts: Dict = None,
698
+ ) -> models.DescribeConcurrencyLimitDetailListResponse:
699
+ """
700
+ 查询并发超限明细,包含QPM/TPM超限与专属并发超限记录,返回超限发生时间、空间、应用、模型及请求内容
701
+ """
702
+
703
+ kwargs = {}
704
+ kwargs["action"] = "DescribeConcurrencyLimitDetailList"
705
+ kwargs["params"] = request._serialize()
706
+ kwargs["resp_cls"] = models.DescribeConcurrencyLimitDetailListResponse
707
+ kwargs["headers"] = request.headers
708
+ kwargs["opts"] = opts or {}
709
+
710
+ return await self.call_and_deserialize(**kwargs)
711
+
712
+ async def DescribeConsumptionDetailList(
713
+ self,
714
+ request: models.DescribeConsumptionDetailListRequest,
715
+ opts: Dict = None,
716
+ ) -> models.DescribeConsumptionDetailListResponse:
717
+ """
718
+ 查询资源消耗明细,包含计费相关字段(消耗类型、消耗目标、消耗场景、套餐包及PU消耗等)
719
+ """
720
+
721
+ kwargs = {}
722
+ kwargs["action"] = "DescribeConsumptionDetailList"
723
+ kwargs["params"] = request._serialize()
724
+ kwargs["resp_cls"] = models.DescribeConsumptionDetailListResponse
725
+ kwargs["headers"] = request.headers
726
+ kwargs["opts"] = opts or {}
727
+
728
+ return await self.call_and_deserialize(**kwargs)
729
+
658
730
  async def DescribeConversation(
659
731
  self,
660
732
  request: models.DescribeConversationRequest,
@@ -727,6 +799,24 @@ class AdpClient(AbstractClient):
727
799
 
728
800
  return await self.call_and_deserialize(**kwargs)
729
801
 
802
+ async def DescribeMetricOverviewList(
803
+ self,
804
+ request: models.DescribeMetricOverviewListRequest,
805
+ opts: Dict = None,
806
+ ) -> models.DescribeMetricOverviewListResponse:
807
+ """
808
+ 查询看板总览KPI卡片数据,通过resource_type区分资源看板与业务看板域,返回各域KPI指标列表
809
+ """
810
+
811
+ kwargs = {}
812
+ kwargs["action"] = "DescribeMetricOverviewList"
813
+ kwargs["params"] = request._serialize()
814
+ kwargs["resp_cls"] = models.DescribeMetricOverviewListResponse
815
+ kwargs["headers"] = request.headers
816
+ kwargs["opts"] = opts or {}
817
+
818
+ return await self.call_and_deserialize(**kwargs)
819
+
730
820
  async def DescribeModelList(
731
821
  self,
732
822
  request: models.DescribeModelListRequest,
@@ -745,6 +835,42 @@ class AdpClient(AbstractClient):
745
835
 
746
836
  return await self.call_and_deserialize(**kwargs)
747
837
 
838
+ async def DescribeMsgRecordCategoryList(
839
+ self,
840
+ request: models.DescribeMsgRecordCategoryListRequest,
841
+ opts: Dict = None,
842
+ ) -> models.DescribeMsgRecordCategoryListResponse:
843
+ """
844
+ 查询应用的消息记录分类树,返回分类及子分类、各分类下记录数量与操作权限
845
+ """
846
+
847
+ kwargs = {}
848
+ kwargs["action"] = "DescribeMsgRecordCategoryList"
849
+ kwargs["params"] = request._serialize()
850
+ kwargs["resp_cls"] = models.DescribeMsgRecordCategoryListResponse
851
+ kwargs["headers"] = request.headers
852
+ kwargs["opts"] = opts or {}
853
+
854
+ return await self.call_and_deserialize(**kwargs)
855
+
856
+ async def DescribeMsgRecordList(
857
+ self,
858
+ request: models.DescribeMsgRecordListRequest,
859
+ opts: Dict = None,
860
+ ) -> models.DescribeMsgRecordListResponse:
861
+ """
862
+ 查询应用的对话消息记录列表,支持按渠道类型、反馈类型、意图、调用结果等条件过滤,并支持游标分页与按创建时间排序
863
+ """
864
+
865
+ kwargs = {}
866
+ kwargs["action"] = "DescribeMsgRecordList"
867
+ kwargs["params"] = request._serialize()
868
+ kwargs["resp_cls"] = models.DescribeMsgRecordListResponse
869
+ kwargs["headers"] = request.headers
870
+ kwargs["opts"] = opts or {}
871
+
872
+ return await self.call_and_deserialize(**kwargs)
873
+
748
874
  async def DescribePlugin(
749
875
  self,
750
876
  request: models.DescribePluginRequest,
@@ -925,6 +1051,42 @@ class AdpClient(AbstractClient):
925
1051
 
926
1052
  return await self.call_and_deserialize(**kwargs)
927
1053
 
1054
+ async def DescribeUsageDetailList(
1055
+ self,
1056
+ request: models.DescribeUsageDetailListRequest,
1057
+ opts: Dict = None,
1058
+ ) -> models.DescribeUsageDetailListResponse:
1059
+ """
1060
+ 查询资源调用时序明细,支持模型和插件两类资源,按时间顺序返回每条调用记录的详细信息
1061
+ """
1062
+
1063
+ kwargs = {}
1064
+ kwargs["action"] = "DescribeUsageDetailList"
1065
+ kwargs["params"] = request._serialize()
1066
+ kwargs["resp_cls"] = models.DescribeUsageDetailListResponse
1067
+ kwargs["headers"] = request.headers
1068
+ kwargs["opts"] = opts or {}
1069
+
1070
+ return await self.call_and_deserialize(**kwargs)
1071
+
1072
+ async def DescribeUsageSummaryList(
1073
+ self,
1074
+ request: models.DescribeUsageSummaryListRequest,
1075
+ opts: Dict = None,
1076
+ ) -> models.DescribeUsageSummaryListResponse:
1077
+ """
1078
+ 查询资源用量聚合明细,支持模型、插件、平台三类资源,按空间/应用维度聚合展示调用次数、Token消耗等指标
1079
+ """
1080
+
1081
+ kwargs = {}
1082
+ kwargs["action"] = "DescribeUsageSummaryList"
1083
+ kwargs["params"] = request._serialize()
1084
+ kwargs["resp_cls"] = models.DescribeUsageSummaryListResponse
1085
+ kwargs["headers"] = request.headers
1086
+ kwargs["opts"] = opts or {}
1087
+
1088
+ return await self.call_and_deserialize(**kwargs)
1089
+
928
1090
  async def DescribeVariable(
929
1091
  self,
930
1092
  request: models.DescribeVariableRequest,
@@ -1069,6 +1231,24 @@ class AdpClient(AbstractClient):
1069
1231
 
1070
1232
  return await self.call_and_deserialize(**kwargs)
1071
1233
 
1234
+ async def ModifyMsgRecordCategory(
1235
+ self,
1236
+ request: models.ModifyMsgRecordCategoryRequest,
1237
+ opts: Dict = None,
1238
+ ) -> models.ModifyMsgRecordCategoryResponse:
1239
+ """
1240
+ 修改指定消息记录分类的名称
1241
+ """
1242
+
1243
+ kwargs = {}
1244
+ kwargs["action"] = "ModifyMsgRecordCategory"
1245
+ kwargs["params"] = request._serialize()
1246
+ kwargs["resp_cls"] = models.ModifyMsgRecordCategoryResponse
1247
+ kwargs["headers"] = request.headers
1248
+ kwargs["opts"] = opts or {}
1249
+
1250
+ return await self.call_and_deserialize(**kwargs)
1251
+
1072
1252
  async def ModifyPlugin(
1073
1253
  self,
1074
1254
  request: models.ModifyPluginRequest,
@@ -22,3 +22,6 @@ INTERNALERROR = 'InternalError'
22
22
 
23
23
  # 参数错误。
24
24
  INVALIDPARAMETER = 'InvalidParameter'
25
+
26
+ # 资源不存在。
27
+ RESOURCENOTFOUND = 'ResourceNotFound'