public static final class CreateInstantSiteMonitorRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateInstantSiteMonitorRequest.Builder |
address(String address)
The URL or IP address that you want to test.
|
CreateInstantSiteMonitorRequest.Builder |
agentGroup(String agentGroup)
AgentGroup.
|
CreateInstantSiteMonitorRequest |
build() |
CreateInstantSiteMonitorRequest.Builder |
ispCities(String ispCities)
The detection points.
|
CreateInstantSiteMonitorRequest.Builder |
optionsJson(String optionsJson)
The extended options of the protocol that is used by the instant test task.
|
CreateInstantSiteMonitorRequest.Builder |
randomIspCity(Integer randomIspCity)
The number of detection points.
|
CreateInstantSiteMonitorRequest.Builder |
taskName(String taskName)
The name of the instant test task.
|
CreateInstantSiteMonitorRequest.Builder |
taskType(String taskType)
The type of the instant test task.
|
public CreateInstantSiteMonitorRequest.Builder address(String address)
The URL or IP address that you want to test.
This parameter is required.
example:public CreateInstantSiteMonitorRequest.Builder agentGroup(String agentGroup)
public CreateInstantSiteMonitorRequest.Builder ispCities(String ispCities)
The detection points. If you leave this parameter empty, the system randomly selects three detection points.
The value is a JSON array. Example: {"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}. The values of the city field indicate Beijing, Hangzhou, and Qingdao.
For information about how to obtain detection points, see DescribeSiteMonitorISPCityList.
example:You must specify one of the
IspCitiesandRandomIspCityparameters.
[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]
public CreateInstantSiteMonitorRequest.Builder optionsJson(String optionsJson)
The extended options of the protocol that is used by the instant test task. The options vary based on the protocol.
example:{"time_out":5000}
public CreateInstantSiteMonitorRequest.Builder randomIspCity(Integer randomIspCity)
The number of detection points.
IspCities and RandomIspCity parameters. If you specify the RandomIspCity parameter, the IspCities parameter automatically becomes invalid.1
public CreateInstantSiteMonitorRequest.Builder taskName(String taskName)
The name of the instant test task.
The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_).
This parameter is required.
example:task1
public CreateInstantSiteMonitorRequest.Builder taskType(String taskType)
The type of the instant test task. Valid values: HTTP, PING, TCP, UDP, and DNS.
This parameter is required.
example:HTTP
public CreateInstantSiteMonitorRequest build()
Copyright © 2026. All rights reserved.