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 List of rule annotations
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getCreatedAt()
Get Rule creation time
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getDuration()
Get Rule alert duration
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getExpr()
Get Rule expression
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getHealth()
Get Rule status.
|
PrometheusRuleKV[] |
getLabels()
Get List of rule tags
Note: This field may return null, indicating that no valid values can be obtained.
|
String[] |
getReceivers()
Get List of alert recipient groups
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getRuleId()
Get Rule ID
|
String |
getRuleName()
Get Rule name
|
Long |
getRuleState()
Get Rule status code
|
String |
getType()
Get Rule category
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getUpdatedAt()
Get Rule update time
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setAnnotations(PrometheusRuleKV[] Annotations)
Set List of rule annotations
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setCreatedAt(String CreatedAt)
Set Rule creation time
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setDuration(String Duration)
Set Rule alert duration
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setExpr(String Expr)
Set Rule expression
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setHealth(String Health)
Set Rule status.
|
void |
setLabels(PrometheusRuleKV[] Labels)
Set List of rule tags
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setReceivers(String[] Receivers)
Set List of alert recipient groups
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setRuleId(String RuleId)
Set Rule ID
|
void |
setRuleName(String RuleName)
Set Rule name
|
void |
setRuleState(Long RuleState)
Set Rule status code
|
void |
setType(String Type)
Set Rule category
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setUpdatedAt(String UpdatedAt)
Set Rule update time
Note: This field may return null, indicating that no valid values can be obtained.
|
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 - Rule IDpublic String getRuleName()
public void setRuleName(String RuleName)
RuleName - Rule namepublic Long getRuleState()
public void setRuleState(Long RuleState)
RuleState - Rule status codepublic String getType()
public void setType(String Type)
Type - Rule category
Note: This field may return null, indicating that no valid values can be obtained.public PrometheusRuleKV[] getLabels()
public void setLabels(PrometheusRuleKV[] Labels)
Labels - List of rule tags
Note: This field may return null, indicating that no valid values can be obtained.public PrometheusRuleKV[] getAnnotations()
public void setAnnotations(PrometheusRuleKV[] Annotations)
Annotations - List of rule annotations
Note: This field may return null, indicating that no valid values can be obtained.public String getExpr()
public void setExpr(String Expr)
Expr - Rule expression
Note: This field may return null, indicating that no valid values can be obtained.public String getDuration()
public void setDuration(String Duration)
Duration - Rule alert duration
Note: This field may return null, indicating that no valid values can be obtained.public String[] getReceivers()
public void setReceivers(String[] Receivers)
Receivers - List of alert recipient groups
Note: This field may return null, indicating that no valid values can be obtained.public String getHealth()
public void setHealth(String Health)
Health - Rule status. Valid values:
public String getCreatedAt()
public void setCreatedAt(String CreatedAt)
CreatedAt - Rule creation time
Note: This field may return null, indicating that no valid values can be obtained.public String getUpdatedAt()
public void setUpdatedAt(String UpdatedAt)
UpdatedAt - Rule update time
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.