forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
metric-rule-template.yml
104 lines (104 loc) · 3.13 KB
/
metric-rule-template.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
ROSTemplateFormatVersion: '2015-09-01'
Description: CMS MetricRuleTemplate resource example
Parameters:
MetricName:
Type: String
Description: The name of the metric. For more information, call DescribeMetricMetaList
or see Preset metrics reference.
Category:
Type: String
Description: |-
The abbreviation of the service name. Valid values:
ECS (including Alibaba Cloud and non-Alibaba Cloud hosts)
RDS (ApsaraDB for RDS)
ADS (AnalyticDB)
SLB (Server Load Balancer)
VPC (Virtual Private Cloud)
APIGATEWAY (API Gateway)
CDN
CS (Container Service for Swarm)
DCDN (Dynamic Route for CDN)
DDoS (distributed denial of service)
EIP (Elastic IP)
ELASTICSEARCH (Elasticsearch)
EMR (E-MapReduce)
ESS (Auto Scaling)
HBASE (ApsaraDB for HBase)
IOT_EDGE (IoT Edge)
K8S_POD (k8s pod)
KVSTORE_SHARDING (ApsaraDB for Redis cluster version)
KVSTORE_SPLITRW (ApsaraDB for Redis read/write splitting version)
KVSTORE_STANDARD (ApsaraDB for Redis standard version)
MEMCACHE (ApsaraDB for Memcache)
MNS (Message Service)
MONGODB (ApsaraDB for MongoDB replica set instances)
MONGODB_CLUSTER (ApsaraDB for MongoDB cluster version)
MONGODB_SHARDING (ApsaraDB for MongoDB sharded clusters)
MQ_TOPIC (Message Service topic)
OCS (original version of ApsaraDB for Memcache)
OPENSEARCH (Open Search)
OSS (Object Storage Service)
POLARDB (ApsaraDB for POLARDB)
PETADATA (HybridDB for MySQL)
SCDN (Secure Content Delivery Network)
SHAREBANDWIDTHPACKAGES (shared bandwidth package)
SLS (Log Service)
VPN (VPN Gateway)
Namespace:
Type: String
Description: |-
The data namespace of the service. For more information, call DescribeMetricMetaList
or see Preset metrics reference.
RuleName:
Type: String
Escalations:
Type: Json
Description:
Type: String
Description: The description of the alert template.
Default: null
RestVersion:
Type: Number
Description: |-
The version of the alert template. Call DescribeMetricRuleTemplateList or DescribeMetricRuleTemplateAttribute
to obtain information about the alert templates. The combination of version and ID
uniquely identifies an alert template.
Default: null
TemplateId:
Type: Number
Description: The ID of the alert template.
Default: null
Name:
Type: String
Description: The name of the alert template.
Default: test-alert-tpl
Resources:
MetricRuleTemplate:
Type: ALIYUN::CMS::MetricRuleTemplate
Properties:
AlertTemplates:
- MetricName:
Ref: MetricName
Category:
Ref: Category
Namespace:
Ref: Namespace
RuleName:
Ref: RuleName
Escalations:
Ref: Escalations
Description:
Ref: Description
RestVersion:
Ref: RestVersion
TemplateId:
Ref: TemplateId
Name:
Ref: Name
Outputs:
Id:
Description: Alarm template ID.
Value:
Fn::GetAtt:
- MetricRuleTemplate
- Id