public class PrometheusNotificationItem extends AbstractModel
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
PrometheusAlertManagerConfig |
getAlertManager()
Get If `Type` is `alertmanager`, this field is required.
|
Boolean |
getEnabled()
Get Whether it is enabled
|
String[] |
getNotifyWay()
Get Alert notification channel.
|
Boolean |
getPhoneArriveNotice()
Get Alert call receipt notification
Note: If `NotifyWay` is `CALL`, this parameter will be used.
|
Long |
getPhoneCircleInterval()
Get Alert call cycle interval in seconds.
|
Long |
getPhoneCircleTimes()
Get Number of alert calls.
|
Long |
getPhoneInnerInterval()
Get Alert call interval within a cycle in seconds.
|
Long[] |
getPhoneNotifyOrder()
Get Alert call sequence.
|
String[] |
getReceiverGroups()
Get Alert recipient group (user group)
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getRepeatInterval()
Get Convergence time
|
String |
getTimeRangeEnd()
Get Effect end time
|
String |
getTimeRangeStart()
Get Effect start time
|
String |
getType()
Get Channel type.
|
String |
getWebHook()
Get If `Type` is `webhook`, this field is required.
|
void |
setAlertManager(PrometheusAlertManagerConfig AlertManager)
Set If `Type` is `alertmanager`, this field is required.
|
void |
setEnabled(Boolean Enabled)
Set Whether it is enabled
|
void |
setNotifyWay(String[] NotifyWay)
Set Alert notification channel.
|
void |
setPhoneArriveNotice(Boolean PhoneArriveNotice)
Set Alert call receipt notification
Note: If `NotifyWay` is `CALL`, this parameter will be used.
|
void |
setPhoneCircleInterval(Long PhoneCircleInterval)
Set Alert call cycle interval in seconds.
|
void |
setPhoneCircleTimes(Long PhoneCircleTimes)
Set Number of alert calls.
|
void |
setPhoneInnerInterval(Long PhoneInnerInterval)
Set Alert call interval within a cycle in seconds.
|
void |
setPhoneNotifyOrder(Long[] PhoneNotifyOrder)
Set Alert call sequence.
|
void |
setReceiverGroups(String[] ReceiverGroups)
Set Alert recipient group (user group)
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setRepeatInterval(String RepeatInterval)
Set Convergence time
|
void |
setTimeRangeEnd(String TimeRangeEnd)
Set Effect end time
|
void |
setTimeRangeStart(String TimeRangeStart)
Set Effect start time
|
void |
setType(String Type)
Set Channel type.
|
void |
setWebHook(String WebHook)
Set If `Type` is `webhook`, this field is required.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public PrometheusNotificationItem()
public PrometheusNotificationItem(PrometheusNotificationItem source)
public Boolean getEnabled()
public void setEnabled(Boolean Enabled)
Enabled
- Whether it is enabledpublic String getType()
public void setType(String Type)
Type
- Channel type. Default value: `amp`. Valid values:
`amp`
`webhook`
`alertmanager`public String getWebHook()
public void setWebHook(String WebHook)
WebHook
- If `Type` is `webhook`, this field is required.
Note: This field may return null, indicating that no valid values can be obtained.public PrometheusAlertManagerConfig getAlertManager()
public void setAlertManager(PrometheusAlertManagerConfig AlertManager)
AlertManager
- If `Type` is `alertmanager`, this field is required.
Note: This field may return null, indicating that no valid values can be obtained.public String getRepeatInterval()
public void setRepeatInterval(String RepeatInterval)
RepeatInterval
- Convergence timepublic String getTimeRangeStart()
public void setTimeRangeStart(String TimeRangeStart)
TimeRangeStart
- Effect start timepublic String getTimeRangeEnd()
public void setTimeRangeEnd(String TimeRangeEnd)
TimeRangeEnd
- Effect end timepublic String[] getNotifyWay()
public void setNotifyWay(String[] NotifyWay)
NotifyWay
- Alert notification channel. Valid values: `SMS`, `EMAIL`, `CALL`, `WECHAT`.
Note: This field may return null, indicating that no valid values can be obtained.public String[] getReceiverGroups()
public void setReceiverGroups(String[] ReceiverGroups)
ReceiverGroups
- Alert recipient group (user group)
Note: This field may return null, indicating that no valid values can be obtained.public Long[] getPhoneNotifyOrder()
public void setPhoneNotifyOrder(Long[] PhoneNotifyOrder)
PhoneNotifyOrder
- Alert call sequence.
Note: If `NotifyWay` is `CALL`, this parameter will be used.
Note: This field may return null, indicating that no valid values can be obtained.public Long getPhoneCircleTimes()
public void setPhoneCircleTimes(Long PhoneCircleTimes)
PhoneCircleTimes
- Number of alert calls.
Note: If `NotifyWay` is `CALL`, this parameter will be used.
Note: This field may return null, indicating that no valid values can be obtained.public Long getPhoneInnerInterval()
public void setPhoneInnerInterval(Long PhoneInnerInterval)
PhoneInnerInterval
- Alert call interval within a cycle in seconds.
Note: If `NotifyWay` is `CALL`, this parameter will be used.
Note: This field may return null, indicating that no valid values can be obtained.public Long getPhoneCircleInterval()
public void setPhoneCircleInterval(Long PhoneCircleInterval)
PhoneCircleInterval
- Alert call cycle interval in seconds.
Note: If `NotifyWay` is `CALL`, this parameter will be used.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getPhoneArriveNotice()
public void setPhoneArriveNotice(Boolean PhoneArriveNotice)
PhoneArriveNotice
- Alert call receipt notification
Note: If `NotifyWay` is `CALL`, this parameter will be used.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.