public class CreateAlarmPolicyRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateAlarmPolicyRequest() | 
| CreateAlarmPolicyRequest(CreateAlarmPolicyRequest 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAdditionalAlarmContent()Get 附加告警内容 | 
| AlarmPolicyCondition | getCondition()Get 指标触发条件,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。 | 
| Long | getConditionTemplateId()Get 触发条件模板 Id,该参数与 Condition 参数二选一。如果策略绑定触发条件模板,则传该参数;否则不传该参数,而是传 Condition 参数。触发条件模板 Id 可以从 [DescribeConditionsTemplateList](https://cloud.tencent.com/document/api/248/70250) 接口获取。 | 
| String | getEbSubject()Get 事件配置的告警 | 
| Long | getEnable()Get 是否启用 0=停用 1=启用,可不传 默认为1 | 
| AlarmPolicyEventCondition | getEventCondition()Get 事件触发条件,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询。 | 
| AlarmPolicyFilter | getFilter()Get 全局过滤条件 | 
| String[] | getGroupBy()Get 聚合维度列表,指定按哪些维度 key 来做 group by | 
| AlarmHierarchicalNotice[] | getHierarchicalNotices()Get 告警分级通知规则配置 | 
| LogAlarmReq | getLogAlarmReqInfo()Get 日志告警信息 | 
| Long | getMigrateFlag()Get 迁移策略专用字段,0-走鉴权逻辑,1-跳过鉴权逻辑 | 
| String | getModule()Get 固定值,为"monitor" | 
| String | getMonitorType()Get 监控类型 MT_QCE=云产品监控 | 
| String | getNamespace()Get 告警策略类型,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device | 
| NoticeContentTmplBindInfo[] | getNoticeContentTmplBindInfos()Get 通知模板绑定信息 | 
| String[] | getNoticeIds()Get 通知规则 Id 列表,由 [DescribeAlarmNotices](https://cloud.tencent.com/document/product/248/51280) 获得 | 
| String | getPolicyName()Get 策略名称,不超过60字符 | 
| Long | getProjectId()Get 项目 Id,对于区分项目的产品必须传入非 -1 的值。 -1=无项目 0=默认项目,如不传 默认为 -1。支持的项目 Id 可以在控制台 [账号中心-项目管理](https://console.cloud.tencent.com/project) 中查看。 | 
| String | getRemark()Get 备注,不超过100字符,仅支持中英文、数字、下划线、- | 
| Tag[] | getTags()Get 模板绑定的标签 | 
| AlarmPolicyTriggerTask[] | getTriggerTasks()Get 触发任务列表 | 
| void | setAdditionalAlarmContent(String AdditionalAlarmContent)Set 附加告警内容 | 
| void | setCondition(AlarmPolicyCondition Condition)Set 指标触发条件,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。 | 
| void | setConditionTemplateId(Long ConditionTemplateId)Set 触发条件模板 Id,该参数与 Condition 参数二选一。如果策略绑定触发条件模板,则传该参数;否则不传该参数,而是传 Condition 参数。触发条件模板 Id 可以从 [DescribeConditionsTemplateList](https://cloud.tencent.com/document/api/248/70250) 接口获取。 | 
| void | setEbSubject(String EbSubject)Set 事件配置的告警 | 
| void | setEnable(Long Enable)Set 是否启用 0=停用 1=启用,可不传 默认为1 | 
| void | setEventCondition(AlarmPolicyEventCondition EventCondition)Set 事件触发条件,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询。 | 
| void | setFilter(AlarmPolicyFilter Filter)Set 全局过滤条件 | 
| void | setGroupBy(String[] GroupBy)Set 聚合维度列表,指定按哪些维度 key 来做 group by | 
| void | setHierarchicalNotices(AlarmHierarchicalNotice[] HierarchicalNotices)Set 告警分级通知规则配置 | 
| void | setLogAlarmReqInfo(LogAlarmReq LogAlarmReqInfo)Set 日志告警信息 | 
| void | setMigrateFlag(Long MigrateFlag)Set 迁移策略专用字段,0-走鉴权逻辑,1-跳过鉴权逻辑 | 
| void | setModule(String Module)Set 固定值,为"monitor" | 
| void | setMonitorType(String MonitorType)Set 监控类型 MT_QCE=云产品监控 | 
| void | setNamespace(String Namespace)Set 告警策略类型,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device | 
| void | setNoticeContentTmplBindInfos(NoticeContentTmplBindInfo[] NoticeContentTmplBindInfos)Set 通知模板绑定信息 | 
| void | setNoticeIds(String[] NoticeIds)Set 通知规则 Id 列表,由 [DescribeAlarmNotices](https://cloud.tencent.com/document/product/248/51280) 获得 | 
| void | setPolicyName(String PolicyName)Set 策略名称,不超过60字符 | 
| void | setProjectId(Long ProjectId)Set 项目 Id,对于区分项目的产品必须传入非 -1 的值。 -1=无项目 0=默认项目,如不传 默认为 -1。支持的项目 Id 可以在控制台 [账号中心-项目管理](https://console.cloud.tencent.com/project) 中查看。 | 
| void | setRemark(String Remark)Set 备注,不超过100字符,仅支持中英文、数字、下划线、- | 
| void | setTags(Tag[] Tags)Set 模板绑定的标签 | 
| void | setTriggerTasks(AlarmPolicyTriggerTask[] TriggerTasks)Set 触发任务列表 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateAlarmPolicyRequest()
public CreateAlarmPolicyRequest(CreateAlarmPolicyRequest source)
public String getModule()
public void setModule(String Module)
Module - 固定值,为"monitor"public String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName - 策略名称,不超过60字符public String getMonitorType()
public void setMonitorType(String MonitorType)
MonitorType - 监控类型 MT_QCE=云产品监控public String getNamespace()
public void setNamespace(String Namespace)
Namespace - 告警策略类型,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_devicepublic String getRemark()
public void setRemark(String Remark)
Remark - 备注,不超过100字符,仅支持中英文、数字、下划线、-public Long getEnable()
public void setEnable(Long Enable)
Enable - 是否启用 0=停用 1=启用,可不传 默认为1public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId - 项目 Id,对于区分项目的产品必须传入非 -1 的值。 -1=无项目 0=默认项目,如不传 默认为 -1。支持的项目 Id 可以在控制台 [账号中心-项目管理](https://console.cloud.tencent.com/project) 中查看。public Long getConditionTemplateId()
public void setConditionTemplateId(Long ConditionTemplateId)
ConditionTemplateId - 触发条件模板 Id,该参数与 Condition 参数二选一。如果策略绑定触发条件模板,则传该参数;否则不传该参数,而是传 Condition 参数。触发条件模板 Id 可以从 [DescribeConditionsTemplateList](https://cloud.tencent.com/document/api/248/70250) 接口获取。public AlarmPolicyCondition getCondition()
public void setCondition(AlarmPolicyCondition Condition)
Condition - 指标触发条件,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。public AlarmPolicyEventCondition getEventCondition()
public void setEventCondition(AlarmPolicyEventCondition EventCondition)
EventCondition - 事件触发条件,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询。public String[] getNoticeIds()
public void setNoticeIds(String[] NoticeIds)
NoticeIds - 通知规则 Id 列表,由 [DescribeAlarmNotices](https://cloud.tencent.com/document/product/248/51280) 获得public AlarmPolicyTriggerTask[] getTriggerTasks()
public void setTriggerTasks(AlarmPolicyTriggerTask[] TriggerTasks)
TriggerTasks - 触发任务列表public AlarmPolicyFilter getFilter()
public void setFilter(AlarmPolicyFilter Filter)
Filter - 全局过滤条件public String[] getGroupBy()
public void setGroupBy(String[] GroupBy)
GroupBy - 聚合维度列表,指定按哪些维度 key 来做 group bypublic Tag[] getTags()
public void setTags(Tag[] Tags)
Tags - 模板绑定的标签public LogAlarmReq getLogAlarmReqInfo()
public void setLogAlarmReqInfo(LogAlarmReq LogAlarmReqInfo)
LogAlarmReqInfo - 日志告警信息public AlarmHierarchicalNotice[] getHierarchicalNotices()
public void setHierarchicalNotices(AlarmHierarchicalNotice[] HierarchicalNotices)
HierarchicalNotices - 告警分级通知规则配置public Long getMigrateFlag()
public void setMigrateFlag(Long MigrateFlag)
MigrateFlag - 迁移策略专用字段,0-走鉴权逻辑,1-跳过鉴权逻辑public String getEbSubject()
public void setEbSubject(String EbSubject)
EbSubject - 事件配置的告警public String getAdditionalAlarmContent()
public void setAdditionalAlarmContent(String AdditionalAlarmContent)
AdditionalAlarmContent - 附加告警内容public NoticeContentTmplBindInfo[] getNoticeContentTmplBindInfos()
public void setNoticeContentTmplBindInfos(NoticeContentTmplBindInfo[] NoticeContentTmplBindInfos)
NoticeContentTmplBindInfos - 通知模板绑定信息Copyright © 2025. All rights reserved.