Class: TencentCloud::Monitor::V20180724::PrometheusConfigItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::PrometheusConfigItem
- Defined in:
- lib/v20180724/models.rb
Overview
prometheus配置
Instance Attribute Summary collapse
-
#Config ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Targets ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, config = nil, templateid = nil, targets = nil) ⇒ PrometheusConfigItem
constructor
A new instance of PrometheusConfigItem.
Constructor Details
#initialize(name = nil, config = nil, templateid = nil, targets = nil) ⇒ PrometheusConfigItem
Returns a new instance of PrometheusConfigItem.
13354 13355 13356 13357 13358 13359 |
# File 'lib/v20180724/models.rb', line 13354 def initialize(name=nil, config=nil, templateid=nil, targets=nil) @Name = name @Config = config @TemplateId = templateid @Targets = targets end |
Instance Attribute Details
#Config ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
13352 13353 13354 |
# File 'lib/v20180724/models.rb', line 13352 def Config @Config end |
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
13352 13353 13354 |
# File 'lib/v20180724/models.rb', line 13352 def Name @Name end |
#Targets ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
13352 13353 13354 |
# File 'lib/v20180724/models.rb', line 13352 def Targets @Targets end |
#TemplateId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
13352 13353 13354 |
# File 'lib/v20180724/models.rb', line 13352 def TemplateId @TemplateId end |
Instance Method Details
#deserialize(params) ⇒ Object
13361 13362 13363 13364 13365 13366 13367 13368 13369 |
# File 'lib/v20180724/models.rb', line 13361 def deserialize(params) @Name = params['Name'] @Config = params['Config'] @TemplateId = params['TemplateId'] unless params['Targets'].nil? @Targets = Targets.new @Targets.deserialize(params['Targets']) end end |