Class PrometheusAlertPolicyItem
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.monitor.v20180724.models.PrometheusAlertPolicyItem
-
public class PrometheusAlertPolicyItem extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClusterId()Get 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID 注意:此字段可能返回 null,表示取不到有效值。StringgetId()Get 告警策略 id 注意:此字段可能返回 null,表示取不到有效值。StringgetName()Get 策略名称PrometheusNotificationItemgetNotification()Get 告警渠道,模板中使用可能返回null 注意:此字段可能返回 null,表示取不到有效值。PrometheusAlertRule[]getRules()Get 规则列表StringgetTemplateId()Get 如果该告警来自模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。StringgetUpdatedAt()Get 最后修改时间 注意:此字段可能返回 null,表示取不到有效值。voidsetClusterId(String ClusterId)Set 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID 注意:此字段可能返回 null,表示取不到有效值。voidsetId(String Id)Set 告警策略 id 注意:此字段可能返回 null,表示取不到有效值。voidsetName(String Name)Set 策略名称voidsetNotification(PrometheusNotificationItem Notification)Set 告警渠道,模板中使用可能返回null 注意:此字段可能返回 null,表示取不到有效值。voidsetRules(PrometheusAlertRule[] Rules)Set 规则列表voidsetTemplateId(String TemplateId)Set 如果该告警来自模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。voidsetUpdatedAt(String UpdatedAt)Set 最后修改时间 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(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
-
PrometheusAlertPolicyItem
public PrometheusAlertPolicyItem()
-
PrometheusAlertPolicyItem
public 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.
-
-
Method Detail
-
getName
public String getName()
Get 策略名称- Returns:
- Name 策略名称
-
setName
public void setName(String Name)
Set 策略名称- Parameters:
Name- 策略名称
-
getRules
public PrometheusAlertRule[] getRules()
Get 规则列表- Returns:
- Rules 规则列表
-
setRules
public void setRules(PrometheusAlertRule[] Rules)
Set 规则列表- Parameters:
Rules- 规则列表
-
getId
public String getId()
Get 告警策略 id 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Id 告警策略 id 注意:此字段可能返回 null,表示取不到有效值。
-
setId
public void setId(String Id)
Set 告警策略 id 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Id- 告警策略 id 注意:此字段可能返回 null,表示取不到有效值。
-
getTemplateId
public String getTemplateId()
Get 如果该告警来自模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- TemplateId 如果该告警来自模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。
-
setTemplateId
public void setTemplateId(String TemplateId)
Set 如果该告警来自模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
TemplateId- 如果该告警来自模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。
-
getNotification
public PrometheusNotificationItem getNotification()
Get 告警渠道,模板中使用可能返回null 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Notification 告警渠道,模板中使用可能返回null 注意:此字段可能返回 null,表示取不到有效值。
-
setNotification
public void setNotification(PrometheusNotificationItem Notification)
Set 告警渠道,模板中使用可能返回null 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Notification- 告警渠道,模板中使用可能返回null 注意:此字段可能返回 null,表示取不到有效值。
-
getUpdatedAt
public String getUpdatedAt()
Get 最后修改时间 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- UpdatedAt 最后修改时间 注意:此字段可能返回 null,表示取不到有效值。
-
setUpdatedAt
public void setUpdatedAt(String UpdatedAt)
Set 最后修改时间 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
UpdatedAt- 最后修改时间 注意:此字段可能返回 null,表示取不到有效值。
-
getClusterId
public String getClusterId()
Get 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- ClusterId 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID 注意:此字段可能返回 null,表示取不到有效值。
-
setClusterId
public void setClusterId(String ClusterId)
Set 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
ClusterId- 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID 注意:此字段可能返回 null,表示取不到有效值。
-
-