public static final class ModifySiteMonitorRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifySiteMonitorRequest.Builder |
address(String address)
The URL or IP address that is monitored by the task.
|
ModifySiteMonitorRequest.Builder |
alertIds(String alertIds)
The ID of the alert rule.
|
ModifySiteMonitorRequest |
build() |
ModifySiteMonitorRequest.Builder |
customSchedule(String customSchedule)
The custom detection period.
|
ModifySiteMonitorRequest.Builder |
interval(String interval)
The interval at which detection requests are sent.
|
ModifySiteMonitorRequest.Builder |
intervalUnit(String intervalUnit)
The unit of the metric.
|
ModifySiteMonitorRequest.Builder |
ispCities(String ispCities)
The information of the detection points.
|
ModifySiteMonitorRequest.Builder |
optionsJson(String optionsJson)
The extended options of the protocol that is used by the site monitoring task.
|
ModifySiteMonitorRequest.Builder |
taskId(String taskId)
The ID of the site monitoring task.
|
ModifySiteMonitorRequest.Builder |
taskName(String taskName)
The name of the site monitoring task.
|
public ModifySiteMonitorRequest.Builder address(String address)
The URL or IP address that is monitored by the task.
example:public ModifySiteMonitorRequest.Builder alertIds(String alertIds)
The ID of the alert rule. You can call the DescribeMetricRuleList operation to query the IDs of existing alert rules in CloudMonitor. For more information, see DescribeMetricRuleList.
example:49f7c317-7645-4cc9-94fd-ea42e122****
public ModifySiteMonitorRequest.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 ModifySiteMonitorRequest.Builder interval(String interval)
The interval at which detection requests are sent. Valid values: 1, 5, and 15. Unit: minutes. Default value: 1.
example:1
public ModifySiteMonitorRequest.Builder intervalUnit(String intervalUnit)
The unit of the metric.
Unit: milliseconds.
example:ms
public ModifySiteMonitorRequest.Builder ispCities(String ispCities)
The information of the 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.
example:You can call the DescribeSiteMonitorISPCityList operation to query the detection points. For more information, see DescribeSiteMonitorISPCityList. If you leave this parameter empty, the system randomly selects three detection points.
[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]
public ModifySiteMonitorRequest.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 ModifySiteMonitorRequest.Builder taskId(String taskId)
The ID of the site monitoring task.
This parameter is required.
example:2c8dbdf9-a3ab-46a1-85a4-f094965e****
public ModifySiteMonitorRequest.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 (_).
example:HanZhou_ECS2
public ModifySiteMonitorRequest build()
Copyright © 2026. All rights reserved.