-
Notifications
You must be signed in to change notification settings - Fork 35
/
site-monitor.yml
74 lines (74 loc) · 2.53 KB
/
site-monitor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建CMS站点监控任务,支持HTTP、HTTPS、PING等协议,自定义监控频率、目标地址及告警配置,可选多个检测点。
en: Create CMS site monitoring tasks, supporting protocols including HTTP, HTTPS,
and PING, with customizable monitoring frequency, target addresses, and alert
configurations. Optional selection of multiple detection points is available.
Parameters:
Address:
Type: String
Description: The URL or IP address monitored by the monitoring task.
Default: abc.com
TaskName:
Type: String
Description: |-
The name of the site monitoring task. The name must be 4 to 100 characters in length.
It can contain letters, digits, and underscores (_).
Default: mytest
TaskType:
Type: String
Description: |-
The protocol used by the site monitoring task. Valid values: HTTP, HTTPS, PING, TCP,
UDP, DNS, SMTP, POP3, and FTP.
Default: http
OptionsJson:
Type: String
Description: |-
The extended options of the protocol that is used by the site monitoring task. The
options vary based on the protocol.
Default: null
IspCities:
Type: Json
Description: |-
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.
Default: null
Interval:
Type: Number
Description: |-
The interval at which detection requests are sent. Valid values: 1, 5, and 15. Unit:
minutes. Default value: 1.
Default: null
AlertIds:
Type: Json
Description: ''
Default: null
Resources:
SiteMonitor:
Type: ALIYUN::CMS::SiteMonitor
Properties:
Address:
Ref: Address
OptionsJson:
Ref: OptionsJson
TaskName:
Ref: TaskName
TaskType:
Ref: TaskType
IspCities:
Ref: IspCities
Interval:
Ref: Interval
AlertIds:
Ref: AlertIds
Outputs:
TaskId:
Description: The ID of the site monitoring task.
Value:
Fn::GetAtt:
- SiteMonitor
- TaskId