Class PrometheusAlertRule
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.monitor.v20180724.models.PrometheusAlertRule
-
public class PrometheusAlertRule extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
PrometheusAlertRule
public PrometheusAlertRule()
-
PrometheusAlertRule
public 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.
-
-
Method Detail
-
getName
public String getName()
Get 规则名称- Returns:
- Name 规则名称
-
setName
public void setName(String Name)
Set 规则名称- Parameters:
Name
- 规则名称
-
getRule
public String getRule()
Get prometheus语句- Returns:
- Rule prometheus语句
-
setRule
public void setRule(String Rule)
Set prometheus语句- Parameters:
Rule
- prometheus语句
-
getLabels
public Label[] getLabels()
Get 额外标签- Returns:
- Labels 额外标签
-
setLabels
public void setLabels(Label[] Labels)
Set 额外标签- Parameters:
Labels
- 额外标签
-
getTemplate
public String getTemplate()
Get 告警发送模板- Returns:
- Template 告警发送模板
-
setTemplate
public void setTemplate(String Template)
Set 告警发送模板- Parameters:
Template
- 告警发送模板
-
getFor
public String getFor()
Get 持续时间- Returns:
- For 持续时间
-
setFor
public void setFor(String For)
Set 持续时间- Parameters:
For
- 持续时间
-
getDescribe
public String getDescribe()
Get 该条规则的描述信息 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Describe 该条规则的描述信息 注意:此字段可能返回 null,表示取不到有效值。
-
setDescribe
public void setDescribe(String Describe)
Set 该条规则的描述信息 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Describe
- 该条规则的描述信息 注意:此字段可能返回 null,表示取不到有效值。
-
getAnnotations
public Label[] getAnnotations()
Get 参考prometheus rule中的annotations 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Annotations 参考prometheus rule中的annotations 注意:此字段可能返回 null,表示取不到有效值。
-
setAnnotations
public void setAnnotations(Label[] Annotations)
Set 参考prometheus rule中的annotations 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Annotations
- 参考prometheus rule中的annotations 注意:此字段可能返回 null,表示取不到有效值。
-
getRuleState
public Long getRuleState()
Get 告警规则状态 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- RuleState 告警规则状态 注意:此字段可能返回 null,表示取不到有效值。
-
setRuleState
public void setRuleState(Long RuleState)
Set 告警规则状态 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
RuleState
- 告警规则状态 注意:此字段可能返回 null,表示取不到有效值。
-
-