public class CreatePrometheusAlertGroupRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreatePrometheusAlertGroupRequest() | 
| CreatePrometheusAlertGroupRequest(CreatePrometheusAlertGroupRequest 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 | 
|---|---|
| String[] | getAMPReceivers()Get 腾讯云可观测平台告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx | 
| PrometheusAlertCustomReceiver | getCustomReceiver()Get 自定义告警通知模板 | 
| String | getGroupName()Get 告警分组名称,不能与其他告警分组重名 | 
| Long | getGroupState()Get 告警分组状态:
2 -- 启用
3 -- 禁用
不为空时会覆盖 `Rules`字段下所有告警规则状态 | 
| String | getInstanceId()Get prometheus实例ID | 
| String | getRepeatInterval()Get 告警通知周期(收敛时间),为空默认1h | 
| PrometheusAlertGroupRuleSet[] | getRules()Get 要创建的告警规则列表 | 
| void | setAMPReceivers(String[] AMPReceivers)Set 腾讯云可观测平台告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx | 
| void | setCustomReceiver(PrometheusAlertCustomReceiver CustomReceiver)Set 自定义告警通知模板 | 
| void | setGroupName(String GroupName)Set 告警分组名称,不能与其他告警分组重名 | 
| void | setGroupState(Long GroupState)Set 告警分组状态:
2 -- 启用
3 -- 禁用
不为空时会覆盖 `Rules`字段下所有告警规则状态 | 
| void | setInstanceId(String InstanceId)Set prometheus实例ID | 
| void | setRepeatInterval(String RepeatInterval)Set 告警通知周期(收敛时间),为空默认1h | 
| void | setRules(PrometheusAlertGroupRuleSet[] Rules)Set 要创建的告警规则列表 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreatePrometheusAlertGroupRequest()
public CreatePrometheusAlertGroupRequest(CreatePrometheusAlertGroupRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - prometheus实例IDpublic String getGroupName()
public void setGroupName(String GroupName)
GroupName - 告警分组名称,不能与其他告警分组重名public Long getGroupState()
public void setGroupState(Long GroupState)
GroupState - 告警分组状态:
2 -- 启用
3 -- 禁用
不为空时会覆盖 `Rules`字段下所有告警规则状态public String[] getAMPReceivers()
public void setAMPReceivers(String[] AMPReceivers)
AMPReceivers - 腾讯云可观测平台告警通知模板ID列表,形如Consumer-xxxx或notice-xxxxpublic PrometheusAlertCustomReceiver getCustomReceiver()
public void setCustomReceiver(PrometheusAlertCustomReceiver CustomReceiver)
CustomReceiver - 自定义告警通知模板public String getRepeatInterval()
public void setRepeatInterval(String RepeatInterval)
RepeatInterval - 告警通知周期(收敛时间),为空默认1hpublic PrometheusAlertGroupRuleSet[] getRules()
public void setRules(PrometheusAlertGroupRuleSet[] Rules)
Rules - 要创建的告警规则列表Copyright © 2025. All rights reserved.