Class: TencentCloud::Tke::V20180525::PrometheusAlertRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::PrometheusAlertRule
- Defined in:
- lib/v20180525/models.rb
Overview
Prometheus告警规则
Instance Attribute Summary collapse
-
#Annotations ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Describe ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#For ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Labels ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Rule ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#RuleState ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Template ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, rule = nil, labels = nil, template = nil, _for = nil, describe = nil, annotations = nil, rulestate = nil) ⇒ PrometheusAlertRule
constructor
A new instance of PrometheusAlertRule.
Constructor Details
#initialize(name = nil, rule = nil, labels = nil, template = nil, _for = nil, describe = nil, annotations = nil, rulestate = nil) ⇒ PrometheusAlertRule
Returns a new instance of PrometheusAlertRule.
17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 |
# File 'lib/v20180525/models.rb', line 17644 def initialize(name=nil, rule=nil, labels=nil, template=nil, _for=nil, describe=nil, annotations=nil, rulestate=nil) @Name = name @Rule = rule @Labels = labels @Template = template @For = _for @Describe = describe @Annotations = annotations @RuleState = rulestate end |
Instance Attribute Details
#Annotations ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
17642 17643 17644 |
# File 'lib/v20180525/models.rb', line 17642 def Annotations @Annotations end |
#Describe ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
17642 17643 17644 |
# File 'lib/v20180525/models.rb', line 17642 def Describe @Describe end |
#For ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
17642 17643 17644 |
# File 'lib/v20180525/models.rb', line 17642 def For @For end |
#Labels ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
17642 17643 17644 |
# File 'lib/v20180525/models.rb', line 17642 def Labels @Labels end |
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
17642 17643 17644 |
# File 'lib/v20180525/models.rb', line 17642 def Name @Name end |
#Rule ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
17642 17643 17644 |
# File 'lib/v20180525/models.rb', line 17642 def Rule @Rule end |
#RuleState ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
17642 17643 17644 |
# File 'lib/v20180525/models.rb', line 17642 def RuleState @RuleState end |
#Template ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
17642 17643 17644 |
# File 'lib/v20180525/models.rb', line 17642 def Template @Template end |
Instance Method Details
#deserialize(params) ⇒ Object
17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 |
# File 'lib/v20180525/models.rb', line 17655 def deserialize(params) @Name = params['Name'] @Rule = params['Rule'] unless params['Labels'].nil? @Labels = [] params['Labels'].each do |i| label_tmp = Label.new label_tmp.deserialize(i) @Labels << label_tmp end end @Template = params['Template'] @For = params['For'] @Describe = params['Describe'] unless params['Annotations'].nil? @Annotations = [] params['Annotations'].each do |i| label_tmp = Label.new label_tmp.deserialize(i) @Annotations << label_tmp end end @RuleState = params['RuleState'] end |