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.
| 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 | # File 'lib/v20210527/models.rb', line 5865 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互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def ApplyType @ApplyType end | 
#Enable ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def Enable @Enable end | 
#InstanceIds ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def InstanceIds @InstanceIds end | 
#NewProfileLevel ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def NewProfileLevel @NewProfileLevel end | 
#NewProfileName ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def NewProfileName @NewProfileName end | 
#ProfileName ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def ProfileName @ProfileName end | 
#ProfileType ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def ProfileType @ProfileType end | 
#QuickRule ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def QuickRule @QuickRule end | 
#Remark ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def Remark @Remark end | 
#Rules ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def Rules @Rules end | 
#RuleType ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def RuleType @RuleType end | 
#TemplateInfo ⇒ Object
Instance-关联实例列表的实例warning-告警, information-通知,与Rules互斥
| 5863 5864 5865 | # File 'lib/v20210527/models.rb', line 5863 def TemplateInfo @TemplateInfo end | 
Instance Method Details
#deserialize(params) ⇒ Object
| 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 | # File 'lib/v20210527/models.rb', line 5880 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 |