ALIYUN::ESA::UrlObservation类型用于创建网页监测配置。
语法
{
"Type": "ALIYUN::ESA::UrlObservation",
"Properties": {
"SdkType": String,
"SiteId": Integer,
"Url": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
SdkType |
String |
是 |
是 |
SDK集成模式。 |
取值:
|
|
SiteId |
Integer |
是 |
否 |
站点ID。 |
无 |
|
Url |
String |
是 |
否 |
要监控的页面URL。 |
无 |
返回值
Fn::GetAtt
-
SdkType:SDK集成模式。
-
ConfigId:配置ID。
-
Url:要监控的页面URL。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SdkType:
Type: String
Description:
en: |-
SDK integration mode. Value:
- **automatic**: automatic integration.
- **manual**: manual integration.
AllowedValues:
- automatic
- manual
Required: true
SiteId:
Type: Number
Description:
en: The site ID.
Required: true
Url:
Type: String
Description:
en: The URL of the page to monitor.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::ESA::UrlObservation
Properties:
SdkType:
Ref: SdkType
SiteId:
Ref: SiteId
Url:
Ref: Url
Outputs:
SdkType:
Description: SDK integration mode.
Value:
Fn::GetAtt:
- ExtensionResource
- SdkType
ConfigId:
Description: Config Id.
Value:
Fn::GetAtt:
- ExtensionResource
- ConfigId
Url:
Description: The URL of the page to monitor.
Value:
Fn::GetAtt:
- ExtensionResource
- Url
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SdkType": {
"Type": "String",
"Description": {
"en": "SDK integration mode. Value:\n- **automatic**: automatic integration.\n- **manual**: manual integration."
},
"AllowedValues": [
"automatic",
"manual"
],
"Required": true
},
"SiteId": {
"Type": "Number",
"Description": {
"en": "The site ID."
},
"Required": true
},
"Url": {
"Type": "String",
"Description": {
"en": "The URL of the page to monitor."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ESA::UrlObservation",
"Properties": {
"SdkType": {
"Ref": "SdkType"
},
"SiteId": {
"Ref": "SiteId"
},
"Url": {
"Ref": "Url"
}
}
}
},
"Outputs": {
"SdkType": {
"Description": "SDK integration mode.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SdkType"
]
}
},
"ConfigId": {
"Description": "Config Id.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ConfigId"
]
}
},
"Url": {
"Description": "The URL of the page to monitor.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Url"
]
}
}
}
}
该文章对您有帮助吗?