public class AlarmPolicy extends AbstractModel
Constructor and Description |
---|
AlarmPolicy() |
AlarmPolicy(AlarmPolicy 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 |
---|---|
Long |
getAdvancedMetricNumber()
Get The number of advanced metrics.
|
Long |
getCanSetDefault()
Get Whether the default policy can be set.
|
AlarmPolicyCondition |
getCondition()
Get Metric trigger condition
Note: this field may return null, indicating that no valid values can be obtained.
|
ConditionsTemp |
getConditionsTemp()
Get Template policy group
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getConditionTemplateId()
Get Trigger condition template ID
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getEnable()
Get Status.
|
AlarmPolicyEventCondition |
getEventCondition()
Get Event trigger condition
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getFilterDimensionsParam()
Get Information on the filter dimension associated with a policy.
|
Long |
getInsertTime()
Get Creation time
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getInstanceGroupId()
Get Instance group ID
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getInstanceGroupName()
Get Instance group name
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getInstanceSum()
Get Total number of instances in instance group
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getIsBindAll()
Get Whether the policy is associated with all objects
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getIsDefault()
Get Whether it is the default policy.
|
Long |
getIsOneClick()
Get Whether it is a quick alarm policy.
|
String |
getLastEditUin()
Get `Uin` of the last modifying user
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getMonitorType()
Get Monitor type.
|
String |
getNamespace()
Get Alarm policy type
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getNamespaceShowName()
Get Namespace display name
Note: this field may return null, indicating that no valid values can be obtained.
|
String[] |
getNoticeIds()
Get Notification rule ID list
Note: this field may return null, indicating that no valid values can be obtained.
|
AlarmNotice[] |
getNotices()
Get Notification rule list
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getOneClickStatus()
Get Whether the quick alarm policy is enabled.
|
String |
getOriginId()
Get Policy ID for instance/instance group binding and unbinding APIs (BindingPolicyObject, UnBindingAllPolicyObject, UnBindingPolicyObject)
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getPolicyId()
Get Alarm policy ID
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getPolicyName()
Get Alarm policy name
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getProjectId()
Get Project ID.
|
String |
getProjectName()
Get Project name
Note: this field may return null, indicating that no valid values can be obtained.
|
String[] |
getRegion()
Get Region
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getRemark()
Get Remarks
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getRuleType()
Get Trigger condition type.
|
TagInstance[] |
getTagInstances()
Get Tag
Note: This field may return `null`, indicating that no valid values can be obtained.
|
Tag[] |
getTags()
Get Policy tag
Note: This field may return null, indicating that no valid values can be obtained.
|
AlarmPolicyTriggerTask[] |
getTriggerTasks()
Get Triggered task list
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getUpdateTime()
Get Update time
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getUseSum()
Get Number of instances bound to policy group
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setAdvancedMetricNumber(Long AdvancedMetricNumber)
Set The number of advanced metrics.
|
void |
setCanSetDefault(Long CanSetDefault)
Set Whether the default policy can be set.
|
void |
setCondition(AlarmPolicyCondition Condition)
Set Metric trigger condition
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setConditionsTemp(ConditionsTemp ConditionsTemp)
Set Template policy group
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setConditionTemplateId(String ConditionTemplateId)
Set Trigger condition template ID
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setEnable(Long Enable)
Set Status.
|
void |
setEventCondition(AlarmPolicyEventCondition EventCondition)
Set Event trigger condition
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setFilterDimensionsParam(String FilterDimensionsParam)
Set Information on the filter dimension associated with a policy.
|
void |
setInsertTime(Long InsertTime)
Set Creation time
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setInstanceGroupId(Long InstanceGroupId)
Set Instance group ID
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setInstanceGroupName(String InstanceGroupName)
Set Instance group name
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setInstanceSum(Long InstanceSum)
Set Total number of instances in instance group
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setIsBindAll(Long IsBindAll)
Set Whether the policy is associated with all objects
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setIsDefault(Long IsDefault)
Set Whether it is the default policy.
|
void |
setIsOneClick(Long IsOneClick)
Set Whether it is a quick alarm policy.
|
void |
setLastEditUin(String LastEditUin)
Set `Uin` of the last modifying user
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setMonitorType(String MonitorType)
Set Monitor type.
|
void |
setNamespace(String Namespace)
Set Alarm policy type
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setNamespaceShowName(String NamespaceShowName)
Set Namespace display name
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setNoticeIds(String[] NoticeIds)
Set Notification rule ID list
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setNotices(AlarmNotice[] Notices)
Set Notification rule list
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setOneClickStatus(Long OneClickStatus)
Set Whether the quick alarm policy is enabled.
|
void |
setOriginId(String OriginId)
Set Policy ID for instance/instance group binding and unbinding APIs (BindingPolicyObject, UnBindingAllPolicyObject, UnBindingPolicyObject)
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setPolicyId(String PolicyId)
Set Alarm policy ID
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setPolicyName(String PolicyName)
Set Alarm policy name
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setProjectName(String ProjectName)
Set Project name
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setRegion(String[] Region)
Set Region
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setRemark(String Remark)
Set Remarks
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setRuleType(String RuleType)
Set Trigger condition type.
|
void |
setTagInstances(TagInstance[] TagInstances)
Set Tag
Note: This field may return `null`, indicating that no valid values can be obtained.
|
void |
setTags(Tag[] Tags)
Set Policy tag
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setTriggerTasks(AlarmPolicyTriggerTask[] TriggerTasks)
Set Triggered task list
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setUpdateTime(Long UpdateTime)
Set Update time
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setUseSum(Long UseSum)
Set Number of instances bound to policy group
Note: this field may return null, indicating that no valid values can be obtained.
|
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 AlarmPolicy()
public AlarmPolicy(AlarmPolicy source)
public String getPolicyId()
public void setPolicyId(String PolicyId)
PolicyId
- Alarm policy ID
Note: this field may return null, indicating that no valid values can be obtained.public String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName
- Alarm policy name
Note: this field may return null, indicating that no valid values can be obtained.public String getRemark()
public void setRemark(String Remark)
Remark
- Remarks
Note: this field may return null, indicating that no valid values can be obtained.public String getMonitorType()
public void setMonitorType(String MonitorType)
MonitorType
- Monitor type. Valid values: MT_QCE (Tencent Cloud service monitoring)
Note: this field may return null, indicating that no valid values can be obtained.public Long getEnable()
public void setEnable(Long Enable)
Enable
- Status. Valid values: 0 (disabled), 1 (enabled)
Note: this field may return null, indicating that no valid values can be obtained.public Long getUseSum()
public void setUseSum(Long UseSum)
UseSum
- Number of instances bound to policy group
Note: this field may return null, indicating that no valid values can be obtained.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. Valid values: -1 (no project), 0 (default project)
Note: this field may return null, indicating that no valid values can be obtained.public String getProjectName()
public void setProjectName(String ProjectName)
ProjectName
- Project name
Note: this field may return null, indicating that no valid values can be obtained.public String getNamespace()
public void setNamespace(String Namespace)
Namespace
- Alarm policy type
Note: this field may return null, indicating that no valid values can be obtained.public String getConditionTemplateId()
public void setConditionTemplateId(String ConditionTemplateId)
ConditionTemplateId
- Trigger condition template ID
Note: this field may return null, indicating that no valid values can be obtained.public AlarmPolicyCondition getCondition()
public void setCondition(AlarmPolicyCondition Condition)
Condition
- Metric trigger condition
Note: this field may return null, indicating that no valid values can be obtained.public AlarmPolicyEventCondition getEventCondition()
public void setEventCondition(AlarmPolicyEventCondition EventCondition)
EventCondition
- Event trigger condition
Note: this field may return null, indicating that no valid values can be obtained.public String[] getNoticeIds()
public void setNoticeIds(String[] NoticeIds)
NoticeIds
- Notification rule ID list
Note: this field may return null, indicating that no valid values can be obtained.public AlarmNotice[] getNotices()
public void setNotices(AlarmNotice[] Notices)
Notices
- Notification rule list
Note: this field may return null, indicating that no valid values can be obtained.public AlarmPolicyTriggerTask[] getTriggerTasks()
public void setTriggerTasks(AlarmPolicyTriggerTask[] TriggerTasks)
TriggerTasks
- Triggered task list
Note: this field may return null, indicating that no valid values can be obtained.public ConditionsTemp getConditionsTemp()
public void setConditionsTemp(ConditionsTemp ConditionsTemp)
ConditionsTemp
- Template policy group
Note: this field may return null, indicating that no valid values can be obtained.
Note: this field may return null, indicating that no valid values can be obtained.public String getLastEditUin()
public void setLastEditUin(String LastEditUin)
LastEditUin
- `Uin` of the last modifying user
Note: this field may return null, indicating that no valid values can be obtained.public Long getUpdateTime()
public void setUpdateTime(Long UpdateTime)
UpdateTime
- Update time
Note: this field may return null, indicating that no valid values can be obtained.
Note: this field may return null, indicating that no valid values can be obtained.public Long getInsertTime()
public void setInsertTime(Long InsertTime)
InsertTime
- Creation time
Note: this field may return null, indicating that no valid values can be obtained.
Note: this field may return null, indicating that no valid values can be obtained.public String[] getRegion()
public void setRegion(String[] Region)
Region
- Region
Note: this field may return null, indicating that no valid values can be obtained.public String getNamespaceShowName()
public void setNamespaceShowName(String NamespaceShowName)
NamespaceShowName
- Namespace display name
Note: this field may return null, indicating that no valid values can be obtained.public Long getIsDefault()
public void setIsDefault(Long IsDefault)
IsDefault
- Whether it is the default policy. Valid values: 1 (yes), 0 (no)
Note: this field may return null, indicating that no valid values can be obtained.public Long getCanSetDefault()
public void setCanSetDefault(Long CanSetDefault)
CanSetDefault
- Whether the default policy can be set. Valid values: 1 (yes), 0 (no)
Note: this field may return null, indicating that no valid values can be obtained.public Long getInstanceGroupId()
public void setInstanceGroupId(Long InstanceGroupId)
InstanceGroupId
- Instance group ID
Note: this field may return null, indicating that no valid values can be obtained.public Long getInstanceSum()
public void setInstanceSum(Long InstanceSum)
InstanceSum
- Total number of instances in instance group
Note: this field may return null, indicating that no valid values can be obtained.public String getInstanceGroupName()
public void setInstanceGroupName(String InstanceGroupName)
InstanceGroupName
- Instance group name
Note: this field may return null, indicating that no valid values can be obtained.public String getRuleType()
public void setRuleType(String RuleType)
RuleType
- Trigger condition type. Valid values: STATIC (static threshold), DYNAMIC (dynamic)
Note: this field may return null, indicating that no valid values can be obtained.public String getOriginId()
public void setOriginId(String OriginId)
OriginId
- Policy ID for instance/instance group binding and unbinding APIs (BindingPolicyObject, UnBindingAllPolicyObject, UnBindingPolicyObject)
Note: this field may return null, indicating that no valid values can be obtained.public TagInstance[] getTagInstances()
public void setTagInstances(TagInstance[] TagInstances)
TagInstances
- Tag
Note: This field may return `null`, indicating that no valid values can be obtained.public String getFilterDimensionsParam()
public void setFilterDimensionsParam(String FilterDimensionsParam)
FilterDimensionsParam
- Information on the filter dimension associated with a policy.
Note: This field may return `null`, indicating that no valid values can be obtained.public Long getIsOneClick()
public void setIsOneClick(Long IsOneClick)
IsOneClick
- Whether it is a quick alarm policy.
Note: This field may return `null`, indicating that no valid values can be obtained.public Long getOneClickStatus()
public void setOneClickStatus(Long OneClickStatus)
OneClickStatus
- Whether the quick alarm policy is enabled.
Note: This field may return `null`, indicating that no valid values can be obtained.public Long getAdvancedMetricNumber()
public void setAdvancedMetricNumber(Long AdvancedMetricNumber)
AdvancedMetricNumber
- The number of advanced metrics.
Note: This field may return `null`, indicating that no valid values can be obtained.public Long getIsBindAll()
public void setIsBindAll(Long IsBindAll)
IsBindAll
- Whether the policy is associated with all objects
Note: This field may return null, indicating that no valid values can be obtained.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Policy tag
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.