Class PrometheusAlertRuleDetail
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tke.v20180525.models.PrometheusAlertRuleDetail
-
public class PrometheusAlertRuleDetail extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description PrometheusAlertRuleDetail()PrometheusAlertRuleDetail(PrometheusAlertRuleDetail 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 StringgetId()Get 告警 idStringgetInterval()Get 计算周期 注意:此字段可能返回 null,表示取不到有效值。StringgetName()Get 规则名称PrometheusNotificationgetNotification()Get 告警渠道PrometheusAlertRule[]getRules()Get 规则列表StringgetTemplateId()Get 如果该告警来至模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。StringgetUpdatedAt()Get 最后修改时间voidsetId(String Id)Set 告警 idvoidsetInterval(String Interval)Set 计算周期 注意:此字段可能返回 null,表示取不到有效值。voidsetName(String Name)Set 规则名称voidsetNotification(PrometheusNotification Notification)Set 告警渠道voidsetRules(PrometheusAlertRule[] Rules)Set 规则列表voidsetTemplateId(String TemplateId)Set 如果该告警来至模板下发,则TemplateId为模板id 注意:此字段可能返回 null,表示取不到有效值。voidsetUpdatedAt(String UpdatedAt)Set 最后修改时间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
-
PrometheusAlertRuleDetail
public PrometheusAlertRuleDetail()
-
PrometheusAlertRuleDetail
public PrometheusAlertRuleDetail(PrometheusAlertRuleDetail 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- 规则列表
-
getUpdatedAt
public String getUpdatedAt()
Get 最后修改时间- Returns:
- UpdatedAt 最后修改时间
-
setUpdatedAt
public void setUpdatedAt(String UpdatedAt)
Set 最后修改时间- Parameters:
UpdatedAt- 最后修改时间
-
getNotification
public PrometheusNotification getNotification()
Get 告警渠道- Returns:
- Notification 告警渠道
-
setNotification
public void setNotification(PrometheusNotification Notification)
Set 告警渠道- Parameters:
Notification- 告警渠道
-
getId
public String getId()
Get 告警 id- Returns:
- Id 告警 id
-
setId
public void setId(String Id)
Set 告警 id- Parameters:
Id- 告警 id
-
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,表示取不到有效值。
-
getInterval
public String getInterval()
Get 计算周期 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Interval 计算周期 注意:此字段可能返回 null,表示取不到有效值。
-
setInterval
public void setInterval(String Interval)
Set 计算周期 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Interval- 计算周期 注意:此字段可能返回 null,表示取不到有效值。
-
-