Class UpdateAlertRuleRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.monitor.v20180724.models.UpdateAlertRuleRequest
-
public class UpdateAlertRuleRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description UpdateAlertRuleRequest()
UpdateAlertRuleRequest(UpdateAlertRuleRequest 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 PrometheusRuleKV[]
getAnnotations()
Get 报警规则注释列表。 告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。String
getDuration()
Get 报警规则持续时间String
getExpr()
Get 报警规则表达式String
getInstanceId()
Get Prometheus 实例 IDPrometheusRuleKV[]
getLabels()
Get 报警规则标签列表String[]
getReceivers()
Get 报警规则接收组列表String
getRuleId()
Get Prometheus 报警规则 IDString
getRuleName()
Get 报警规则名称Long
getRuleState()
Get 规则状态码,取值如下: 1=RuleDeleted 2=RuleEnabled 3=RuleDisabled 默认状态码为 2 启用。String
getType()
Get 报警策略模板分类void
setAnnotations(PrometheusRuleKV[] Annotations)
Set 报警规则注释列表。 告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。void
setDuration(String Duration)
Set 报警规则持续时间void
setExpr(String Expr)
Set 报警规则表达式void
setInstanceId(String InstanceId)
Set Prometheus 实例 IDvoid
setLabels(PrometheusRuleKV[] Labels)
Set 报警规则标签列表void
setReceivers(String[] Receivers)
Set 报警规则接收组列表void
setRuleId(String RuleId)
Set Prometheus 报警规则 IDvoid
setRuleName(String RuleName)
Set 报警规则名称void
setRuleState(Long RuleState)
Set 规则状态码,取值如下: 1=RuleDeleted 2=RuleEnabled 3=RuleDisabled 默认状态码为 2 启用。void
setType(String Type)
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
-
UpdateAlertRuleRequest
public UpdateAlertRuleRequest()
-
UpdateAlertRuleRequest
public UpdateAlertRuleRequest(UpdateAlertRuleRequest 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
-
getRuleId
public String getRuleId()
Get Prometheus 报警规则 ID- Returns:
- RuleId Prometheus 报警规则 ID
-
setRuleId
public void setRuleId(String RuleId)
Set Prometheus 报警规则 ID- Parameters:
RuleId
- Prometheus 报警规则 ID
-
getInstanceId
public String getInstanceId()
Get Prometheus 实例 ID- Returns:
- InstanceId Prometheus 实例 ID
-
setInstanceId
public void setInstanceId(String InstanceId)
Set Prometheus 实例 ID- Parameters:
InstanceId
- Prometheus 实例 ID
-
getRuleState
public Long getRuleState()
Get 规则状态码,取值如下:- 1=RuleDeleted
- 2=RuleEnabled
- 3=RuleDisabled
默认状态码为 2 启用。- Returns:
- RuleState 规则状态码,取值如下:
- 1=RuleDeleted
- 2=RuleEnabled
- 3=RuleDisabled
默认状态码为 2 启用。
-
setRuleState
public void setRuleState(Long RuleState)
Set 规则状态码,取值如下:- 1=RuleDeleted
- 2=RuleEnabled
- 3=RuleDisabled
默认状态码为 2 启用。- Parameters:
RuleState
- 规则状态码,取值如下:- 1=RuleDeleted
- 2=RuleEnabled
- 3=RuleDisabled
默认状态码为 2 启用。
-
getRuleName
public String getRuleName()
Get 报警规则名称- Returns:
- RuleName 报警规则名称
-
setRuleName
public void setRuleName(String RuleName)
Set 报警规则名称- Parameters:
RuleName
- 报警规则名称
-
getExpr
public String getExpr()
Get 报警规则表达式- Returns:
- Expr 报警规则表达式
-
setExpr
public void setExpr(String Expr)
Set 报警规则表达式- Parameters:
Expr
- 报警规则表达式
-
getDuration
public String getDuration()
Get 报警规则持续时间- Returns:
- Duration 报警规则持续时间
-
setDuration
public void setDuration(String Duration)
Set 报警规则持续时间- Parameters:
Duration
- 报警规则持续时间
-
getReceivers
public String[] getReceivers()
Get 报警规则接收组列表- Returns:
- Receivers 报警规则接收组列表
-
setReceivers
public void setReceivers(String[] Receivers)
Set 报警规则接收组列表- Parameters:
Receivers
- 报警规则接收组列表
-
getLabels
public PrometheusRuleKV[] getLabels()
Get 报警规则标签列表- Returns:
- Labels 报警规则标签列表
-
setLabels
public void setLabels(PrometheusRuleKV[] Labels)
Set 报警规则标签列表- Parameters:
Labels
- 报警规则标签列表
-
getAnnotations
public PrometheusRuleKV[] getAnnotations()
Get 报警规则注释列表。 告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。- Returns:
- Annotations 报警规则注释列表。 告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。
-
setAnnotations
public void setAnnotations(PrometheusRuleKV[] Annotations)
Set 报警规则注释列表。 告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。- Parameters:
Annotations
- 报警规则注释列表。 告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。
-
getType
public String getType()
Get 报警策略模板分类- Returns:
- Type 报警策略模板分类
-
setType
public void setType(String Type)
Set 报警策略模板分类- Parameters:
Type
- 报警策略模板分类
-
-