public class CreatePolicyGroupRequest extends AbstractModel
Constructor and Description |
---|
CreatePolicyGroupRequest() |
CreatePolicyGroupRequest(CreatePolicyGroupRequest 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 |
getBackEndCall()
Get Whether it is a backend call.
|
CreatePolicyGroupCondition[] |
getConditions()
Get Alarm threshold rules in the policy group.
|
Long |
getConditionTempGroupId()
Get ID of a template-based policy group.
|
CreatePolicyGroupEventCondition[] |
getEventConditions()
Get Event alarm rules in the policy group.
|
String |
getGroupName()
Get Policy group name.
|
Long |
getInsertTime()
Get Insertion time in the format of Unix timestamp.
|
Long |
getIsShielded()
Get Whether the policy group is shielded.
|
Long |
getIsUnionRule()
Get The 'AND' and 'OR' rules for alarm metrics.
|
String |
getModule()
Get The value is fixed to monitor.
|
Long |
getProjectId()
Get ID of the project to which the policy group belongs, which will be used for authentication.
|
String |
getRemark()
Get Remarks of the policy group.
|
String |
getViewName()
Get Name of the view to which the policy group belongs.
|
void |
setBackEndCall(Long BackEndCall)
Set Whether it is a backend call.
|
void |
setConditions(CreatePolicyGroupCondition[] Conditions)
Set Alarm threshold rules in the policy group.
|
void |
setConditionTempGroupId(Long ConditionTempGroupId)
Set ID of a template-based policy group.
|
void |
setEventConditions(CreatePolicyGroupEventCondition[] EventConditions)
Set Event alarm rules in the policy group.
|
void |
setGroupName(String GroupName)
Set Policy group name.
|
void |
setInsertTime(Long InsertTime)
Set Insertion time in the format of Unix timestamp.
|
void |
setIsShielded(Long IsShielded)
Set Whether the policy group is shielded.
|
void |
setIsUnionRule(Long IsUnionRule)
Set The 'AND' and 'OR' rules for alarm metrics.
|
void |
setModule(String Module)
Set The value is fixed to monitor.
|
void |
setProjectId(Long ProjectId)
Set ID of the project to which the policy group belongs, which will be used for authentication.
|
void |
setRemark(String Remark)
Set Remarks of the policy group.
|
void |
setViewName(String ViewName)
Set Name of the view to which the policy group belongs.
|
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 CreatePolicyGroupRequest()
public CreatePolicyGroupRequest(CreatePolicyGroupRequest source)
public String getGroupName()
public void setGroupName(String GroupName)
GroupName
- Policy group name.public String getModule()
public void setModule(String Module)
Module
- The value is fixed to monitor.public String getViewName()
public void setViewName(String ViewName)
ViewName
- Name of the view to which the policy group belongs. If the policy group is created based on a template, this parameter is optional.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- ID of the project to which the policy group belongs, which will be used for authentication.public Long getConditionTempGroupId()
public void setConditionTempGroupId(Long ConditionTempGroupId)
ConditionTempGroupId
- ID of a template-based policy group. This parameter is required only when the policy group is created based on a template.public Long getIsShielded()
public void setIsShielded(Long IsShielded)
IsShielded
- Whether the policy group is shielded. The value 0 indicates that the policy group is not shielded. The value 1 indicates that the policy group is shielded. The default value is 0.public String getRemark()
public void setRemark(String Remark)
Remark
- Remarks of the policy group.public Long getInsertTime()
public void setInsertTime(Long InsertTime)
InsertTime
- Insertion time in the format of Unix timestamp. If this parameter is not configured, the backend processing time is used.public CreatePolicyGroupCondition[] getConditions()
public void setConditions(CreatePolicyGroupCondition[] Conditions)
Conditions
- Alarm threshold rules in the policy group.public CreatePolicyGroupEventCondition[] getEventConditions()
public void setEventConditions(CreatePolicyGroupEventCondition[] EventConditions)
EventConditions
- Event alarm rules in the policy group.public Long getBackEndCall()
public void setBackEndCall(Long BackEndCall)
BackEndCall
- Whether it is a backend call. If the value is 1, rules from the policy template will be used to fill in the `Conditions` and `EventConditions` fields.public Long getIsUnionRule()
public void setIsUnionRule(Long IsUnionRule)
IsUnionRule
- The 'AND' and 'OR' rules for alarm metrics. The value 0 indicates 'OR', which means that an alarm will be triggered when any rule is met. The value 1 indicates 'AND', which means that an alarm will be triggered only when all rules are met.Copyright © 2021. All rights reserved.