public class CreateAlarmPolicyRequest extends AbstractModel
| 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 | 
|---|---|
| AlarmPolicyCondition | getCondition()Get Metric trigger condition. | 
| Long | getConditionTemplateId()Get Trigger condition template ID. | 
| Long | getEnable()Get Whether to enable. | 
| AlarmPolicyEventCondition | getEventCondition()Get Event trigger condition. | 
| AlarmPolicyFilter | getFilter()Get Global filter. | 
| String[] | getGroupBy()Get Aggregation dimension list, which is used to specify which dimension keys data is grouped by. | 
| AlarmHierarchicalNotice[] | getHierarchicalNotices()Get Notification rules for different alarm levels | 
| LogAlarmReq | getLogAlarmReqInfo()Get Log alarm information | 
| Long | getMigrateFlag()Get A dedicated field for migration policies. | 
| String | getModule()Get Value fixed at "monitor" | 
| String | getMonitorType()Get Monitor type. | 
| String | getNamespace()Get Type of alarm policy, which can be obtained via [DescribeAllNamespaces](https://intl.cloud.tencent.com/document/product/248/48683?from_cn_redirect=1). | 
| String[] | getNoticeIds()Get List of notification rule IDs, which can be obtained via [DescribeAlarmNotices](https://intl.cloud.tencent.com/document/product/248/51280?from_cn_redirect=1) | 
| String | getPolicyName()Get Policy name, which can contain up to 20 characters | 
| Long | getProjectId()Get Project ID. | 
| String | getRemark()Get Remarks with up to 100 letters, digits, underscores, and hyphens | 
| Tag[] | getTags()Get Tags bound to a template | 
| AlarmPolicyTriggerTask[] | getTriggerTasks()Get Triggered task list | 
| void | setCondition(AlarmPolicyCondition Condition)Set Metric trigger condition. | 
| void | setConditionTemplateId(Long ConditionTemplateId)Set Trigger condition template ID. | 
| void | setEnable(Long Enable)Set Whether to enable. | 
| void | setEventCondition(AlarmPolicyEventCondition EventCondition)Set Event trigger condition. | 
| void | setFilter(AlarmPolicyFilter Filter)Set Global filter. | 
| void | setGroupBy(String[] GroupBy)Set Aggregation dimension list, which is used to specify which dimension keys data is grouped by. | 
| void | setHierarchicalNotices(AlarmHierarchicalNotice[] HierarchicalNotices)Set Notification rules for different alarm levels | 
| void | setLogAlarmReqInfo(LogAlarmReq LogAlarmReqInfo)Set Log alarm information | 
| void | setMigrateFlag(Long MigrateFlag)Set A dedicated field for migration policies. | 
| void | setModule(String Module)Set Value fixed at "monitor" | 
| void | setMonitorType(String MonitorType)Set Monitor type. | 
| void | setNamespace(String Namespace)Set Type of alarm policy, which can be obtained via [DescribeAllNamespaces](https://intl.cloud.tencent.com/document/product/248/48683?from_cn_redirect=1). | 
| void | setNoticeIds(String[] NoticeIds)Set List of notification rule IDs, which can be obtained via [DescribeAlarmNotices](https://intl.cloud.tencent.com/document/product/248/51280?from_cn_redirect=1) | 
| void | setPolicyName(String PolicyName)Set Policy name, which can contain up to 20 characters | 
| void | setProjectId(Long ProjectId)Set Project ID. | 
| void | setRemark(String Remark)Set Remarks with up to 100 letters, digits, underscores, and hyphens | 
| void | setTags(Tag[] Tags)Set Tags bound to a template | 
| void | setTriggerTasks(AlarmPolicyTriggerTask[] TriggerTasks)Set Triggered task list | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic CreateAlarmPolicyRequest()
public CreateAlarmPolicyRequest(CreateAlarmPolicyRequest source)
public String getModule()
public void setModule(String Module)
Module - Value fixed at "monitor"public String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName - Policy name, which can contain up to 20 characterspublic String getMonitorType()
public void setMonitorType(String MonitorType)
MonitorType - Monitor type. Valid values: MT_QCE (Tencent Cloud service monitoring)public String getNamespace()
public void setNamespace(String Namespace)
Namespace - Type of alarm policy, which can be obtained via [DescribeAllNamespaces](https://intl.cloud.tencent.com/document/product/248/48683?from_cn_redirect=1). For the monitoring of Tencent Cloud services, the value of this parameter is `QceNamespacesNew.N.Id` of the output parameter of `DescribeAllNamespaces`, for example, `cvm_device`.public String getRemark()
public void setRemark(String Remark)
Remark - Remarks with up to 100 letters, digits, underscores, and hyphenspublic Long getEnable()
public void setEnable(Long Enable)
Enable - Whether to enable. Valid values: 0 (no), 1 (yes). Default value: 1. This parameter can be left emptypublic Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId - Project ID. For products with different projects, a value other than `-1` must be passed in. `-1`: no project; `0`: default project. If no value is passed in, `-1` will be used. The supported project IDs can be viewed on the [**Account Center** > **Project Management**](https://console.cloud.tencent.com/project) page of the console.public Long getConditionTemplateId()
public void setConditionTemplateId(Long ConditionTemplateId)
ConditionTemplateId - Trigger condition template ID. Pass in this parameter if the policy is associated with the trigger condition template; otherwise, pass in the `Condition` parameter. The trigger condition template ID can be obtained via [`DescribeConditionsTemplateList`](https://intl.cloud.tencent.com/document/api/248/70250?from_cn_redirect=1).public AlarmPolicyCondition getCondition()
public void setCondition(AlarmPolicyCondition Condition)
Condition - Metric trigger condition. The supported metrics can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).public AlarmPolicyEventCondition getEventCondition()
public void setEventCondition(AlarmPolicyEventCondition EventCondition)
EventCondition - Event trigger condition. The supported events can be queried via [DescribeAlarmEvents](https://intl.cloud.tencent.com/document/product/248/51284?from_cn_redirect=1).public String[] getNoticeIds()
public void setNoticeIds(String[] NoticeIds)
NoticeIds - List of notification rule IDs, which can be obtained via [DescribeAlarmNotices](https://intl.cloud.tencent.com/document/product/248/51280?from_cn_redirect=1)public AlarmPolicyTriggerTask[] getTriggerTasks()
public void setTriggerTasks(AlarmPolicyTriggerTask[] TriggerTasks)
TriggerTasks - Triggered task listpublic AlarmPolicyFilter getFilter()
public void setFilter(AlarmPolicyFilter Filter)
Filter - Global filter.public String[] getGroupBy()
public void setGroupBy(String[] GroupBy)
GroupBy - Aggregation dimension list, which is used to specify which dimension keys data is grouped by.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags - Tags bound to a templatepublic LogAlarmReq getLogAlarmReqInfo()
public void setLogAlarmReqInfo(LogAlarmReq LogAlarmReqInfo)
LogAlarmReqInfo - Log alarm informationpublic AlarmHierarchicalNotice[] getHierarchicalNotices()
public void setHierarchicalNotices(AlarmHierarchicalNotice[] HierarchicalNotices)
HierarchicalNotices - Notification rules for different alarm levelspublic Long getMigrateFlag()
public void setMigrateFlag(Long MigrateFlag)
MigrateFlag - A dedicated field for migration policies. 0: Implement authentication logic; 1: Skip authentication logic.Copyright © 2022. All rights reserved.