全部產品
Search
文件中心

:ALIYUN::ARMS::RetcodeApp

更新時間:Jun 21, 2024

ALIYUN::ARMS::RetcodeApp類型用於建立前端監控任務。

文法

{
  "Type": "ALIYUN::ARMS::RetcodeApp",
  "Properties": {
    "RetcodeAppType": String,
    "RegionId": String,
    "RetcodeAppName": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

RegionId

String

地區ID

取值:

  • cn-hangzhou

  • ap-southeast-1

RetcodeAppName

String

前端監控應用程式名稱

RetcodeAppType

String

前端監控應用類型

取值:

  • web

  • weex

  • mini_dd

  • mini_alipay

  • mini_wx

  • mini_common

傳回值

Fn::GetAtt

  • Pid:PID。

  • AppId:應用ID。

樣本

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  RetcodeApp:
    Type: 'ALIYUN::ARMS::RetcodeApp'
    Properties:
      RetcodeAppType:
        Ref: RetcodeAppType
      RegionId:
        Ref: RegionId
      RetcodeAppName:
        Ref: RetcodeAppName
Parameters:
  RetcodeAppType:
    Type: String
    Description: >-
      The type of the application for which you want to create the browser
      monitoring job. Allowed values: web, weex, mini_dd, mini_alipay, mini_wx,
      mini_common.
  RegionId:
    Default: cn-hangzhou
    Type: String
    Description: >-
      Region ID. Allowed values: cn-hangzhou, ap-southeast-1. Default to
      cn-hangzhou.
    AllowedValues:
      - cn-hangzhou
      - ap-southeast-1
  RetcodeAppName:
    Type: String
    Description: >-
      The name of the application for which you want to create the browser
      monitoring job.
Outputs:
  Pid:
    Description: The PID.
    Value:
      'Fn::GetAtt':
        - RetcodeApp
        - Pid
  AppId:
    Description: >-
      The ID of the application for which you created the browser monitoring
      job.
    Value:
      'Fn::GetAtt':
        - RetcodeApp
        - AppId

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "RetcodeApp": {
      "Type": "ALIYUN::ARMS::RetcodeApp",
      "Properties": {
        "RetcodeAppType": {
          "Ref": "RetcodeAppType"
        },
        "RegionId": {
          "Ref": "RegionId"
        },
        "RetcodeAppName": {
          "Ref": "RetcodeAppName"
        }
      }
    }
  },
  "Parameters": {
    "RetcodeAppType": {
      "Type": "String",
      "Description": "The type of the application for which you want to create the browser monitoring job. Allowed values: web, weex, mini_dd, mini_alipay, mini_wx, mini_common."
    },
    "RegionId": {
      "Default": "cn-hangzhou",
      "Type": "String",
      "Description": "Region ID. Allowed values: cn-hangzhou, ap-southeast-1. Default to cn-hangzhou.",
      "AllowedValues": [
        "cn-hangzhou",
        "ap-southeast-1"
      ]
    },
    "RetcodeAppName": {
      "Type": "String",
      "Description": "The name of the application for which you want to create the browser monitoring job."
    }
  },
  "Outputs": {
    "Pid": {
      "Description": "The PID.",
      "Value": {
        "Fn::GetAtt": [
          "RetcodeApp",
          "Pid"
        ]
      }
    },
    "AppId": {
      "Description": "The ID of the application for which you created the browser monitoring job.",
      "Value": {
        "Fn::GetAtt": [
          "RetcodeApp",
          "AppId"
        ]
      }
    }
  }
}