public static final class ModifyHostAvailabilityRequest.TaskOption.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
public ModifyHostAvailabilityRequest.TaskOption.Builder httpHeader(String httpHeader)
params1:value1 params2:value2
public ModifyHostAvailabilityRequest.TaskOption.Builder httpMethod(String httpMethod)
* GET * POST * HEAD > This parameter must be specified when TaskType is set to HTTP. For more information about how to configure the TaskType parameter, see [CreateHostAvailability](~~115317~~).
public ModifyHostAvailabilityRequest.TaskOption.Builder httpNegative(Boolean httpNegative)
* true: If the HTTP response body includes the alert rule, an alert is triggered. * false: If the HTTP response does not include the alert rule, an alert is triggered. > This parameter must be specified when TaskType is set to HTTP. For more information about how to configure the TaskType parameter, see [CreateHostAvailability](~~115317~~).
public ModifyHostAvailabilityRequest.TaskOption.Builder httpPostContent(String httpPostContent)
public ModifyHostAvailabilityRequest.TaskOption.Builder httpResponseCharset(String httpResponseCharset)
> Only UTF-8 is supported.
public ModifyHostAvailabilityRequest.TaskOption.Builder httpResponseMatchContent(String httpResponseMatchContent)
public ModifyHostAvailabilityRequest.TaskOption.Builder httpURI(String httpURI)
public ModifyHostAvailabilityRequest.TaskOption.Builder interval(Integer interval)
> This parameter is available only for the CloudMonitor agent V3.5.1 or later.
public ModifyHostAvailabilityRequest.TaskOption.Builder telnetOrPingHost(String telnetOrPingHost)
> This parameter must be specified when TaskType is set to PING or TELNET. For more information about how to configure the TaskType parameter, see [CreateHostAvailability](~~115317~~).
public ModifyHostAvailabilityRequest.TaskOption build()
Copyright © 2024. All rights reserved.