Class PrometheusNotificationItem
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tke.v20180525.models.PrometheusNotificationItem
-
public class PrometheusNotificationItem extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description PrometheusNotificationItem()PrometheusNotificationItem(PrometheusNotificationItem 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 PrometheusAlertManagerConfiggetAlertManager()Get 如果Type为alertmanager, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。BooleangetEnabled()Get 是否启用String[]getNotifyWay()Get 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。 注意:此字段可能返回 null,表示取不到有效值。BooleangetPhoneArriveNotice()Get 电话告警触达通知 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。LonggetPhoneCircleInterval()Get 电话告警轮外间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。LonggetPhoneCircleTimes()Get 电话告警次数。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。LonggetPhoneInnerInterval()Get 电话告警轮内间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。Long[]getPhoneNotifyOrder()Get 电话告警顺序。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。String[]getReceiverGroups()Get 告警接收组(用户组) 注意:此字段可能返回 null,表示取不到有效值。StringgetRepeatInterval()Get 收敛时间StringgetTimeRangeEnd()Get 生效结束时间StringgetTimeRangeStart()Get 生效起始时间StringgetType()Get 通道类型,默认为amp,支持以下 amp webhook alertmanagerStringgetWebHook()Get 如果Type为webhook, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。voidsetAlertManager(PrometheusAlertManagerConfig AlertManager)Set 如果Type为alertmanager, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。voidsetEnabled(Boolean Enabled)Set 是否启用voidsetNotifyWay(String[] NotifyWay)Set 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。 注意:此字段可能返回 null,表示取不到有效值。voidsetPhoneArriveNotice(Boolean PhoneArriveNotice)Set 电话告警触达通知 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。voidsetPhoneCircleInterval(Long PhoneCircleInterval)Set 电话告警轮外间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。voidsetPhoneCircleTimes(Long PhoneCircleTimes)Set 电话告警次数。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。voidsetPhoneInnerInterval(Long PhoneInnerInterval)Set 电话告警轮内间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。voidsetPhoneNotifyOrder(Long[] PhoneNotifyOrder)Set 电话告警顺序。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。voidsetReceiverGroups(String[] ReceiverGroups)Set 告警接收组(用户组) 注意:此字段可能返回 null,表示取不到有效值。voidsetRepeatInterval(String RepeatInterval)Set 收敛时间voidsetTimeRangeEnd(String TimeRangeEnd)Set 生效结束时间voidsetTimeRangeStart(String TimeRangeStart)Set 生效起始时间voidsetType(String Type)Set 通道类型,默认为amp,支持以下 amp webhook alertmanagervoidsetWebHook(String WebHook)Set 如果Type为webhook, 则该字段为必填项 注意:此字段可能返回 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
-
PrometheusNotificationItem
public PrometheusNotificationItem()
-
PrometheusNotificationItem
public PrometheusNotificationItem(PrometheusNotificationItem 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
-
getEnabled
public Boolean getEnabled()
Get 是否启用- Returns:
- Enabled 是否启用
-
setEnabled
public void setEnabled(Boolean Enabled)
Set 是否启用- Parameters:
Enabled- 是否启用
-
getType
public String getType()
Get 通道类型,默认为amp,支持以下 amp webhook alertmanager- Returns:
- Type 通道类型,默认为amp,支持以下 amp webhook alertmanager
-
setType
public void setType(String Type)
Set 通道类型,默认为amp,支持以下 amp webhook alertmanager- Parameters:
Type- 通道类型,默认为amp,支持以下 amp webhook alertmanager
-
getWebHook
public String getWebHook()
Get 如果Type为webhook, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- WebHook 如果Type为webhook, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。
-
setWebHook
public void setWebHook(String WebHook)
Set 如果Type为webhook, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
WebHook- 如果Type为webhook, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。
-
getAlertManager
public PrometheusAlertManagerConfig getAlertManager()
Get 如果Type为alertmanager, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- AlertManager 如果Type为alertmanager, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。
-
setAlertManager
public void setAlertManager(PrometheusAlertManagerConfig AlertManager)
Set 如果Type为alertmanager, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
AlertManager- 如果Type为alertmanager, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。
-
getRepeatInterval
public String getRepeatInterval()
Get 收敛时间- Returns:
- RepeatInterval 收敛时间
-
setRepeatInterval
public void setRepeatInterval(String RepeatInterval)
Set 收敛时间- Parameters:
RepeatInterval- 收敛时间
-
getTimeRangeStart
public String getTimeRangeStart()
Get 生效起始时间- Returns:
- TimeRangeStart 生效起始时间
-
setTimeRangeStart
public void setTimeRangeStart(String TimeRangeStart)
Set 生效起始时间- Parameters:
TimeRangeStart- 生效起始时间
-
getTimeRangeEnd
public String getTimeRangeEnd()
Get 生效结束时间- Returns:
- TimeRangeEnd 生效结束时间
-
setTimeRangeEnd
public void setTimeRangeEnd(String TimeRangeEnd)
Set 生效结束时间- Parameters:
TimeRangeEnd- 生效结束时间
-
getNotifyWay
public String[] getNotifyWay()
Get 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- NotifyWay 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。 注意:此字段可能返回 null,表示取不到有效值。
-
setNotifyWay
public void setNotifyWay(String[] NotifyWay)
Set 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
NotifyWay- 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。 注意:此字段可能返回 null,表示取不到有效值。
-
getReceiverGroups
public String[] getReceiverGroups()
Get 告警接收组(用户组) 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- ReceiverGroups 告警接收组(用户组) 注意:此字段可能返回 null,表示取不到有效值。
-
setReceiverGroups
public void setReceiverGroups(String[] ReceiverGroups)
Set 告警接收组(用户组) 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
ReceiverGroups- 告警接收组(用户组) 注意:此字段可能返回 null,表示取不到有效值。
-
getPhoneNotifyOrder
public Long[] getPhoneNotifyOrder()
Get 电话告警顺序。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- PhoneNotifyOrder 电话告警顺序。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。
-
setPhoneNotifyOrder
public void setPhoneNotifyOrder(Long[] PhoneNotifyOrder)
Set 电话告警顺序。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
PhoneNotifyOrder- 电话告警顺序。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。
-
getPhoneCircleTimes
public Long getPhoneCircleTimes()
Get 电话告警次数。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- PhoneCircleTimes 电话告警次数。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。
-
setPhoneCircleTimes
public void setPhoneCircleTimes(Long PhoneCircleTimes)
Set 电话告警次数。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
PhoneCircleTimes- 电话告警次数。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。
-
getPhoneInnerInterval
public Long getPhoneInnerInterval()
Get 电话告警轮内间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- PhoneInnerInterval 电话告警轮内间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。
-
setPhoneInnerInterval
public void setPhoneInnerInterval(Long PhoneInnerInterval)
Set 电话告警轮内间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
PhoneInnerInterval- 电话告警轮内间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。
-
getPhoneCircleInterval
public Long getPhoneCircleInterval()
Get 电话告警轮外间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- PhoneCircleInterval 电话告警轮外间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。
-
setPhoneCircleInterval
public void setPhoneCircleInterval(Long PhoneCircleInterval)
Set 电话告警轮外间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
PhoneCircleInterval- 电话告警轮外间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。
-
getPhoneArriveNotice
public Boolean getPhoneArriveNotice()
Get 电话告警触达通知 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- PhoneArriveNotice 电话告警触达通知 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。
-
setPhoneArriveNotice
public void setPhoneArriveNotice(Boolean PhoneArriveNotice)
Set 电话告警触达通知 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
PhoneArriveNotice- 电话告警触达通知 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。
-
-