Class ModifyAlarmPolicyRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.dbbrain.v20210527.models.ModifyAlarmPolicyRequest
-
public class ModifyAlarmPolicyRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ModifyAlarmPolicyRequest()ModifyAlarmPolicyRequest(ModifyAlarmPolicyRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApplyType()Get 类型LonggetEnable()Get 开启策略InstanceID[]getInstanceIds()Get 列表StringgetNewProfileLevel()Get User-动态关联该用户所有实例 Instance-关联实例列表的实例StringgetNewProfileName()Get 新策略名StringgetProfileName()Get 旧策略名StringgetProfileType()Get 策略类型StringgetQuickRule()Get 快速规则 支持包括fatal-致命, critical-严重, warning-告警, information-通知StringgetRemark()Get 备注AlarmsRules[]getRules()Get 自定义规则LonggetRuleType()Get 规则类型 0-快速,1-自定义 若值为0,则QuickRule不能为空,若值为1,则Rules 不能为空TemplateInfo[]getTemplateInfo()Get 接受模板voidsetApplyType(String ApplyType)Set 类型voidsetEnable(Long Enable)Set 开启策略voidsetInstanceIds(InstanceID[] InstanceIds)Set 列表voidsetNewProfileLevel(String NewProfileLevel)Set User-动态关联该用户所有实例 Instance-关联实例列表的实例voidsetNewProfileName(String NewProfileName)Set 新策略名voidsetProfileName(String ProfileName)Set 旧策略名voidsetProfileType(String ProfileType)Set 策略类型voidsetQuickRule(String QuickRule)Set 快速规则 支持包括fatal-致命, critical-严重, warning-告警, information-通知voidsetRemark(String Remark)Set 备注voidsetRules(AlarmsRules[] Rules)Set 自定义规则voidsetRuleType(Long RuleType)Set 规则类型 0-快速,1-自定义 若值为0,则QuickRule不能为空,若值为1,则Rules 不能为空voidsetTemplateInfo(TemplateInfo[] TemplateInfo)Set 接受模板voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ModifyAlarmPolicyRequest
public ModifyAlarmPolicyRequest()
-
ModifyAlarmPolicyRequest
public ModifyAlarmPolicyRequest(ModifyAlarmPolicyRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getApplyType
public String getApplyType()
Get 类型- Returns:
- ApplyType 类型
-
setApplyType
public void setApplyType(String ApplyType)
Set 类型- Parameters:
ApplyType- 类型
-
getEnable
public Long getEnable()
Get 开启策略- Returns:
- Enable 开启策略
-
setEnable
public void setEnable(Long Enable)
Set 开启策略- Parameters:
Enable- 开启策略
-
getInstanceIds
public InstanceID[] getInstanceIds()
Get 列表- Returns:
- InstanceIds 列表
-
setInstanceIds
public void setInstanceIds(InstanceID[] InstanceIds)
Set 列表- Parameters:
InstanceIds- 列表
-
getNewProfileLevel
public String getNewProfileLevel()
Get User-动态关联该用户所有实例 Instance-关联实例列表的实例- Returns:
- NewProfileLevel User-动态关联该用户所有实例 Instance-关联实例列表的实例
-
setNewProfileLevel
public void setNewProfileLevel(String NewProfileLevel)
Set User-动态关联该用户所有实例 Instance-关联实例列表的实例- Parameters:
NewProfileLevel- User-动态关联该用户所有实例 Instance-关联实例列表的实例
-
getNewProfileName
public String getNewProfileName()
Get 新策略名- Returns:
- NewProfileName 新策略名
-
setNewProfileName
public void setNewProfileName(String NewProfileName)
Set 新策略名- Parameters:
NewProfileName- 新策略名
-
getProfileName
public String getProfileName()
Get 旧策略名- Returns:
- ProfileName 旧策略名
-
setProfileName
public void setProfileName(String ProfileName)
Set 旧策略名- Parameters:
ProfileName- 旧策略名
-
getProfileType
public String getProfileType()
Get 策略类型- Returns:
- ProfileType 策略类型
-
setProfileType
public void setProfileType(String ProfileType)
Set 策略类型- Parameters:
ProfileType- 策略类型
-
getRemark
public String getRemark()
Get 备注- Returns:
- Remark 备注
-
setRemark
public void setRemark(String Remark)
Set 备注- Parameters:
Remark- 备注
-
getRuleType
public Long getRuleType()
Get 规则类型 0-快速,1-自定义 若值为0,则QuickRule不能为空,若值为1,则Rules 不能为空- Returns:
- RuleType 规则类型 0-快速,1-自定义 若值为0,则QuickRule不能为空,若值为1,则Rules 不能为空
-
setRuleType
public void setRuleType(Long RuleType)
Set 规则类型 0-快速,1-自定义 若值为0,则QuickRule不能为空,若值为1,则Rules 不能为空- Parameters:
RuleType- 规则类型 0-快速,1-自定义 若值为0,则QuickRule不能为空,若值为1,则Rules 不能为空
-
getTemplateInfo
public TemplateInfo[] getTemplateInfo()
Get 接受模板- Returns:
- TemplateInfo 接受模板
-
setTemplateInfo
public void setTemplateInfo(TemplateInfo[] TemplateInfo)
Set 接受模板- Parameters:
TemplateInfo- 接受模板
-
getQuickRule
public String getQuickRule()
Get 快速规则 支持包括fatal-致命, critical-严重, warning-告警, information-通知- Returns:
- QuickRule 快速规则 支持包括fatal-致命, critical-严重, warning-告警, information-通知
-
setQuickRule
public void setQuickRule(String QuickRule)
Set 快速规则 支持包括fatal-致命, critical-严重, warning-告警, information-通知- Parameters:
QuickRule- 快速规则 支持包括fatal-致命, critical-严重, warning-告警, information-通知
-
getRules
public AlarmsRules[] getRules()
Get 自定义规则- Returns:
- Rules 自定义规则
-
setRules
public void setRules(AlarmsRules[] Rules)
Set 自定义规则- Parameters:
Rules- 自定义规则
-
-