public class PrometheusAlertPolicyItem extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| PrometheusAlertPolicyItem() | 
| PrometheusAlertPolicyItem(PrometheusAlertPolicyItem 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 | 
|---|---|
| String | getClusterId()Get 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getId()Get 告警策略 id
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getName()Get 策略名称 | 
| PrometheusNotificationItem | getNotification()Get 告警渠道,模板中使用可能返回null
注意:此字段可能返回 null,表示取不到有效值。 | 
| PrometheusAlertRule[] | getRules()Get 规则列表 | 
| String | getTemplateId()Get 如果该告警来自模板下发,则TemplateId为模板id
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getUpdatedAt()Get 最后修改时间
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setClusterId(String ClusterId)Set 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setId(String Id)Set 告警策略 id
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setName(String Name)Set 策略名称 | 
| void | setNotification(PrometheusNotificationItem Notification)Set 告警渠道,模板中使用可能返回null
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setRules(PrometheusAlertRule[] Rules)Set 规则列表 | 
| void | setTemplateId(String TemplateId)Set 如果该告警来自模板下发,则TemplateId为模板id
注意:此字段可能返回 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 PrometheusAlertPolicyItem()
public PrometheusAlertPolicyItem(PrometheusAlertPolicyItem source)
public String getName()
public void setName(String Name)
Name - 策略名称public PrometheusAlertRule[] getRules()
public void setRules(PrometheusAlertRule[] Rules)
Rules - 规则列表public String getId()
public void setId(String Id)
Id - 告警策略 id
注意:此字段可能返回 null,表示取不到有效值。public String getTemplateId()
public void setTemplateId(String TemplateId)
TemplateId - 如果该告警来自模板下发,则TemplateId为模板id
注意:此字段可能返回 null,表示取不到有效值。public PrometheusNotificationItem getNotification()
public void setNotification(PrometheusNotificationItem Notification)
Notification - 告警渠道,模板中使用可能返回null
注意:此字段可能返回 null,表示取不到有效值。public String getUpdatedAt()
public void setUpdatedAt(String UpdatedAt)
UpdatedAt - 最后修改时间
注意:此字段可能返回 null,表示取不到有效值。public String getClusterId()
public void setClusterId(String ClusterId)
ClusterId - 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.