public class UpdatePrometheusAlertGroupRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
UpdatePrometheusAlertGroupRequest() |
UpdatePrometheusAlertGroupRequest(UpdatePrometheusAlertGroupRequest 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 |
getGroupId()
Get 告警分组ID,形如alert-xxxx
|
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 |
setGroupId(String GroupId)
Set 告警分组ID,形如alert-xxxx
|
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, toJsonString
public UpdatePrometheusAlertGroupRequest()
public UpdatePrometheusAlertGroupRequest(UpdatePrometheusAlertGroupRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- prometheus实例IDpublic String getGroupId()
public void setGroupId(String GroupId)
GroupId
- 告警分组ID,形如alert-xxxxpublic 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 © 2024. All rights reserved.