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.
6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 |
# File 'lib/v20210527/models.rb', line 6002 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互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def ApplyType @ApplyType end |
#Enable ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def Enable @Enable end |
#InstanceIds ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def InstanceIds @InstanceIds end |
#NewProfileLevel ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def NewProfileLevel @NewProfileLevel end |
#NewProfileName ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def NewProfileName @NewProfileName end |
#ProfileName ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def ProfileName @ProfileName end |
#ProfileType ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def ProfileType @ProfileType end |
#QuickRule ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def QuickRule @QuickRule end |
#Remark ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def Remark @Remark end |
#Rules ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def Rules @Rules end |
#RuleType ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def RuleType @RuleType end |
#TemplateInfo ⇒ Object
Instance-关联实例列表的实例 warning-告警, information-通知,与Rules互斥
6000 6001 6002 |
# File 'lib/v20210527/models.rb', line 6000 def TemplateInfo @TemplateInfo end |
Instance Method Details
#deserialize(params) ⇒ Object
6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 |
# File 'lib/v20210527/models.rb', line 6017 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 |