public class CreateAlarmPolicyRequest extends AbstractModel
Constructor and Description |
---|
CreateAlarmPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
AlarmPolicyCondition |
getCondition()
Get Metric trigger condition
|
Long |
getEnable()
Get Whether to enable.
|
AlarmPolicyEventCondition |
getEventCondition()
Get Event trigger condition
|
String |
getModule()
Get Value fixed at "monitor"
|
String |
getMonitorType()
Get Monitor type.
|
String |
getNamespace()
Get Alarm policy type such as cvm_device, which is obtained through the `DescribeAllNamespaces` API
|
String[] |
getNoticeIds()
Get List of notification rule IDs, which is obtained through the `DescribeAlarmNotices` API
|
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
|
AlarmPolicyTriggerTask[] |
getTriggerTasks()
Get Triggered task list
|
void |
setCondition(AlarmPolicyCondition Condition)
Set Metric trigger condition
|
void |
setEnable(Long Enable)
Set Whether to enable.
|
void |
setEventCondition(AlarmPolicyEventCondition EventCondition)
Set Event trigger condition
|
void |
setModule(String Module)
Set Value fixed at "monitor"
|
void |
setMonitorType(String MonitorType)
Set Monitor type.
|
void |
setNamespace(String Namespace)
Set Alarm policy type such as cvm_device, which is obtained through the `DescribeAllNamespaces` API
|
void |
setNoticeIds(String[] NoticeIds)
Set List of notification rule IDs, which is obtained through the `DescribeAlarmNotices` API
|
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 |
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, toJsonString
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
- Alarm policy type such as cvm_device, which is obtained through the `DescribeAllNamespaces` APIpublic 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. Valid values: -1 (no project), 0 (default project). Default value: -1. This parameter can be left emptypublic AlarmPolicyCondition getCondition()
public void setCondition(AlarmPolicyCondition Condition)
Condition
- Metric trigger conditionpublic AlarmPolicyEventCondition getEventCondition()
public void setEventCondition(AlarmPolicyEventCondition EventCondition)
EventCondition
- Event trigger conditionpublic String[] getNoticeIds()
public void setNoticeIds(String[] NoticeIds)
NoticeIds
- List of notification rule IDs, which is obtained through the `DescribeAlarmNotices` APIpublic AlarmPolicyTriggerTask[] getTriggerTasks()
public void setTriggerTasks(AlarmPolicyTriggerTask[] TriggerTasks)
TriggerTasks
- Triggered task listCopyright © 2021. All rights reserved.