public class PrometheusAlertRule extends AbstractModel
header, skipSign
Constructor and Description |
---|
PrometheusAlertRule() |
PrometheusAlertRule(PrometheusAlertRule 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 |
---|---|
Label[] |
getAnnotations()
Get 参考prometheus rule中的annotations
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getDescribe()
Get 该条规则的描述信息
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getFor()
Get 持续时间
|
Label[] |
getLabels()
Get 额外标签
|
String |
getName()
Get 规则名称
|
String |
getRule()
Get prometheus语句
|
Long |
getRuleState()
Get 告警规则状态
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getTemplate()
Get 告警发送模板
|
void |
setAnnotations(Label[] Annotations)
Set 参考prometheus rule中的annotations
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setDescribe(String Describe)
Set 该条规则的描述信息
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setFor(String For)
Set 持续时间
|
void |
setLabels(Label[] Labels)
Set 额外标签
|
void |
setName(String Name)
Set 规则名称
|
void |
setRule(String Rule)
Set prometheus语句
|
void |
setRuleState(Long RuleState)
Set 告警规则状态
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setTemplate(String Template)
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 PrometheusAlertRule()
public PrometheusAlertRule(PrometheusAlertRule source)
public String getName()
public void setName(String Name)
Name
- 规则名称public String getRule()
public void setRule(String Rule)
Rule
- prometheus语句public Label[] getLabels()
public void setLabels(Label[] Labels)
Labels
- 额外标签public String getTemplate()
public void setTemplate(String Template)
Template
- 告警发送模板public String getFor()
public void setFor(String For)
For
- 持续时间public String getDescribe()
public void setDescribe(String Describe)
Describe
- 该条规则的描述信息
注意:此字段可能返回 null,表示取不到有效值。public Label[] getAnnotations()
public void setAnnotations(Label[] Annotations)
Annotations
- 参考prometheus rule中的annotations
注意:此字段可能返回 null,表示取不到有效值。public Long getRuleState()
public void setRuleState(Long RuleState)
RuleState
- 告警规则状态
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2024. All rights reserved.