O tipo ALIYUN::ESA::UrlObservation cria uma configuração de monitoramento de página da web.
Sintaxe
{
"Type": "ALIYUN::ESA::UrlObservation",
"Properties": {
"SdkType": String,
"SiteId": Integer,
"Url": String
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
SdkType |
String |
Sim |
Sim |
Modo de integração do SDK. |
Valores válidos:
|
|
SiteId |
Integer |
Sim |
Não |
ID do site. |
Nenhuma |
|
Url |
String |
Sim |
Não |
URL da página a ser monitorada. |
Nenhuma |
Valores de retorno
Fn::GetAtt
SdkType: modo de integração do SDK.
ConfigId: ID da configuração.
Url: URL da página a ser monitorada.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SdkType:
Type: String
Description:
en: |-
SDK integration mode. Valid values:
- 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: The SDK integration mode.
Value:
Fn::GetAtt:
- ExtensionResource
- SdkType
ConfigId:
Description: The configuration 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. Valid values:\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": "The SDK integration mode.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SdkType"
]
}
},
"ConfigId": {
"Description": "The configuration ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ConfigId"
]
}
},
"Url": {
"Description": "The URL of the page to monitor.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Url"
]
}
}
}
}