Class: TencentCloud::Dbbrain::V20210527::ModifyAlarmPolicyRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbbrain::V20210527::ModifyAlarmPolicyRequest
- Defined in:
- lib/v20210527/models.rb
Overview
ModifyAlarmPolicy请求参数结构体
Instance Attribute Summary collapse
-
#ApplyType ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#Enable ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#InstanceIds ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#NewProfileLevel ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#NewProfileName ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#ProfileName ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#ProfileType ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#QuickRule ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#Remark ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#Rules ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#RuleType ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
-
#TemplateInfo ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(applytype = nil, enable = nil, instanceids = nil, newprofilelevel = nil, newprofilename = nil, profilename = nil, profiletype = nil, remark = nil, ruletype = nil, templateinfo = nil, quickrule = nil, rules = nil) ⇒ ModifyAlarmPolicyRequest
constructor
A new instance of ModifyAlarmPolicyRequest.
Constructor Details
#initialize(applytype = nil, enable = nil, instanceids = nil, newprofilelevel = nil, newprofilename = nil, profilename = nil, profiletype = nil, remark = nil, ruletype = nil, templateinfo = nil, quickrule = nil, rules = nil) ⇒ ModifyAlarmPolicyRequest
Returns a new instance of ModifyAlarmPolicyRequest.
5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 |
# File 'lib/v20210527/models.rb', line 5938 def initialize(applytype=nil, enable=nil, instanceids=nil, newprofilelevel=nil, newprofilename=nil, profilename=nil, profiletype=nil, remark=nil, ruletype=nil, templateinfo=nil, quickrule=nil, rules=nil) @ApplyType = applytype @Enable = enable @InstanceIds = instanceids @NewProfileLevel = newprofilelevel @NewProfileName = newprofilename @ProfileName = profilename @ProfileType = profiletype @Remark = remark @RuleType = ruletype @TemplateInfo = templateinfo @QuickRule = quickrule @Rules = rules end |
Instance Attribute Details
#ApplyType ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def ApplyType @ApplyType end |
#Enable ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def Enable @Enable end |
#InstanceIds ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def InstanceIds @InstanceIds end |
#NewProfileLevel ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def NewProfileLevel @NewProfileLevel end |
#NewProfileName ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def NewProfileName @NewProfileName end |
#ProfileName ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def ProfileName @ProfileName end |
#ProfileType ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def ProfileType @ProfileType end |
#QuickRule ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def QuickRule @QuickRule end |
#Remark ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def Remark @Remark end |
#Rules ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def Rules @Rules end |
#RuleType ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def RuleType @RuleType end |
#TemplateInfo ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
5936 5937 5938 |
# File 'lib/v20210527/models.rb', line 5936 def TemplateInfo @TemplateInfo end |
Instance Method Details
#deserialize(params) ⇒ Object
5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 |
# File 'lib/v20210527/models.rb', line 5953 def deserialize(params) @ApplyType = params['ApplyType'] @Enable = params['Enable'] unless params['InstanceIds'].nil? @InstanceIds = [] params['InstanceIds'].each do |i| instanceid_tmp = InstanceID.new instanceid_tmp.deserialize(i) @InstanceIds << instanceid_tmp end end @NewProfileLevel = params['NewProfileLevel'] @NewProfileName = params['NewProfileName'] @ProfileName = params['ProfileName'] @ProfileType = params['ProfileType'] @Remark = params['Remark'] @RuleType = params['RuleType'] unless params['TemplateInfo'].nil? @TemplateInfo = [] params['TemplateInfo'].each do |i| templateinfo_tmp = TemplateInfo.new templateinfo_tmp.deserialize(i) @TemplateInfo << templateinfo_tmp end end @QuickRule = params['QuickRule'] unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| alarmsrules_tmp = AlarmsRules.new alarmsrules_tmp.deserialize(i) @Rules << alarmsrules_tmp end end end |