-
Notifications
You must be signed in to change notification settings - Fork 35
/
contact.yml
114 lines (114 loc) · 3.11 KB
/
contact.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建CMS联系人、联系组及动态标签组,配置事件订阅与监控代理安装选项,支持标签匹配规则。
en: Create CMS contacts, contact groups, and dynamic tag groups, configure event
subscriptions and monitoring agent installation options, with support for tag
matching rules.
Parameters:
ContactName:
Type: String
Channels:
Type: Json
ContactGroupName:
Type: String
TagKey:
Type: String
MatchExpressFilterRelation:
Type: String
Description: |-
The relationship between the conditional expressions. Values are:
and: the relationship between
or: the relationship or the
Description currently supports only one combination of conditions, the follow-up Ali cloud will support a variety of combinations of conditions.
Default: or
AllowedValues:
- and
- or
EnableSubscribeEvent:
Type: Boolean
Description: |-
Whether the event subscription is enabled. Values are
:true: enable event subscription
false: disable event subscription
Default: false
AllowedValues:
- true
- false
TemplateIdList:
Type: Json
Description: |-
Alarm template ID list.
When the automatically generated application group synchronizes tags, it will generate alarm rules according to the specified alarm template.
Default: null
EnableInstallAgent:
Type: Boolean
Description: |-
Whether to enable initial installation monitoring plug, not installed by default. Values are:
true: enable installation
Note If ECS generated instances group does not monitor plug-in installed will attempt to automatically install.
false: disable installation
Default: false
AllowedValues:
- true
- false
MatchExpress:
Type: Json
Description: Matching list. Only supports one currently.
Default: null
Resources:
Contact:
Type: ALIYUN::CMS::Contact
Properties:
Describe: Test Contact
ContactName:
Ref: ContactName
Channels:
Ref: Channels
ContactGroup:
Type: ALIYUN::CMS::ContactGroup
Properties:
Describe: Test ContactGroup
ContactGroupName:
Ref: ContactGroupName
ContactNames:
- Fn::GetAtt:
- Contact
- ContactName
DynamicTagGroup:
Type: ALIYUN::CMS::DynamicTagGroup
Properties:
ContactGroupList:
- Fn::GetAtt:
- ContactGroup
- ContactGroupName
MatchExpressFilterRelation:
Ref: MatchExpressFilterRelation
EnableSubscribeEvent:
Ref: EnableSubscribeEvent
TagKey: test1
EnableInstallAgent: false
MatchExpress:
- TagValue: '123'
TagValueMatchFunction: all
DependsOn: ContactGroup
Outputs:
ContactName:
Value:
Fn::GetAtt:
- Contact
- ContactName
ContactGroupName:
Value:
Fn::GetAtt:
- ContactGroup
- ContactGroupName
DynamicTagRuleId:
Value:
Fn::GetAtt:
- DynamicTagGroup
- DynamicTagRuleId
TagKey:
Value:
Fn::GetAtt:
- DynamicTagGroup
- TagKey