Class: TencentCloud::Cls::V20201016::MetricConfigLabel

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201016/models.rb

Overview

指标采集label配置信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata = nil, label = nil, customlabels = nil) ⇒ MetricConfigLabel

Returns a new instance of MetricConfigLabel.



12896
12897
12898
12899
12900
# File 'lib/v20201016/models.rb', line 12896

def initialize(=nil, label=nil, customlabels=nil)
   = 
  @Label = label
  @CustomLabels = customlabels
end

Instance Attribute Details

#CustomLabels ⇒ Object

支持

  • namespace
  • pod_name
  • pod_ip
  • pod_uid
  • container_name
  • container_id
  • image_name
  • cluster_id
  • node_id
  • node_ip 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Metadata: —

    元数据。

  • Label: —

    元数据Pod Label信息。

  • CustomLabels: —

    自定义label信息。



12894
12895
12896
# File 'lib/v20201016/models.rb', line 12894

def CustomLabels
  @CustomLabels
end

#Label ⇒ Object

支持

  • namespace
  • pod_name
  • pod_ip
  • pod_uid
  • container_name
  • container_id
  • image_name
  • cluster_id
  • node_id
  • node_ip 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Metadata: —

    元数据。

  • Label: —

    元数据Pod Label信息。

  • CustomLabels: —

    自定义label信息。



12894
12895
12896
# File 'lib/v20201016/models.rb', line 12894

def Label
  @Label
end

#Metadata ⇒ Object

支持

  • namespace
  • pod_name
  • pod_ip
  • pod_uid
  • container_name
  • container_id
  • image_name
  • cluster_id
  • node_id
  • node_ip 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Metadata: —

    元数据。

  • Label: —

    元数据Pod Label信息。

  • CustomLabels: —

    自定义label信息。



12894
12895
12896
# File 'lib/v20201016/models.rb', line 12894

def 
  
end

Instance Method Details

#deserialize(params) ⇒ Object



12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
# File 'lib/v20201016/models.rb', line 12902

def deserialize(params)
   = params['Metadata']
  unless params['Label'].nil?
    @Label = AppointLabel.new
    @Label.deserialize(params['Label'])
  end
  unless params['CustomLabels'].nil?
    @CustomLabels = []
    params['CustomLabels'].each do |i|
      customlabel_tmp = CustomLabel.new
      customlabel_tmp.deserialize(i)
      @CustomLabels << customlabel_tmp
    end
  end
end