Skip to content

SiteMonitorProps

Properties for defining a SiteMonitor.

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

Initializer

import { SiteMonitorProps } from '@alicloud/ros-cdk-cms'
const siteMonitorProps: SiteMonitorProps = { ... }

Properties

Name Type Description
address string | @alicloud/ros-cdk-core.IResolvable Property address: The URL or IP address monitored by the monitoring task.
taskName string | @alicloud/ros-cdk-core.IResolvable Property taskName: The name of the site monitoring task.
taskType string | @alicloud/ros-cdk-core.IResolvable Property taskType: The protocol used by the site monitoring task.
alertIds @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property alertIds:.
interval number | @alicloud/ros-cdk-core.IResolvable Property interval: The interval at which detection requests are sent.
ispCities @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | IspCitiesProperty[] Property ispCities: The information about detection points, which is specified in a JSON array.
optionsJson string | @alicloud/ros-cdk-core.IResolvable Property optionsJson: The extended options of the protocol that is used by the site monitoring task.

addressRequired

public readonly address: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


taskNameRequired

public readonly taskName: string | IResolvable;
  • Type: string | @alicloud/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 readonly taskType: string | IResolvable;
  • Type: string | @alicloud/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 readonly alertIds: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property alertIds:.


intervalOptional

public readonly interval: number | IResolvable;
  • Type: number | @alicloud/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 readonly ispCities: IResolvable | IResolvable | IspCitiesProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | IspCitiesProperty[]

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 readonly optionsJson: string | IResolvable;
  • Type: string | @alicloud/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.