public static final class CreateSiteMonitorRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateSiteMonitorRequest.Builder |
address(String address)
The URL or IP address that is monitored by the task.
|
CreateSiteMonitorRequest.Builder |
agentGroup(String agentGroup)
AgentGroup.
|
CreateSiteMonitorRequest.Builder |
alertIds(String alertIds)
The ID of the alert rule.
|
CreateSiteMonitorRequest |
build() |
CreateSiteMonitorRequest.Builder |
customSchedule(String customSchedule)
The custom detection period.
|
CreateSiteMonitorRequest.Builder |
interval(String interval)
The interval at which detection requests are sent.
|
CreateSiteMonitorRequest.Builder |
ispCities(String ispCities)
The information of the detection points.
|
CreateSiteMonitorRequest.Builder |
optionsJson(String optionsJson)
The extended options of the protocol that is used by the site monitoring task.
|
CreateSiteMonitorRequest.Builder |
taskName(String taskName)
The name of the site monitoring task.
|
CreateSiteMonitorRequest.Builder |
taskType(String taskType)
The protocol that is used by the site monitoring task.
|
CreateSiteMonitorRequest.Builder |
vpcConfig(String vpcConfig)
VpcConfig.
|
public CreateSiteMonitorRequest.Builder address(String address)
The URL or IP address that is monitored by the task.
This parameter is required.
example:public CreateSiteMonitorRequest.Builder agentGroup(String agentGroup)
public CreateSiteMonitorRequest.Builder alertIds(String alertIds)
The ID of the alert rule.
For more information about how to obtain the ID of an alert rule, see DescribeMetricRuleList.
example:SystemDefault_acs_ecs_dashboard_InternetOutRate_Percent
public CreateSiteMonitorRequest.Builder customSchedule(String customSchedule)
The custom detection period. You can only select a time period from Monday to Sunday for detection.
example:{"start_hour":0,"end_hour":24, "days":[0], "time_zone":"Local"}
public CreateSiteMonitorRequest.Builder interval(String interval)
The interval at which detection requests are sent.
Valid values: 1, 5, 15, 30, and 60. Unit: minutes.
Default value: 1.
example:1
public CreateSiteMonitorRequest.Builder ispCities(String ispCities)
The information of 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:[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]
public CreateSiteMonitorRequest.Builder optionsJson(String optionsJson)
The extended options of the protocol that is used by the site monitoring task. The options vary based on the protocol.
example:{"time_out":5000}
public CreateSiteMonitorRequest.Builder taskName(String taskName)
The name of the site monitoring task.
The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_).
This parameter is required.
example:HanZhou_ECS1
public CreateSiteMonitorRequest.Builder taskType(String taskType)
The protocol that is used by the site monitoring task.
Valid values: HTTP, HTTPS, PING, TCP, UDP, DNS, SMTP, POP3, FTP, and WEBSOCKET.
This parameter is required.
example:HTTPS
public CreateSiteMonitorRequest.Builder vpcConfig(String vpcConfig)
public CreateSiteMonitorRequest build()
Copyright © 2026. All rights reserved.