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 monitoring task. |
taskType | string | @alicloud/ros-cdk-core.IResolvable | Property taskType: The type of 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 monitoring frequency in minutes. |
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 monitoring task.
The name must be 4 to 100 characters long and can contain letters, digits, underscores (_), and Chinese characters.
taskTypeRequired
public readonly taskType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property taskType: The type of monitoring task.
Valid protocols include HTTP(S), PING, TCP, UDP, DNS, SMTP, POP3, FTP, and WEBSOCKET.
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 monitoring frequency in minutes.
Valid values: 1, 5, 15, 30, and 60. Default: 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.