Class PrometheusNotificationItem
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.monitor.v20180724.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 PrometheusAlertManagerConfig
getAlertManager()
Get 如果Type为alertmanager, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。Boolean
getEnabled()
Get 是否启用String[]
getNotifyWay()
Get 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。 注意:此字段可能返回 null,表示取不到有效值。Boolean
getPhoneArriveNotice()
Get 电话告警触达通知 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。Long
getPhoneCircleInterval()
Get 电话告警轮外间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。Long
getPhoneCircleTimes()
Get 电话告警次数。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。Long
getPhoneInnerInterval()
Get 电话告警轮内间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。Long[]
getPhoneNotifyOrder()
Get 电话告警顺序。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。String[]
getReceiverGroups()
Get 告警接收组(用户组) 注意:此字段可能返回 null,表示取不到有效值。String
getRepeatInterval()
Get 收敛时间String
getTimeRangeEnd()
Get 生效结束时间String
getTimeRangeStart()
Get 生效起始时间String
getType()
Get 通道类型,默认为amp,支持以下 amp webhook alertmanagerString
getWebHook()
Get 如果Type为webhook, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。void
setAlertManager(PrometheusAlertManagerConfig AlertManager)
Set 如果Type为alertmanager, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。void
setEnabled(Boolean Enabled)
Set 是否启用void
setNotifyWay(String[] NotifyWay)
Set 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。 注意:此字段可能返回 null,表示取不到有效值。void
setPhoneArriveNotice(Boolean PhoneArriveNotice)
Set 电话告警触达通知 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。void
setPhoneCircleInterval(Long PhoneCircleInterval)
Set 电话告警轮外间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。void
setPhoneCircleTimes(Long PhoneCircleTimes)
Set 电话告警次数。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。void
setPhoneInnerInterval(Long PhoneInnerInterval)
Set 电话告警轮内间隔。单位:秒 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。void
setPhoneNotifyOrder(Long[] PhoneNotifyOrder)
Set 电话告警顺序。 注:NotifyWay选择CALL,采用该参数。 注意:此字段可能返回 null,表示取不到有效值。void
setReceiverGroups(String[] ReceiverGroups)
Set 告警接收组(用户组) 注意:此字段可能返回 null,表示取不到有效值。void
setRepeatInterval(String RepeatInterval)
Set 收敛时间void
setTimeRangeEnd(String TimeRangeEnd)
Set 生效结束时间void
setTimeRangeStart(String TimeRangeStart)
Set 生效起始时间void
setType(String Type)
Set 通道类型,默认为amp,支持以下 amp webhook alertmanagervoid
setWebHook(String WebHook)
Set 如果Type为webhook, 则该字段为必填项 注意:此字段可能返回 null,表示取不到有效值。void
toMap(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,表示取不到有效值。
-
-