public class CreateSiteMonitorRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
address
The URL or IP address that is monitored by the task.
|
String |
alertIds
The ID of the alert rule.
|
String |
customSchedule
The custom detection period.
|
String |
interval
The interval at which detection requests are sent.
|
String |
ispCities
The information of the detection points.
|
String |
optionsJson
The extended options of the protocol that is used by the site monitoring task.
|
String |
regionId |
String |
taskName
The name of the site monitoring task.
|
String |
taskType
The type of the site monitoring task.
|
| 构造器和说明 |
|---|
CreateSiteMonitorRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateSiteMonitorRequest |
build(Map<String,?> map) |
String |
getAddress() |
String |
getAlertIds() |
String |
getCustomSchedule() |
String |
getInterval() |
String |
getIspCities() |
String |
getOptionsJson() |
String |
getRegionId() |
String |
getTaskName() |
String |
getTaskType() |
CreateSiteMonitorRequest |
setAddress(String address) |
CreateSiteMonitorRequest |
setAlertIds(String alertIds) |
CreateSiteMonitorRequest |
setCustomSchedule(String customSchedule) |
CreateSiteMonitorRequest |
setInterval(String interval) |
CreateSiteMonitorRequest |
setIspCities(String ispCities) |
CreateSiteMonitorRequest |
setOptionsJson(String optionsJson) |
CreateSiteMonitorRequest |
setRegionId(String regionId) |
CreateSiteMonitorRequest |
setTaskName(String taskName) |
CreateSiteMonitorRequest |
setTaskType(String taskType) |
@NameInMap(value="Address") public String address
The URL or IP address that is monitored by the task.
@NameInMap(value="AlertIds") public String alertIds
The ID of the alert rule.
For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).
@NameInMap(value="CustomSchedule") public String customSchedule
The custom detection period. You can only select a time period from Monday to Sunday for detection.
@NameInMap(value="Interval") public String interval
The interval at which detection requests are sent.
Valid values: 1, 5, 15, 30, and 60. Unit: minutes.
Default value: 1.
@NameInMap(value="IspCities") public 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](~~115045~~).
@NameInMap(value="OptionsJson") public String optionsJson
The extended options of the protocol that is used by the site monitoring task. The options vary based on the protocol.
@NameInMap(value="RegionId") public String regionId
@NameInMap(value="TaskName") public 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 (\_).
@NameInMap(value="TaskType") public String taskType
The type of the site monitoring task.
Valid values: HTTP, HTTPS, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
public static CreateSiteMonitorRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateSiteMonitorRequest setAddress(String address)
public String getAddress()
public CreateSiteMonitorRequest setAlertIds(String alertIds)
public String getAlertIds()
public CreateSiteMonitorRequest setCustomSchedule(String customSchedule)
public String getCustomSchedule()
public CreateSiteMonitorRequest setInterval(String interval)
public String getInterval()
public CreateSiteMonitorRequest setIspCities(String ispCities)
public String getIspCities()
public CreateSiteMonitorRequest setOptionsJson(String optionsJson)
public String getOptionsJson()
public CreateSiteMonitorRequest setRegionId(String regionId)
public String getRegionId()
public CreateSiteMonitorRequest setTaskName(String taskName)
public String getTaskName()
public CreateSiteMonitorRequest setTaskType(String taskType)
public String getTaskType()
Copyright © 2024. All rights reserved.