Class CreatePolicyGroupRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.monitor.v20180724.models.CreatePolicyGroupRequest
-
public class CreatePolicyGroupRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getBackEndCall()
Get 是否为后端调用。当且仅当值为1时,后台拉取策略模板中的规则填充入Conditions以及EventConditions字段CreatePolicyGroupCondition[]
getConditions()
Get 策略组中的阈值告警规则Long
getConditionTempGroupId()
Get 模板策略组Id, 通过模板创建时才需要传CreatePolicyGroupEventCondition[]
getEventConditions()
Get 策略组中的事件告警规则String
getGroupName()
Get 组策略名称Long
getInsertTime()
Get 插入时间,戳格式为Unix时间戳,不填则按后台处理时间填充Long
getIsShielded()
Get 是否屏蔽策略组,0表示不屏蔽,1表示屏蔽。不填默认为0Long
getIsUnionRule()
Get 指标告警规则的且或关系,0表示或规则(满足任意规则就告警),1表示且规则(满足所有规则才告警)String
getModule()
Get 固定值,为"monitor"Long
getProjectId()
Get 策略组所属项目Id,会进行鉴权操作String
getRemark()
Get 策略组的备注信息String
getViewName()
Get 策略组所属视图的名称,若通过模板创建,可不传入void
setBackEndCall(Long BackEndCall)
Set 是否为后端调用。当且仅当值为1时,后台拉取策略模板中的规则填充入Conditions以及EventConditions字段void
setConditions(CreatePolicyGroupCondition[] Conditions)
Set 策略组中的阈值告警规则void
setConditionTempGroupId(Long ConditionTempGroupId)
Set 模板策略组Id, 通过模板创建时才需要传void
setEventConditions(CreatePolicyGroupEventCondition[] EventConditions)
Set 策略组中的事件告警规则void
setGroupName(String GroupName)
Set 组策略名称void
setInsertTime(Long InsertTime)
Set 插入时间,戳格式为Unix时间戳,不填则按后台处理时间填充void
setIsShielded(Long IsShielded)
Set 是否屏蔽策略组,0表示不屏蔽,1表示屏蔽。不填默认为0void
setIsUnionRule(Long IsUnionRule)
Set 指标告警规则的且或关系,0表示或规则(满足任意规则就告警),1表示且规则(满足所有规则才告警)void
setModule(String Module)
Set 固定值,为"monitor"void
setProjectId(Long ProjectId)
Set 策略组所属项目Id,会进行鉴权操作void
setRemark(String Remark)
Set 策略组的备注信息void
setViewName(String ViewName)
Set 策略组所属视图的名称,若通过模板创建,可不传入void
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CreatePolicyGroupRequest
public CreatePolicyGroupRequest()
-
CreatePolicyGroupRequest
public 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.
-
-
Method Detail
-
getGroupName
public String getGroupName()
Get 组策略名称- Returns:
- GroupName 组策略名称
-
setGroupName
public void setGroupName(String GroupName)
Set 组策略名称- Parameters:
GroupName
- 组策略名称
-
getModule
public String getModule()
Get 固定值,为"monitor"- Returns:
- Module 固定值,为"monitor"
-
setModule
public void setModule(String Module)
Set 固定值,为"monitor"- Parameters:
Module
- 固定值,为"monitor"
-
getViewName
public String getViewName()
Get 策略组所属视图的名称,若通过模板创建,可不传入- Returns:
- ViewName 策略组所属视图的名称,若通过模板创建,可不传入
-
setViewName
public void setViewName(String ViewName)
Set 策略组所属视图的名称,若通过模板创建,可不传入- Parameters:
ViewName
- 策略组所属视图的名称,若通过模板创建,可不传入
-
getProjectId
public Long getProjectId()
Get 策略组所属项目Id,会进行鉴权操作- Returns:
- ProjectId 策略组所属项目Id,会进行鉴权操作
-
setProjectId
public void setProjectId(Long ProjectId)
Set 策略组所属项目Id,会进行鉴权操作- Parameters:
ProjectId
- 策略组所属项目Id,会进行鉴权操作
-
getConditionTempGroupId
public Long getConditionTempGroupId()
Get 模板策略组Id, 通过模板创建时才需要传- Returns:
- ConditionTempGroupId 模板策略组Id, 通过模板创建时才需要传
-
setConditionTempGroupId
public void setConditionTempGroupId(Long ConditionTempGroupId)
Set 模板策略组Id, 通过模板创建时才需要传- Parameters:
ConditionTempGroupId
- 模板策略组Id, 通过模板创建时才需要传
-
getIsShielded
public Long getIsShielded()
Get 是否屏蔽策略组,0表示不屏蔽,1表示屏蔽。不填默认为0- Returns:
- IsShielded 是否屏蔽策略组,0表示不屏蔽,1表示屏蔽。不填默认为0
-
setIsShielded
public void setIsShielded(Long IsShielded)
Set 是否屏蔽策略组,0表示不屏蔽,1表示屏蔽。不填默认为0- Parameters:
IsShielded
- 是否屏蔽策略组,0表示不屏蔽,1表示屏蔽。不填默认为0
-
getRemark
public String getRemark()
Get 策略组的备注信息- Returns:
- Remark 策略组的备注信息
-
setRemark
public void setRemark(String Remark)
Set 策略组的备注信息- Parameters:
Remark
- 策略组的备注信息
-
getInsertTime
public Long getInsertTime()
Get 插入时间,戳格式为Unix时间戳,不填则按后台处理时间填充- Returns:
- InsertTime 插入时间,戳格式为Unix时间戳,不填则按后台处理时间填充
-
setInsertTime
public void setInsertTime(Long InsertTime)
Set 插入时间,戳格式为Unix时间戳,不填则按后台处理时间填充- Parameters:
InsertTime
- 插入时间,戳格式为Unix时间戳,不填则按后台处理时间填充
-
getConditions
public CreatePolicyGroupCondition[] getConditions()
Get 策略组中的阈值告警规则- Returns:
- Conditions 策略组中的阈值告警规则
-
setConditions
public void setConditions(CreatePolicyGroupCondition[] Conditions)
Set 策略组中的阈值告警规则- Parameters:
Conditions
- 策略组中的阈值告警规则
-
getEventConditions
public CreatePolicyGroupEventCondition[] getEventConditions()
Get 策略组中的事件告警规则- Returns:
- EventConditions 策略组中的事件告警规则
-
setEventConditions
public void setEventConditions(CreatePolicyGroupEventCondition[] EventConditions)
Set 策略组中的事件告警规则- Parameters:
EventConditions
- 策略组中的事件告警规则
-
getBackEndCall
public Long getBackEndCall()
Get 是否为后端调用。当且仅当值为1时,后台拉取策略模板中的规则填充入Conditions以及EventConditions字段- Returns:
- BackEndCall 是否为后端调用。当且仅当值为1时,后台拉取策略模板中的规则填充入Conditions以及EventConditions字段
-
setBackEndCall
public void setBackEndCall(Long BackEndCall)
Set 是否为后端调用。当且仅当值为1时,后台拉取策略模板中的规则填充入Conditions以及EventConditions字段- Parameters:
BackEndCall
- 是否为后端调用。当且仅当值为1时,后台拉取策略模板中的规则填充入Conditions以及EventConditions字段
-
getIsUnionRule
public Long getIsUnionRule()
Get 指标告警规则的且或关系,0表示或规则(满足任意规则就告警),1表示且规则(满足所有规则才告警)- Returns:
- IsUnionRule 指标告警规则的且或关系,0表示或规则(满足任意规则就告警),1表示且规则(满足所有规则才告警)
-
setIsUnionRule
public void setIsUnionRule(Long IsUnionRule)
Set 指标告警规则的且或关系,0表示或规则(满足任意规则就告警),1表示且规则(满足所有规则才告警)- Parameters:
IsUnionRule
- 指标告警规则的且或关系,0表示或规则(满足任意规则就告警),1表示且规则(满足所有规则才告警)
-
-