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 ID of trigger condition template.
|
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 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
|
AlarmPolicyTriggerTask[] |
getTriggerTasks()
Get Triggered task list
|
void |
setCondition(AlarmPolicyCondition Condition)
Set Metric trigger condition.
|
void |
setConditionTemplateId(Long ConditionTemplateId)
Set ID of trigger condition template.
|
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 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 |
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 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). An example value is `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
- ID of trigger condition template. This parameter can be left empty.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 listCopyright © 2021. All rights reserved.