public static final class ModifyHostAvailabilityRequest.AlertConfig.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
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.
public ModifyHostAvailabilityRequest.AlertConfig.Builder notifyType(Integer notifyType)
0: Alert notifications are sent by using emails and DingTalk chatbots.
public ModifyHostAvailabilityRequest.AlertConfig.Builder silenceTime(Integer silenceTime)
public ModifyHostAvailabilityRequest.AlertConfig.Builder startTime(Integer startTime)
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.
public ModifyHostAvailabilityRequest.AlertConfig.Builder webHook(String webHook)
public ModifyHostAvailabilityRequest.AlertConfig build()
Copyright © 2024. All rights reserved.