tencentcloud-sdk-python-dlc 3.1.202__tar.gz → 3.1.207__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.
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/setup.py +1 -1
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud/dlc/v20210125/dlc_client.py +23 -0
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud/dlc/v20210125/dlc_client_async.py +18 -0
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud/dlc/v20210125/errorcodes.py +12 -0
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud/dlc/v20210125/models.py +2077 -0
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud_sdk_python_dlc.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_dlc-3.1.207/tencentcloud_sdk_python_dlc.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_dlc-3.1.202/tencentcloud_sdk_python_dlc.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/README.rst +0 -0
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/setup.cfg +0 -0
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud/dlc/__init__.py +0 -0
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud/dlc/v20210125/__init__.py +0 -0
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud_sdk_python_dlc.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud_sdk_python_dlc.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_dlc-3.1.202 → tencentcloud_sdk_python_dlc-3.1.207}/tencentcloud_sdk_python_dlc.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-dlc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.207
|
|
4
4
|
Summary: Tencent Cloud Dlc 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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.207
|
|
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-dlc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.207,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Dlc SDK for Python',
|
|
@@ -4079,6 +4079,29 @@ class DlcClient(AbstractClient):
|
|
|
4079
4079
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4080
4080
|
|
|
4081
4081
|
|
|
4082
|
+
def DescribePartitionMonitorOverview(self, request):
|
|
4083
|
+
r"""查询指定资源分区的监控实时概览。指标命名规则 [queue_ 前缀]_<资源>_<K8s/Kueue 概念>[_business 后缀]:_business 后缀 = 计费口径(仅 ray-head/ray-worker 业务容器 limits,配额扣减与展示默认用);无后缀 = K8s 实事口径(全部容器,对照排查用)。GPU 类指标按 GPU 卡型拆分多条 MetricValue(Labels.GpuType 区分);gpu_limit_business 在 Prometheus 空集(无作业)时按分区配额卡型逐卡型补 value=0。分区维度额外含排队卡片指标(pending_workloads / admission_wait_seconds / top_queue_by_cpu 资源占用最高的队列,detail 表口径:按队列聚合活跃 Pod 的 cpu_limit 取 Top1,作业结束即归零,队列名见 Labels.QueueName(已截去 namespace 前缀与 -lq 后缀);Kueue 预留口径对照见 top_queue_by_cpu_reserved)与按量月消耗卡片(postpay_month_consumed_total)。携带 QueueName 时切换为资源组维度,指标集双向隔离(详见 QueueName 参数说明)
|
|
4084
|
+
|
|
4085
|
+
:param request: Request instance for DescribePartitionMonitorOverview.
|
|
4086
|
+
:type request: :class:`tencentcloud.dlc.v20210125.models.DescribePartitionMonitorOverviewRequest`
|
|
4087
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.DescribePartitionMonitorOverviewResponse`
|
|
4088
|
+
|
|
4089
|
+
"""
|
|
4090
|
+
try:
|
|
4091
|
+
params = request._serialize()
|
|
4092
|
+
headers = request.headers
|
|
4093
|
+
body = self.call("DescribePartitionMonitorOverview", params, headers=headers)
|
|
4094
|
+
response = json.loads(body)
|
|
4095
|
+
model = models.DescribePartitionMonitorOverviewResponse()
|
|
4096
|
+
model._deserialize(response["Response"])
|
|
4097
|
+
return model
|
|
4098
|
+
except Exception as e:
|
|
4099
|
+
if isinstance(e, TencentCloudSDKException):
|
|
4100
|
+
raise
|
|
4101
|
+
else:
|
|
4102
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4103
|
+
|
|
4104
|
+
|
|
4082
4105
|
def DescribePartitionQueues(self, request):
|
|
4083
4106
|
r"""查询指定分区的所有队列列表
|
|
4084
4107
|
|
|
@@ -3198,6 +3198,24 @@ class DlcClient(AbstractClient):
|
|
|
3198
3198
|
|
|
3199
3199
|
return await self.call_and_deserialize(**kwargs)
|
|
3200
3200
|
|
|
3201
|
+
async def DescribePartitionMonitorOverview(
|
|
3202
|
+
self,
|
|
3203
|
+
request: models.DescribePartitionMonitorOverviewRequest,
|
|
3204
|
+
opts: Dict = None,
|
|
3205
|
+
) -> models.DescribePartitionMonitorOverviewResponse:
|
|
3206
|
+
"""
|
|
3207
|
+
查询指定资源分区的监控实时概览。指标命名规则 [queue_ 前缀]_<资源>_<K8s/Kueue 概念>[_business 后缀]:_business 后缀 = 计费口径(仅 ray-head/ray-worker 业务容器 limits,配额扣减与展示默认用);无后缀 = K8s 实事口径(全部容器,对照排查用)。GPU 类指标按 GPU 卡型拆分多条 MetricValue(Labels.GpuType 区分);gpu_limit_business 在 Prometheus 空集(无作业)时按分区配额卡型逐卡型补 value=0。分区维度额外含排队卡片指标(pending_workloads / admission_wait_seconds / top_queue_by_cpu 资源占用最高的队列,detail 表口径:按队列聚合活跃 Pod 的 cpu_limit 取 Top1,作业结束即归零,队列名见 Labels.QueueName(已截去 namespace 前缀与 -lq 后缀);Kueue 预留口径对照见 top_queue_by_cpu_reserved)与按量月消耗卡片(postpay_month_consumed_total)。携带 QueueName 时切换为资源组维度,指标集双向隔离(详见 QueueName 参数说明)
|
|
3208
|
+
"""
|
|
3209
|
+
|
|
3210
|
+
kwargs = {}
|
|
3211
|
+
kwargs["action"] = "DescribePartitionMonitorOverview"
|
|
3212
|
+
kwargs["params"] = request._serialize()
|
|
3213
|
+
kwargs["resp_cls"] = models.DescribePartitionMonitorOverviewResponse
|
|
3214
|
+
kwargs["headers"] = request.headers
|
|
3215
|
+
kwargs["opts"] = opts or {}
|
|
3216
|
+
|
|
3217
|
+
return await self.call_and_deserialize(**kwargs)
|
|
3218
|
+
|
|
3201
3219
|
async def DescribePartitionQueues(
|
|
3202
3220
|
self,
|
|
3203
3221
|
request: models.DescribePartitionQueuesRequest,
|
|
@@ -134,6 +134,12 @@ FAILEDOPERATION_METASTOREERROR = 'FailedOperation.MetastoreError'
|
|
|
134
134
|
# 实例变配失败。
|
|
135
135
|
FAILEDOPERATION_MODIFYINSTANCEFAILED = 'FailedOperation.ModifyInstanceFailed'
|
|
136
136
|
|
|
137
|
+
# 资源包监控功能未启用
|
|
138
|
+
FAILEDOPERATION_MONITORDISABLED = 'FailedOperation.MonitorDisabled'
|
|
139
|
+
|
|
140
|
+
# 查询失败
|
|
141
|
+
FAILEDOPERATION_MONITORPROMETHEUSQUERYFAILED = 'FailedOperation.MonitorPrometheusQueryFailed'
|
|
142
|
+
|
|
137
143
|
# The datasource vpc has been bound to the engine
|
|
138
144
|
FAILEDOPERATION_NETWORKCONNECTIONEXIST = 'FailedOperation.NetworkConnectionExist'
|
|
139
145
|
|
|
@@ -761,6 +767,12 @@ RESOURCENOTFOUND_IMAGEVERSIONNOTUNIQUE = 'ResourceNotFound.ImageVersionNotUnique
|
|
|
761
767
|
# 作业不存在。
|
|
762
768
|
RESOURCENOTFOUND_JOB = 'ResourceNotFound.Job'
|
|
763
769
|
|
|
770
|
+
# ResourceNotFound.MonitorPartition
|
|
771
|
+
RESOURCENOTFOUND_MONITORPARTITION = 'ResourceNotFound.MonitorPartition'
|
|
772
|
+
|
|
773
|
+
# 资源包不存在或状态非有效
|
|
774
|
+
RESOURCENOTFOUND_MONITORQUEUE = 'ResourceNotFound.MonitorQueue'
|
|
775
|
+
|
|
764
776
|
# 该网络连接不存在
|
|
765
777
|
RESOURCENOTFOUND_NETWORKCONNECTIONNOTFOUND = 'ResourceNotFound.NetworkConnectionNotFound'
|
|
766
778
|
|