public static class ModifyHostAvailabilityRequest.ModifyHostAvailabilityRequestAlertConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Integer |
endTime
The end of the time range during which the alert rule is effective.
|
Integer |
notifyType
The alert notification methods.
|
Integer |
silenceTime
The mute period during which new alerts are not sent even if the trigger conditions are met.
|
Integer |
startTime
The beginning of the time range during which the alert rule is effective.
|
String |
webHook
The callback URL.
|
| 构造器和说明 |
|---|
ModifyHostAvailabilityRequestAlertConfig() |
@NameInMap(value="EndTime") public Integer endTime
The end of the time range during which the alert rule is effective. Valid values: 0 to 23.
For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00.
> Alert notifications are sent based on the specified threshold only if the alert rule is effective.
@NameInMap(value="NotifyType") public Integer notifyType
The alert notification methods. Valid values:
0: Alert notifications are sent by using emails and DingTalk chatbots.
@NameInMap(value="SilenceTime") public Integer silenceTime
The mute period during which new alerts are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400. The default value indicates one day.
@NameInMap(value="StartTime") public Integer startTime
The beginning of the time range during which the alert rule is effective. Valid values: 0 to 23.
For example, if the `AlertConfig.StartTime` parameter is set to 0 and the `AlertConfig.EndTime` parameter is set to 22, the alert rule is effective from 00:00:00 to 22:00:00.
> Alert notifications are sent based on the specified threshold only if the alert rule is effective.
@NameInMap(value="WebHook") public String webHook
The callback URL.
public static ModifyHostAvailabilityRequest.ModifyHostAvailabilityRequestAlertConfig build(Map<String,?> map) throws Exception
Exceptionpublic ModifyHostAvailabilityRequest.ModifyHostAvailabilityRequestAlertConfig setEndTime(Integer endTime)
public Integer getEndTime()
public ModifyHostAvailabilityRequest.ModifyHostAvailabilityRequestAlertConfig setNotifyType(Integer notifyType)
public Integer getNotifyType()
public ModifyHostAvailabilityRequest.ModifyHostAvailabilityRequestAlertConfig setSilenceTime(Integer silenceTime)
public Integer getSilenceTime()
public ModifyHostAvailabilityRequest.ModifyHostAvailabilityRequestAlertConfig setStartTime(Integer startTime)
public Integer getStartTime()
public ModifyHostAvailabilityRequest.ModifyHostAvailabilityRequestAlertConfig setWebHook(String webHook)
public String getWebHook()
Copyright © 2024. All rights reserved.