ALIYUN::DNS::MonitorConfig类型用于创建健康检查。
语法
{
"Type": "ALIYUN::DNS::MonitorConfig",
"Properties": {
"AddrPoolId": String,
"EvaluationCount": Integer,
"IspCityNode": List,
"Interval": Integer,
"MonitorExtendInfo": Map,
"ProtocolType": String,
"Timeout": Integer
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
AddrPoolId |
String |
是 |
否 |
地址池的ID。 |
无 |
|
EvaluationCount |
Integer |
是 |
是 |
监控的评估次数。 |
范围限制:最小1,最大3 |
|
Interval |
Integer |
是 |
是 |
监控的间隔时间。 |
范围限制:最小1,最大60 |
|
IspCityNode |
List |
是 |
是 |
ISP城市节点列表。 |
长度限制:最大50。更多信息,请参考IspCityNode属性。 |
|
MonitorExtendInfo |
Map |
是 |
是 |
监控的扩展信息。 |
无 |
|
ProtocolType |
String |
是 |
是 |
监控的协议类型。 |
无 |
|
Timeout |
Integer |
是 |
是 |
监控的超时时间。 |
范围限制:最小1,最大10000 |
IspCityNode语法
"IspCityNode": [
{
"CityCode": String,
"IspCode": String
}
]
IspCityNode属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
CityCode |
String |
否 |
是 |
ISP城市节点的城市代码。 |
无 |
|
IspCode |
String |
否 |
是 |
ISP城市节点的ISP代码。 |
无 |
返回值
Fn::GetAtt
MonitorConfigId:监控配置的ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
IspCityNode:
AssociationPropertyMetadata:
Parameters:
CityCode:
Type: String
Description:
en: The city code of the ISP city node.
zh: ISP城市节点的城市代码。
Required: false
IspCode:
Type: String
Description:
en: The ISP code of the ISP city node.
zh: ISP城市节点的ISP代码。
Required: false
AssociationProperty: List[Parameters]
Type: Json
Description:
en: The ISP city node list.
zh: ISP城市节点列表。
Required: true
MaxLength: 50
Timeout:
Type: Number
Description:
en: The timeout of the monitor.
zh: 监控的超时时间。
Required: true
MinValue: 1
MaxValue: 10000
ProtocolType:
Type: String
Description:
en: The protocol type of the monitor.
zh: 监控的协议类型。
Required: true
AddrPoolId:
Type: String
Description:
en: The ID of the address pool.
zh: 地址池的ID。
Required: true
EvaluationCount:
Type: Number
Description:
en: The evaluation count of the monitor.
zh: 监控的评估次数。
Required: true
MinValue: 1
MaxValue: 3
MonitorExtendInfo:
Type: Json
Description:
en: The extend info of the monitor.
zh: 监控的扩展信息。
Required: true
Interval:
Type: Number
Description:
en: The interval of the monitor.
zh: 监控的间隔时间。
Required: true
MinValue: 1
MaxValue: 60
Resources:
MonitorConfig:
Type: ALIYUN::DNS::MonitorConfig
Properties:
IspCityNode:
Ref: IspCityNode
Timeout:
Ref: Timeout
ProtocolType:
Ref: ProtocolType
AddrPoolId:
Ref: AddrPoolId
EvaluationCount:
Ref: EvaluationCount
MonitorExtendInfo:
Ref: MonitorExtendInfo
Interval:
Ref: Interval
Outputs:
MonitorConfigId:
Description:
en: The ID of the monitor config.
zh: 监控配置的ID。
Value:
Fn::GetAtt:
- MonitorConfig
- MonitorConfigId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"IspCityNode": {
"AssociationPropertyMetadata": {
"Parameters": {
"CityCode": {
"Type": "String",
"Description": {
"en": "The city code of the ISP city node.",
"zh": "ISP城市节点的城市代码。"
},
"Required": false
},
"IspCode": {
"Type": "String",
"Description": {
"en": "The ISP code of the ISP city node.",
"zh": "ISP城市节点的ISP代码。"
},
"Required": false
}
}
},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": {
"en": "The ISP city node list.",
"zh": "ISP城市节点列表。"
},
"Required": true,
"MaxLength": 50
},
"Timeout": {
"Type": "Number",
"Description": {
"en": "The timeout of the monitor.",
"zh": "监控的超时时间。"
},
"Required": true,
"MinValue": 1,
"MaxValue": 10000
},
"ProtocolType": {
"Type": "String",
"Description": {
"en": "The protocol type of the monitor.",
"zh": "监控的协议类型。"
},
"Required": true
},
"AddrPoolId": {
"Type": "String",
"Description": {
"en": "The ID of the address pool.",
"zh": "地址池的ID。"
},
"Required": true
},
"EvaluationCount": {
"Type": "Number",
"Description": {
"en": "The evaluation count of the monitor.",
"zh": "监控的评估次数。"
},
"Required": true,
"MinValue": 1,
"MaxValue": 3
},
"MonitorExtendInfo": {
"Type": "Json",
"Description": {
"en": "The extend info of the monitor.",
"zh": "监控的扩展信息。"
},
"Required": true
},
"Interval": {
"Type": "Number",
"Description": {
"en": "The interval of the monitor.",
"zh": "监控的间隔时间。"
},
"Required": true,
"MinValue": 1,
"MaxValue": 60
}
},
"Resources": {
"MonitorConfig": {
"Type": "ALIYUN::DNS::MonitorConfig",
"Properties": {
"IspCityNode": {
"Ref": "IspCityNode"
},
"Timeout": {
"Ref": "Timeout"
},
"ProtocolType": {
"Ref": "ProtocolType"
},
"AddrPoolId": {
"Ref": "AddrPoolId"
},
"EvaluationCount": {
"Ref": "EvaluationCount"
},
"MonitorExtendInfo": {
"Ref": "MonitorExtendInfo"
},
"Interval": {
"Ref": "Interval"
}
}
}
},
"Outputs": {
"MonitorConfigId": {
"Description": {
"en": "The ID of the monitor config.",
"zh": "监控配置的ID。"
},
"Value": {
"Fn::GetAtt": [
"MonitorConfig",
"MonitorConfigId"
]
}
}
}
}