Creates an alert contact group in Application Real-Time Monitoring Service (ARMS).
Syntax
{
"Type": "ALIYUN::ARMS::AlertContactGroup",
"Properties": {
"ContactIds": List,
"RegionId": String,
"ContactGroupName": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
ContactGroupName |
String |
Yes |
Yes |
The alert contact group name. |
None. |
|
ContactIds |
List |
Yes |
Yes |
The contact IDs in the alert contact group. |
Separate multiple contact IDs with spaces. |
|
RegionId |
String |
No |
No |
The region ID. Defaults to the stack region ID. |
Valid values:
|
Return values
Fn::GetAtt
ContactGroupId: the alert contact group ID.
Examples
YAML format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ContactIds:
Type: Json
Description: 'The list of alert contact ID. '
Resources:
AlertContactGroup:
Type: ALIYUN::ARMS::AlertContactGroup
Properties:
ContactIds:
Ref: ContactIds
ContactGroupName: TestContactGroup
Outputs:
ContactGroupId:
Description: The ID of the alert contact group that you created.
Value:
Fn::GetAtt:
- AlertContactGroup
- ContactGroupId
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ContactIds": {
"Type": "Json",
"Description": "The list of alert contact ID. "
}
},
"Resources": {
"AlertContactGroup": {
"Type": "ALIYUN::ARMS::AlertContactGroup",
"Properties": {
"ContactIds": {
"Ref": "ContactIds"
},
"ContactGroupName": "TestContactGroup"
}
}
},
"Outputs": {
"ContactGroupId": {
"Description": "The ID of the alert contact group that you created.",
"Value": {
"Fn::GetAtt": [
"AlertContactGroup",
"ContactGroupId"
]
}
}
}
}
该文章对您有帮助吗?