Skip to content

SiteMonitorProps

Properties for defining a SiteMonitor.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cms-sitemonitor

Initializer

import com.aliyun.ros.cdk.cms.SiteMonitorProps;
SiteMonitorProps.builder()
    .address(java.lang.String)
    .address(IResolvable)
    .taskName(java.lang.String)
    .taskName(IResolvable)
    .taskType(java.lang.String)
    .taskType(IResolvable)
//  .alertIds(IResolvable)
//  .alertIds(java.util.List<java.lang.String)
//  .alertIds(IResolvable>)
//  .interval(java.lang.Number)
//  .interval(IResolvable)
//  .ispCities(IResolvable)
//  .ispCities(java.util.List<IResolvable)
//  .ispCities(IspCitiesProperty>)
//  .optionsJson(java.lang.String)
//  .optionsJson(IResolvable)
    .build();

Properties

Name Type Description
address java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property address: The URL or IP address monitored by the monitoring task.
taskName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property taskName: The name of the site monitoring task.
taskType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property taskType: The protocol used by the site monitoring task.
alertIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property alertIds:.
interval java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property interval: The interval at which detection requests are sent.
ispCities com.aliyun.ros.cdk.core.IResolvable OR java.util.ListIspCitiesProperty> Property ispCities: The information about detection points, which is specified in a JSON array.
optionsJson java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property optionsJson: The extended options of the protocol that is used by the site monitoring task.

addressRequired

public java.lang.Object getAddress();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property address: The URL or IP address monitored by the monitoring task.


taskNameRequired

public java.lang.Object getTaskName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property taskName: The name of the site monitoring task.

The name must be 4 to 100 characters in length. It can contain letters, digits, and underscores (_).


taskTypeRequired

public java.lang.Object getTaskType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property taskType: The protocol used by the site monitoring task.

Valid values: HTTP, HTTPS, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.


alertIdsOptional

public java.lang.Object getAlertIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property alertIds:.


intervalOptional

public java.lang.Object getInterval();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property interval: The interval at which detection requests are sent.

Valid values: 1, 5, and 15. Unit: minutes. Default value: 1.


ispCitiesOptional

public java.lang.Object getIspCities();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListIspCitiesProperty>

Property ispCities: The information about detection points, which is specified in a JSON array.

Example: [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]. The three city codes represent Beijing, Hangzhou, and Qingdao. Note You can call the DescribeSiteMonitorISPCityList API operation to query the detection points that can be used to create site monitoring tasks. For more information, see DescribeSiteMonitorISPCityList . If this parameter is not specified, the system randomly selects three detection points for site monitoring.


optionsJsonOptional

public java.lang.Object getOptionsJson();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property optionsJson: The extended options of the protocol that is used by the site monitoring task.

The options vary based on the protocol.