public class UpdateAlertRuleRequest extends AbstractModel
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
PrometheusRuleKV[] |
getAnnotations()
Get List of alerting rule annotations.
|
String |
getDuration()
Get Alerting rule duration
|
String |
getExpr()
Get Alerting rule expression
|
String |
getInstanceId()
Get Prometheus instance ID
|
PrometheusRuleKV[] |
getLabels()
Get List of alerting rule tags
|
String[] |
getReceivers()
Get List of alerting rule recipient groups
|
String |
getRuleId()
Get Prometheus alerting rule ID
|
String |
getRuleName()
Get Alerting rule name
|
Long |
getRuleState()
Get Rule status code.
|
String |
getType()
Get Alerting rule template category
|
void |
setAnnotations(PrometheusRuleKV[] Annotations)
Set List of alerting rule annotations.
|
void |
setDuration(String Duration)
Set Alerting rule duration
|
void |
setExpr(String Expr)
Set Alerting rule expression
|
void |
setInstanceId(String InstanceId)
Set Prometheus instance ID
|
void |
setLabels(PrometheusRuleKV[] Labels)
Set List of alerting rule tags
|
void |
setReceivers(String[] Receivers)
Set List of alerting rule recipient groups
|
void |
setRuleId(String RuleId)
Set Prometheus alerting rule ID
|
void |
setRuleName(String RuleName)
Set Alerting rule name
|
void |
setRuleState(Long RuleState)
Set Rule status code.
|
void |
setType(String Type)
Set Alerting rule template category
|
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 UpdateAlertRuleRequest()
public UpdateAlertRuleRequest(UpdateAlertRuleRequest source)
public String getRuleId()
public void setRuleId(String RuleId)
RuleId
- Prometheus alerting rule IDpublic String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Prometheus instance IDpublic Long getRuleState()
public void setRuleState(Long RuleState)
RuleState
- Rule status code. Valid values:
public String getRuleName()
public void setRuleName(String RuleName)
RuleName
- Alerting rule namepublic String getExpr()
public void setExpr(String Expr)
Expr
- Alerting rule expressionpublic String getDuration()
public void setDuration(String Duration)
Duration
- Alerting rule durationpublic String[] getReceivers()
public void setReceivers(String[] Receivers)
Receivers
- List of alerting rule recipient groupspublic PrometheusRuleKV[] getLabels()
public void setLabels(PrometheusRuleKV[] Labels)
Labels
- List of alerting rule tagspublic PrometheusRuleKV[] getAnnotations()
public void setAnnotations(PrometheusRuleKV[] Annotations)
Annotations
- List of alerting rule annotations.
Alert object and alert message are special fields of Prometheus Rule Annotations, which need to be passed in through `annotations` and correspond to `summary` and `description` keys respectively.public String getType()
public void setType(String Type)
Type
- Alerting rule template categoryCopyright © 2023. All rights reserved.