public class PrometheusRuleSet extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| PrometheusRuleSet() | 
| PrometheusRuleSet(PrometheusRuleSet 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 规则注释列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getCreatedAt()Get 规则创建时间
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getDuration()Get 规则报警持续时间
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getExpr()Get 规则表达式
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getHealth()Get 规则运行健康状态,取值如下:
unknown 未知状态
pending 加载中
ok 运行正常
err 运行错误 | 
| PrometheusRuleKV[] | getLabels()Get 规则标签列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| String[] | getReceivers()Get 报警接收组列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getRuleId()Get 规则 ID | 
| String | getRuleName()Get 规则名称 | 
| Long | getRuleState()Get 规则状态码 | 
| String | getType()Get 规则类别
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getUpdatedAt()Get 规则更新时间
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setAnnotations(PrometheusRuleKV[] Annotations)Set 规则注释列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setCreatedAt(String CreatedAt)Set 规则创建时间
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setDuration(String Duration)Set 规则报警持续时间
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setExpr(String Expr)Set 规则表达式
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setHealth(String Health)Set 规则运行健康状态,取值如下:
unknown 未知状态
pending 加载中
ok 运行正常
err 运行错误 | 
| void | setLabels(PrometheusRuleKV[] Labels)Set 规则标签列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setReceivers(String[] Receivers)Set 报警接收组列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setRuleId(String RuleId)Set 规则 ID | 
| void | setRuleName(String RuleName)Set 规则名称 | 
| void | setRuleState(Long RuleState)Set 规则状态码 | 
| void | setType(String Type)Set 规则类别
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setUpdatedAt(String UpdatedAt)Set 规则更新时间
注意:此字段可能返回 null,表示取不到有效值。 | 
| 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, toJsonStringpublic PrometheusRuleSet()
public PrometheusRuleSet(PrometheusRuleSet source)
public String getRuleId()
public void setRuleId(String RuleId)
RuleId - 规则 IDpublic String getRuleName()
public void setRuleName(String RuleName)
RuleName - 规则名称public Long getRuleState()
public void setRuleState(Long RuleState)
RuleState - 规则状态码public String getType()
public void setType(String Type)
Type - 规则类别
注意:此字段可能返回 null,表示取不到有效值。public PrometheusRuleKV[] getLabels()
public void setLabels(PrometheusRuleKV[] Labels)
Labels - 规则标签列表
注意:此字段可能返回 null,表示取不到有效值。public PrometheusRuleKV[] getAnnotations()
public void setAnnotations(PrometheusRuleKV[] Annotations)
Annotations - 规则注释列表
注意:此字段可能返回 null,表示取不到有效值。public String getExpr()
public void setExpr(String Expr)
Expr - 规则表达式
注意:此字段可能返回 null,表示取不到有效值。public String getDuration()
public void setDuration(String Duration)
Duration - 规则报警持续时间
注意:此字段可能返回 null,表示取不到有效值。public String[] getReceivers()
public void setReceivers(String[] Receivers)
Receivers - 报警接收组列表
注意:此字段可能返回 null,表示取不到有效值。public String getHealth()
public void setHealth(String Health)
Health - 规则运行健康状态,取值如下:
public String getCreatedAt()
public void setCreatedAt(String CreatedAt)
CreatedAt - 规则创建时间
注意:此字段可能返回 null,表示取不到有效值。public String getUpdatedAt()
public void setUpdatedAt(String UpdatedAt)
UpdatedAt - 规则更新时间
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.