public class PrometheusAlertRule extends AbstractModel
| 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 Refer to annotations in prometheus rule
Note: this field may return `null`, indicating that no valid value can be obtained. | 
| String | getDescribe()Get Rule description
Note: this field may return `null`, indicating that no valid value can be obtained. | 
| String | getFor()Get Duration | 
| Label[] | getLabels()Get Additional labels | 
| String | getName()Get Rule name | 
| String | getRule()Get PromQL contents | 
| Long | getRuleState()Get Alarm rule status
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String | getTemplate()Get Alarm delivery template | 
| void | setAnnotations(Label[] Annotations)Set Refer to annotations in prometheus rule
Note: this field may return `null`, indicating that no valid value can be obtained. | 
| void | setDescribe(String Describe)Set Rule description
Note: this field may return `null`, indicating that no valid value can be obtained. | 
| void | setFor(String For)Set Duration | 
| void | setLabels(Label[] Labels)Set Additional labels | 
| void | setName(String Name)Set Rule name | 
| void | setRule(String Rule)Set PromQL contents | 
| void | setRuleState(Long RuleState)Set Alarm rule status
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setTemplate(String Template)Set Alarm delivery template | 
| 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, toJsonStringpublic PrometheusAlertRule()
public PrometheusAlertRule(PrometheusAlertRule source)
public String getName()
public void setName(String Name)
Name - Rule namepublic String getRule()
public void setRule(String Rule)
Rule - PromQL contentspublic Label[] getLabels()
public void setLabels(Label[] Labels)
Labels - Additional labelspublic String getTemplate()
public void setTemplate(String Template)
Template - Alarm delivery templatepublic String getFor()
public void setFor(String For)
For - Durationpublic String getDescribe()
public void setDescribe(String Describe)
Describe - Rule description
Note: this field may return `null`, indicating that no valid value can be obtained.public Label[] getAnnotations()
public void setAnnotations(Label[] Annotations)
Annotations - Refer to annotations in prometheus rule
Note: this field may return `null`, indicating that no valid value can be obtained.public Long getRuleState()
public void setRuleState(Long RuleState)
RuleState - Alarm rule status
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.