ALIYUN::ESA::UrlObservation

更新时间:
复制为 MD 格式

ALIYUN::ESA::UrlObservation类型用于创建网页监测配置。

语法

{
  "Type": "ALIYUN::ESA::UrlObservation",
  "Properties": {
    "SdkType": String,
    "SiteId": Integer,
    "Url": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

SdkType

String

SDK集成模式。

取值:

  • automatic: 自动集成。

  • manual: 手动集成。

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"
        ]
      }
    }
  }
}