public static final class ModifyHostAvailabilityRequest.AlertConfig.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyHostAvailabilityRequest.AlertConfig |
build() |
ModifyHostAvailabilityRequest.AlertConfig.Builder |
endTime(Integer endTime)
The end of the time range during which the alert rule is effective.
|
ModifyHostAvailabilityRequest.AlertConfig.Builder |
notifyType(Integer notifyType)
The alert notification methods.
|
ModifyHostAvailabilityRequest.AlertConfig.Builder |
silenceTime(Integer silenceTime)
The mute period during which new alerts are not sent even if the trigger conditions are met.
|
ModifyHostAvailabilityRequest.AlertConfig.Builder |
startTime(Integer startTime)
The beginning of the time range during which the alert rule is effective.
|
ModifyHostAvailabilityRequest.AlertConfig.Builder |
webHook(String webHook)
The callback URL.
|
public ModifyHostAvailabilityRequest.AlertConfig.Builder endTime(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.
example:Alert notifications are sent based on the specified threshold only if the alert rule is effective.
22
public ModifyHostAvailabilityRequest.AlertConfig.Builder notifyType(Integer notifyType)
The alert notification methods. Valid values:
0: Alert notifications are sent by using emails and DingTalk chatbots.
This parameter is required.
example:0
public ModifyHostAvailabilityRequest.AlertConfig.Builder silenceTime(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.
example:86400
public ModifyHostAvailabilityRequest.AlertConfig.Builder startTime(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.
example:Alert notifications are sent based on the specified threshold only if the alert rule is effective.
0
public ModifyHostAvailabilityRequest.AlertConfig.Builder webHook(String webHook)
The callback URL.
example:public ModifyHostAvailabilityRequest.AlertConfig build()
Copyright © 2026. All rights reserved.