Class: TencentCloud::Cls::V20201016::CustomMetricSpec

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

Overview

自定义指标采集对象

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port = nil, path = nil, namespaces = nil, podlabel = nil) ⇒ CustomMetricSpec

Returns a new instance of CustomMetricSpec.



5033
5034
5035
5036
5037
5038
# File 'lib/v20201016/models.rb', line 5033

def initialize(port=nil, path=nil, namespaces=nil, podlabel=nil)
  @Port = port
  @Path = path
  @Namespaces = namespaces
  @PodLabel = podlabel
end

Instance Attribute Details

#Namespaces ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。



5031
5032
5033
# File 'lib/v20201016/models.rb', line 5031

def Namespaces
  @Namespaces
end

#Path ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。



5031
5032
5033
# File 'lib/v20201016/models.rb', line 5031

def Path
  @Path
end

#PodLabel ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。



5031
5032
5033
# File 'lib/v20201016/models.rb', line 5031

def PodLabel
  @PodLabel
end

#Port ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。



5031
5032
5033
# File 'lib/v20201016/models.rb', line 5031

def Port
  @Port
end

Instance Method Details

#deserialize(params) ⇒ Object



5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
# File 'lib/v20201016/models.rb', line 5040

def deserialize(params)
  @Port = params['Port']
  @Path = params['Path']
  @Namespaces = params['Namespaces']
  unless params['PodLabel'].nil?
    @PodLabel = []
    params['PodLabel'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @PodLabel << label_tmp
    end
  end
end