Class: TencentCloud::Cls::V20201016::CustomMetricSpec
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cls::V20201016::CustomMetricSpec
- Defined in:
- lib/v20201016/models.rb
Overview
自定义指标采集对象
Instance Attribute Summary collapse
-
#Namespaces ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Path ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PodLabel ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Port ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(port = nil, path = nil, namespaces = nil, podlabel = nil) ⇒ CustomMetricSpec
constructor
A new instance of CustomMetricSpec.
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 |