public class PrometheusAlertGroupRuleSet extends AbstractModel
header, skipSign
Constructor and Description |
---|
PrometheusAlertGroupRuleSet() |
PrometheusAlertGroupRuleSet(PrometheusAlertGroupRuleSet 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 Prometheus alert annotation list.
|
String |
getDuration()
Get Alert will be triggered after 'Expr' satisfied for 'Duration'.
|
String |
getExpr()
Get Alert expression.
|
PrometheusRuleKV[] |
getLabels()
Get Prometheus alert label list.
|
String |
getRuleName()
Get Alert rule name.
|
Long |
getState()
Get Alert rule status.
|
void |
setAnnotations(PrometheusRuleKV[] Annotations)
Set Prometheus alert annotation list.
|
void |
setDuration(String Duration)
Set Alert will be triggered after 'Expr' satisfied for 'Duration'.
|
void |
setExpr(String Expr)
Set Alert expression.
|
void |
setLabels(PrometheusRuleKV[] Labels)
Set Prometheus alert label list.
|
void |
setRuleName(String RuleName)
Set Alert rule name.
|
void |
setState(Long State)
Set Alert rule status.
|
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 PrometheusAlertGroupRuleSet()
public PrometheusAlertGroupRuleSet(PrometheusAlertGroupRuleSet source)
public String getRuleName()
public void setRuleName(String RuleName)
RuleName
- Alert rule name. same name is not allowed in the same Alert group.
Note: This field may return null, indicating that no valid values can be obtained.public PrometheusRuleKV[] getLabels()
public void setLabels(PrometheusRuleKV[] Labels)
Labels
- Prometheus alert label list.
Note: This field may return null, indicating that no valid values can be obtained.public PrometheusRuleKV[] getAnnotations()
public void setAnnotations(PrometheusRuleKV[] Annotations)
Annotations
- Prometheus alert annotation list.
Alarm object and Alarm message are special fields of Prometheus Rule Annotations. they need to pass through Annotations for transmission. the corresponding keys are summary and description respectively.
Note: This field may return null, indicating that no valid values can be obtained.public String getDuration()
public void setDuration(String Duration)
Duration
- Alert will be triggered after 'Expr' satisfied for 'Duration'.
Note: This field may return null, indicating that no valid values can be obtained.public String getExpr()
public void setExpr(String Expr)
Expr
- Alert expression. see alert rule description.
Note: This field may return null, indicating that no valid values can be obtained.public Long getState()
public void setState(Long State)
State
- Alert rule status.
2 - enable.
3 - disabled.
Enabled by default if left empty.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.