Skip to content

SiteMonitorProps

Properties for defining a SiteMonitor.

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

Initializer

import ros_cdk_cms
ros_cdk_cms.SiteMonitorProps(
  address: typing.Union[str, IResolvable],
  task_name: typing.Union[str, IResolvable],
  task_type: typing.Union[str, IResolvable],
  alert_ids: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  interval: typing.Union[typing.Union[int, float], IResolvable] = None,
  isp_cities: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, IspCitiesProperty]]] = None,
  options_json: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
address typing.Union[str, ros_cdk_core.IResolvable] Property address: The URL or IP address monitored by the monitoring task.
task_name typing.Union[str, ros_cdk_core.IResolvable] Property taskName: The name of the site monitoring task.
task_type typing.Union[str, ros_cdk_core.IResolvable] Property taskType: The protocol used by the site monitoring task.
alert_ids typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property alertIds:.
interval typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property interval: The interval at which detection requests are sent.
isp_cities typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, IspCitiesProperty]]] Property ispCities: The information about detection points, which is specified in a JSON array.
options_json typing.Union[str, ros_cdk_core.IResolvable] Property optionsJson: The extended options of the protocol that is used by the site monitoring task.

addressRequired

address: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


task_nameRequired

task_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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 (_).


task_typeRequired

task_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


alert_idsOptional

alert_ids: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property alertIds:.


intervalOptional

interval: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.


isp_citiesOptional

isp_cities: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, IspCitiesProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[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.


options_jsonOptional

options_json: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.