public class PrometheusAlertRule extends AbstractModel
Constructor and Description |
---|
PrometheusAlertRule() |
Modifier and Type | Method and Description |
---|---|
String |
getDescribe()
Get 该条规则的描述信息
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getFor()
Get 持续时间
|
Label[] |
getLabels()
Get 额外标签
|
String |
getName()
Get 规则名称
|
String |
getRule()
Get prometheus语句
|
String |
getTemplate()
Get 告警发送模板
|
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 |
setTemplate(String Template)
Set 告警发送模板
|
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 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,表示取不到有效值。Copyright © 2021. All rights reserved.