tencentcloud-sdk-python-dlc 3.1.203__py2.py3-none-any.whl → 3.1.207__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/dlc/v20210125/dlc_client.py +23 -0
- tencentcloud/dlc/v20210125/dlc_client_async.py +18 -0
- tencentcloud/dlc/v20210125/errorcodes.py +12 -0
- tencentcloud/dlc/v20210125/models.py +307 -0
- {tencentcloud_sdk_python_dlc-3.1.203.dist-info → tencentcloud_sdk_python_dlc-3.1.207.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_dlc-3.1.207.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_dlc-3.1.203.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_dlc-3.1.203.dist-info → tencentcloud_sdk_python_dlc-3.1.207.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_dlc-3.1.203.dist-info → tencentcloud_sdk_python_dlc-3.1.207.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -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
|
|
|
@@ -41869,6 +41869,120 @@ class DescribePartitionDetailResponse(AbstractModel):
|
|
|
41869
41869
|
self._RequestId = params.get("RequestId")
|
|
41870
41870
|
|
|
41871
41871
|
|
|
41872
|
+
class DescribePartitionMonitorOverviewRequest(AbstractModel):
|
|
41873
|
+
r"""DescribePartitionMonitorOverview请求参数结构体
|
|
41874
|
+
|
|
41875
|
+
"""
|
|
41876
|
+
|
|
41877
|
+
def __init__(self):
|
|
41878
|
+
r"""
|
|
41879
|
+
:param _PartitionCode: <p>资源分区编码</p>
|
|
41880
|
+
:type PartitionCode: str
|
|
41881
|
+
:param _QueueName: <p>资源组(队列)名称,可选。不传时返回 partition 维度指标(含 pending_workloads / admission_wait_seconds / top_queue_by_cpu 排队卡片、<em>_limit_business 计费口径已使用量、</em><em>quota_total 配额、postpay_month_consumed_total 当月已消耗);传入时切换为 queue 维度:仅返回 queue</em> 前缀指标(queue_<em><em>limit_business 计费口径已使用量 / queue</em></em>_admitted Kueue 对照口径 / queue_pending_workloads / queue_admission_wait_seconds)+ 该队列的配额指标(cpu_quota_total / memory_quota_total / gpu_quota_total / vram_quota_total,数值来自队列的 resource_usage 而非分区 resource_config)+ postpay_month_consumed_total</p>
|
|
41882
|
+
:type QueueName: str
|
|
41883
|
+
:param _MetricKeys: <p>指标 key 过滤列表,为空则返回全部指标</p>
|
|
41884
|
+
:type MetricKeys: list of str
|
|
41885
|
+
"""
|
|
41886
|
+
self._PartitionCode = None
|
|
41887
|
+
self._QueueName = None
|
|
41888
|
+
self._MetricKeys = None
|
|
41889
|
+
|
|
41890
|
+
@property
|
|
41891
|
+
def PartitionCode(self):
|
|
41892
|
+
r"""<p>资源分区编码</p>
|
|
41893
|
+
:rtype: str
|
|
41894
|
+
"""
|
|
41895
|
+
return self._PartitionCode
|
|
41896
|
+
|
|
41897
|
+
@PartitionCode.setter
|
|
41898
|
+
def PartitionCode(self, PartitionCode):
|
|
41899
|
+
self._PartitionCode = PartitionCode
|
|
41900
|
+
|
|
41901
|
+
@property
|
|
41902
|
+
def QueueName(self):
|
|
41903
|
+
r"""<p>资源组(队列)名称,可选。不传时返回 partition 维度指标(含 pending_workloads / admission_wait_seconds / top_queue_by_cpu 排队卡片、<em>_limit_business 计费口径已使用量、</em><em>quota_total 配额、postpay_month_consumed_total 当月已消耗);传入时切换为 queue 维度:仅返回 queue</em> 前缀指标(queue_<em><em>limit_business 计费口径已使用量 / queue</em></em>_admitted Kueue 对照口径 / queue_pending_workloads / queue_admission_wait_seconds)+ 该队列的配额指标(cpu_quota_total / memory_quota_total / gpu_quota_total / vram_quota_total,数值来自队列的 resource_usage 而非分区 resource_config)+ postpay_month_consumed_total</p>
|
|
41904
|
+
:rtype: str
|
|
41905
|
+
"""
|
|
41906
|
+
return self._QueueName
|
|
41907
|
+
|
|
41908
|
+
@QueueName.setter
|
|
41909
|
+
def QueueName(self, QueueName):
|
|
41910
|
+
self._QueueName = QueueName
|
|
41911
|
+
|
|
41912
|
+
@property
|
|
41913
|
+
def MetricKeys(self):
|
|
41914
|
+
r"""<p>指标 key 过滤列表,为空则返回全部指标</p>
|
|
41915
|
+
:rtype: list of str
|
|
41916
|
+
"""
|
|
41917
|
+
return self._MetricKeys
|
|
41918
|
+
|
|
41919
|
+
@MetricKeys.setter
|
|
41920
|
+
def MetricKeys(self, MetricKeys):
|
|
41921
|
+
self._MetricKeys = MetricKeys
|
|
41922
|
+
|
|
41923
|
+
|
|
41924
|
+
def _deserialize(self, params):
|
|
41925
|
+
self._PartitionCode = params.get("PartitionCode")
|
|
41926
|
+
self._QueueName = params.get("QueueName")
|
|
41927
|
+
self._MetricKeys = params.get("MetricKeys")
|
|
41928
|
+
memeber_set = set(params.keys())
|
|
41929
|
+
for name, value in vars(self).items():
|
|
41930
|
+
property_name = name[1:]
|
|
41931
|
+
if property_name in memeber_set:
|
|
41932
|
+
memeber_set.remove(property_name)
|
|
41933
|
+
if len(memeber_set) > 0:
|
|
41934
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
41935
|
+
|
|
41936
|
+
|
|
41937
|
+
|
|
41938
|
+
class DescribePartitionMonitorOverviewResponse(AbstractModel):
|
|
41939
|
+
r"""DescribePartitionMonitorOverview返回参数结构体
|
|
41940
|
+
|
|
41941
|
+
"""
|
|
41942
|
+
|
|
41943
|
+
def __init__(self):
|
|
41944
|
+
r"""
|
|
41945
|
+
:param _Metrics: <p>监控指标列表</p>
|
|
41946
|
+
:type Metrics: list of MetricValue
|
|
41947
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
41948
|
+
:type RequestId: str
|
|
41949
|
+
"""
|
|
41950
|
+
self._Metrics = None
|
|
41951
|
+
self._RequestId = None
|
|
41952
|
+
|
|
41953
|
+
@property
|
|
41954
|
+
def Metrics(self):
|
|
41955
|
+
r"""<p>监控指标列表</p>
|
|
41956
|
+
:rtype: list of MetricValue
|
|
41957
|
+
"""
|
|
41958
|
+
return self._Metrics
|
|
41959
|
+
|
|
41960
|
+
@Metrics.setter
|
|
41961
|
+
def Metrics(self, Metrics):
|
|
41962
|
+
self._Metrics = Metrics
|
|
41963
|
+
|
|
41964
|
+
@property
|
|
41965
|
+
def RequestId(self):
|
|
41966
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
41967
|
+
:rtype: str
|
|
41968
|
+
"""
|
|
41969
|
+
return self._RequestId
|
|
41970
|
+
|
|
41971
|
+
@RequestId.setter
|
|
41972
|
+
def RequestId(self, RequestId):
|
|
41973
|
+
self._RequestId = RequestId
|
|
41974
|
+
|
|
41975
|
+
|
|
41976
|
+
def _deserialize(self, params):
|
|
41977
|
+
if params.get("Metrics") is not None:
|
|
41978
|
+
self._Metrics = []
|
|
41979
|
+
for item in params.get("Metrics"):
|
|
41980
|
+
obj = MetricValue()
|
|
41981
|
+
obj._deserialize(item)
|
|
41982
|
+
self._Metrics.append(obj)
|
|
41983
|
+
self._RequestId = params.get("RequestId")
|
|
41984
|
+
|
|
41985
|
+
|
|
41872
41986
|
class DescribePartitionQueuesRequest(AbstractModel):
|
|
41873
41987
|
r"""DescribePartitionQueues请求参数结构体
|
|
41874
41988
|
|
|
@@ -76334,6 +76448,199 @@ class MetricItem(AbstractModel):
|
|
|
76334
76448
|
|
|
76335
76449
|
|
|
76336
76450
|
|
|
76451
|
+
class MetricLabels(AbstractModel):
|
|
76452
|
+
r"""维度标签集合。当前已知 key:QueueName(多队列时序)、QueueAlias(队列展示别名,前端图例展示用,alias 缺省时回落为队列 code)、GpuType(GPU 类指标按卡型拆分时携带)、ResourceType(预留,时序路径当前不输出)。未来扩展新维度(如 Region / Zone)时,以 optional 属性形式追加到本 schema
|
|
76453
|
+
|
|
76454
|
+
"""
|
|
76455
|
+
|
|
76456
|
+
def __init__(self):
|
|
76457
|
+
r"""
|
|
76458
|
+
:param _GpuType: <p>GPU 卡型简称,取值如 T4 / A10 / V100 / L20 / H20。来自 TKE GPU Exporter 暴露的 gpu_info.name,由查询层归一(name="Tesla T4" → GpuType="T4");未识别的卡型保留原始 name 值</p>
|
|
76459
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76460
|
+
:type GpuType: str
|
|
76461
|
+
:param _QueueName: <p>队列编码 code(多队列时序查询时,每个 series 携带所属队列 code,与 GpuType 组合区分曲线;展示别名见 QueueAlias)</p>
|
|
76462
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76463
|
+
:type QueueName: str
|
|
76464
|
+
:param _QueueAlias: <p>队列展示别名(多队列时序查询时每个 series 携带,前端图例展示用;队列不存在或 alias 为空时回落为队列 code)</p>
|
|
76465
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76466
|
+
:type QueueAlias: str
|
|
76467
|
+
:param _ResourceType: <p>计费项资源类型(CPU / HM_CPU)。Overview 路径的 CPU / 内存类指标按计费项资源类型拆分 series 时携带;时序路径当前不输出该字段(预留对齐 MetricLabels 定义)</p>
|
|
76468
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76469
|
+
:type ResourceType: str
|
|
76470
|
+
"""
|
|
76471
|
+
self._GpuType = None
|
|
76472
|
+
self._QueueName = None
|
|
76473
|
+
self._QueueAlias = None
|
|
76474
|
+
self._ResourceType = None
|
|
76475
|
+
|
|
76476
|
+
@property
|
|
76477
|
+
def GpuType(self):
|
|
76478
|
+
r"""<p>GPU 卡型简称,取值如 T4 / A10 / V100 / L20 / H20。来自 TKE GPU Exporter 暴露的 gpu_info.name,由查询层归一(name="Tesla T4" → GpuType="T4");未识别的卡型保留原始 name 值</p>
|
|
76479
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76480
|
+
:rtype: str
|
|
76481
|
+
"""
|
|
76482
|
+
return self._GpuType
|
|
76483
|
+
|
|
76484
|
+
@GpuType.setter
|
|
76485
|
+
def GpuType(self, GpuType):
|
|
76486
|
+
self._GpuType = GpuType
|
|
76487
|
+
|
|
76488
|
+
@property
|
|
76489
|
+
def QueueName(self):
|
|
76490
|
+
r"""<p>队列编码 code(多队列时序查询时,每个 series 携带所属队列 code,与 GpuType 组合区分曲线;展示别名见 QueueAlias)</p>
|
|
76491
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76492
|
+
:rtype: str
|
|
76493
|
+
"""
|
|
76494
|
+
return self._QueueName
|
|
76495
|
+
|
|
76496
|
+
@QueueName.setter
|
|
76497
|
+
def QueueName(self, QueueName):
|
|
76498
|
+
self._QueueName = QueueName
|
|
76499
|
+
|
|
76500
|
+
@property
|
|
76501
|
+
def QueueAlias(self):
|
|
76502
|
+
r"""<p>队列展示别名(多队列时序查询时每个 series 携带,前端图例展示用;队列不存在或 alias 为空时回落为队列 code)</p>
|
|
76503
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76504
|
+
:rtype: str
|
|
76505
|
+
"""
|
|
76506
|
+
return self._QueueAlias
|
|
76507
|
+
|
|
76508
|
+
@QueueAlias.setter
|
|
76509
|
+
def QueueAlias(self, QueueAlias):
|
|
76510
|
+
self._QueueAlias = QueueAlias
|
|
76511
|
+
|
|
76512
|
+
@property
|
|
76513
|
+
def ResourceType(self):
|
|
76514
|
+
r"""<p>计费项资源类型(CPU / HM_CPU)。Overview 路径的 CPU / 内存类指标按计费项资源类型拆分 series 时携带;时序路径当前不输出该字段(预留对齐 MetricLabels 定义)</p>
|
|
76515
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76516
|
+
:rtype: str
|
|
76517
|
+
"""
|
|
76518
|
+
return self._ResourceType
|
|
76519
|
+
|
|
76520
|
+
@ResourceType.setter
|
|
76521
|
+
def ResourceType(self, ResourceType):
|
|
76522
|
+
self._ResourceType = ResourceType
|
|
76523
|
+
|
|
76524
|
+
|
|
76525
|
+
def _deserialize(self, params):
|
|
76526
|
+
self._GpuType = params.get("GpuType")
|
|
76527
|
+
self._QueueName = params.get("QueueName")
|
|
76528
|
+
self._QueueAlias = params.get("QueueAlias")
|
|
76529
|
+
self._ResourceType = params.get("ResourceType")
|
|
76530
|
+
memeber_set = set(params.keys())
|
|
76531
|
+
for name, value in vars(self).items():
|
|
76532
|
+
property_name = name[1:]
|
|
76533
|
+
if property_name in memeber_set:
|
|
76534
|
+
memeber_set.remove(property_name)
|
|
76535
|
+
if len(memeber_set) > 0:
|
|
76536
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
76537
|
+
|
|
76538
|
+
|
|
76539
|
+
|
|
76540
|
+
class MetricValue(AbstractModel):
|
|
76541
|
+
r"""监控指标值(不含展示名,前端按 MetricKey 自行映射文案)
|
|
76542
|
+
|
|
76543
|
+
"""
|
|
76544
|
+
|
|
76545
|
+
def __init__(self):
|
|
76546
|
+
r"""
|
|
76547
|
+
:param _MetricKey: <p>指标键名,如 cpu_allocation、cpu_quota_total 等</p>
|
|
76548
|
+
:type MetricKey: str
|
|
76549
|
+
:param _Value: <p>指标当前值,可能为 null(PromQL 返回空数据集时),前端按 null 视作"无数据"处理</p>
|
|
76550
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76551
|
+
:type Value: float
|
|
76552
|
+
:param _Unit: <p>指标单位,如 core、card、GB</p>
|
|
76553
|
+
:type Unit: str
|
|
76554
|
+
:param _ResourceType: <p>资源类型:cpu / gpu / memory / vram / kueue / consumption</p>
|
|
76555
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76556
|
+
:type ResourceType: str
|
|
76557
|
+
:param _Labels: <p>维度标签。单 series 指标(CPU / 内存 / Kueue 等)不出现此字段;多 series 指标(GPU 类按卡型拆分)每条 MetricValue 携带不同的 Labels 区分维度。前端按 (MetricKey, Labels) 二元组识别每条记录</p>
|
|
76558
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76559
|
+
:type Labels: :class:`tencentcloud.dlc.v20210125.models.MetricLabels`
|
|
76560
|
+
"""
|
|
76561
|
+
self._MetricKey = None
|
|
76562
|
+
self._Value = None
|
|
76563
|
+
self._Unit = None
|
|
76564
|
+
self._ResourceType = None
|
|
76565
|
+
self._Labels = None
|
|
76566
|
+
|
|
76567
|
+
@property
|
|
76568
|
+
def MetricKey(self):
|
|
76569
|
+
r"""<p>指标键名,如 cpu_allocation、cpu_quota_total 等</p>
|
|
76570
|
+
:rtype: str
|
|
76571
|
+
"""
|
|
76572
|
+
return self._MetricKey
|
|
76573
|
+
|
|
76574
|
+
@MetricKey.setter
|
|
76575
|
+
def MetricKey(self, MetricKey):
|
|
76576
|
+
self._MetricKey = MetricKey
|
|
76577
|
+
|
|
76578
|
+
@property
|
|
76579
|
+
def Value(self):
|
|
76580
|
+
r"""<p>指标当前值,可能为 null(PromQL 返回空数据集时),前端按 null 视作"无数据"处理</p>
|
|
76581
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76582
|
+
:rtype: float
|
|
76583
|
+
"""
|
|
76584
|
+
return self._Value
|
|
76585
|
+
|
|
76586
|
+
@Value.setter
|
|
76587
|
+
def Value(self, Value):
|
|
76588
|
+
self._Value = Value
|
|
76589
|
+
|
|
76590
|
+
@property
|
|
76591
|
+
def Unit(self):
|
|
76592
|
+
r"""<p>指标单位,如 core、card、GB</p>
|
|
76593
|
+
:rtype: str
|
|
76594
|
+
"""
|
|
76595
|
+
return self._Unit
|
|
76596
|
+
|
|
76597
|
+
@Unit.setter
|
|
76598
|
+
def Unit(self, Unit):
|
|
76599
|
+
self._Unit = Unit
|
|
76600
|
+
|
|
76601
|
+
@property
|
|
76602
|
+
def ResourceType(self):
|
|
76603
|
+
r"""<p>资源类型:cpu / gpu / memory / vram / kueue / consumption</p>
|
|
76604
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76605
|
+
:rtype: str
|
|
76606
|
+
"""
|
|
76607
|
+
return self._ResourceType
|
|
76608
|
+
|
|
76609
|
+
@ResourceType.setter
|
|
76610
|
+
def ResourceType(self, ResourceType):
|
|
76611
|
+
self._ResourceType = ResourceType
|
|
76612
|
+
|
|
76613
|
+
@property
|
|
76614
|
+
def Labels(self):
|
|
76615
|
+
r"""<p>维度标签。单 series 指标(CPU / 内存 / Kueue 等)不出现此字段;多 series 指标(GPU 类按卡型拆分)每条 MetricValue 携带不同的 Labels 区分维度。前端按 (MetricKey, Labels) 二元组识别每条记录</p>
|
|
76616
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76617
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.MetricLabels`
|
|
76618
|
+
"""
|
|
76619
|
+
return self._Labels
|
|
76620
|
+
|
|
76621
|
+
@Labels.setter
|
|
76622
|
+
def Labels(self, Labels):
|
|
76623
|
+
self._Labels = Labels
|
|
76624
|
+
|
|
76625
|
+
|
|
76626
|
+
def _deserialize(self, params):
|
|
76627
|
+
self._MetricKey = params.get("MetricKey")
|
|
76628
|
+
self._Value = params.get("Value")
|
|
76629
|
+
self._Unit = params.get("Unit")
|
|
76630
|
+
self._ResourceType = params.get("ResourceType")
|
|
76631
|
+
if params.get("Labels") is not None:
|
|
76632
|
+
self._Labels = MetricLabels()
|
|
76633
|
+
self._Labels._deserialize(params.get("Labels"))
|
|
76634
|
+
memeber_set = set(params.keys())
|
|
76635
|
+
for name, value in vars(self).items():
|
|
76636
|
+
property_name = name[1:]
|
|
76637
|
+
if property_name in memeber_set:
|
|
76638
|
+
memeber_set.remove(property_name)
|
|
76639
|
+
if len(memeber_set) > 0:
|
|
76640
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
76641
|
+
|
|
76642
|
+
|
|
76643
|
+
|
|
76337
76644
|
class MetricsData(AbstractModel):
|
|
76338
76645
|
r"""监控指标数据
|
|
76339
76646
|
|
|
@@ -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
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=7wxxwgy4o2cS92M5HhRyu1CjoSZz6utbZRAzG9UpafU,630
|
|
2
|
+
tencentcloud/dlc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/dlc/v20210125/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/dlc/v20210125/dlc_client.py,sha256=lrxjvN4PBF1hcU64frv4ZMydUt2QuZha1sW7nHx4MGs,351351
|
|
5
|
+
tencentcloud/dlc/v20210125/dlc_client_async.py,sha256=iZc7L7V9VAybIUGWQQayueoGIhN7eb725v05wqSmy-8,236551
|
|
6
|
+
tencentcloud/dlc/v20210125/errorcodes.py,sha256=6TW-x3D-xfu8AX3jWP-8EYwVv7G4jgNm33k108lLc7M,41814
|
|
7
|
+
tencentcloud/dlc/v20210125/models.py,sha256=19xh3OZiMhDR4N0Hi-t29s9fIKxFle0nJ7iWBixucF0,3698213
|
|
8
|
+
tencentcloud_sdk_python_dlc-3.1.207.dist-info/METADATA,sha256=_8DeBgNZ5dKbwukngdS5spICc6oTkuO7S0tPKUW6de4,1497
|
|
9
|
+
tencentcloud_sdk_python_dlc-3.1.207.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_dlc-3.1.207.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_dlc-3.1.207.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=vxhWwM2MhE3xAluX845mY-C2pU1BsoU5GlWPd15e6fM,630
|
|
2
|
-
tencentcloud/dlc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/dlc/v20210125/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/dlc/v20210125/dlc_client.py,sha256=Xh642EgkUCznbkxsZArFbM2v5gqZOkkexcGkLsP47C4,349386
|
|
5
|
-
tencentcloud/dlc/v20210125/dlc_client_async.py,sha256=R8y5DICiTfqGqtwDYJL2L6wxrWDzSAoTCtjudszSpPI,234900
|
|
6
|
-
tencentcloud/dlc/v20210125/errorcodes.py,sha256=Qo_uttcWT3QdoZDmmPR5de_MPy5-ylatbxfjUHHw-Ug,41389
|
|
7
|
-
tencentcloud/dlc/v20210125/models.py,sha256=1E5Mvq5A1RcKjnXnc2bCmu8tjF1vBcq-A1lw1AmKMt0,3685090
|
|
8
|
-
tencentcloud_sdk_python_dlc-3.1.203.dist-info/METADATA,sha256=7-7_zIVZhwZWgoodW0I722KvCWPdMn6cS7I2o0x-6ek,1497
|
|
9
|
-
tencentcloud_sdk_python_dlc-3.1.203.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
-
tencentcloud_sdk_python_dlc-3.1.203.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_dlc-3.1.203.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|