Class: TencentCloud::Tke::V20180525::PrometheusAlertRuleDetail
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::PrometheusAlertRuleDetail
- Defined in:
- lib/v20180525/models.rb
Overview
托管prometheus告警配置实例
Instance Attribute Summary collapse
-
#Id ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Interval ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Notification ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Rules ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#UpdatedAt ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, rules = nil, updatedat = nil, notification = nil, id = nil, templateid = nil, interval = nil) ⇒ PrometheusAlertRuleDetail
constructor
A new instance of PrometheusAlertRuleDetail.
Constructor Details
#initialize(name = nil, rules = nil, updatedat = nil, notification = nil, id = nil, templateid = nil, interval = nil) ⇒ PrometheusAlertRuleDetail
Returns a new instance of PrometheusAlertRuleDetail.
15979 15980 15981 15982 15983 15984 15985 15986 15987 |
# File 'lib/v20180525/models.rb', line 15979 def initialize(name=nil, rules=nil, updatedat=nil, notification=nil, id=nil, templateid=nil, interval=nil) @Name = name @Rules = rules @UpdatedAt = updatedat @Notification = notification @Id = id @TemplateId = templateid @Interval = interval end |
Instance Attribute Details
#Id ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
15977 15978 15979 |
# File 'lib/v20180525/models.rb', line 15977 def Id @Id end |
#Interval ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
15977 15978 15979 |
# File 'lib/v20180525/models.rb', line 15977 def Interval @Interval end |
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
15977 15978 15979 |
# File 'lib/v20180525/models.rb', line 15977 def Name @Name end |
#Notification ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
15977 15978 15979 |
# File 'lib/v20180525/models.rb', line 15977 def Notification @Notification end |
#Rules ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
15977 15978 15979 |
# File 'lib/v20180525/models.rb', line 15977 def Rules @Rules end |
#TemplateId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
15977 15978 15979 |
# File 'lib/v20180525/models.rb', line 15977 def TemplateId @TemplateId end |
#UpdatedAt ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
15977 15978 15979 |
# File 'lib/v20180525/models.rb', line 15977 def UpdatedAt @UpdatedAt end |
Instance Method Details
#deserialize(params) ⇒ Object
15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 |
# File 'lib/v20180525/models.rb', line 15989 def deserialize(params) @Name = params['Name'] unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| prometheusalertrule_tmp = PrometheusAlertRule.new prometheusalertrule_tmp.deserialize(i) @Rules << prometheusalertrule_tmp end end @UpdatedAt = params['UpdatedAt'] unless params['Notification'].nil? @Notification = PrometheusNotification.new @Notification.deserialize(params['Notification']) end @Id = params['Id'] @TemplateId = params['TemplateId'] @Interval = params['Interval'] end |