ALIYUN::CMS2::ServiceObservability

更新时间:
复制 MD 格式

ALIYUN::CMS2::ServiceObservability类型用于创建应用可观测实例。

语法

{
  "Type": "ALIYUN::CMS2::ServiceObservability",
  "Properties": {
    "Type": String,
    "Workspace": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Type

String

服务可观测性类型。

取值:

  • rum :

    用户体验监控

  • apm :

    应用性能监控

Workspace

String

服务可观测性的工作空间。

返回值

Fn::GetAtt

Workspace:服务可观测性的工作空间。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Type:
    AllowedValues:
      - apm
      - rum
    Description:
      en: The type of the service observability.
    Required: true
    Type: String
  Workspace:
    Description:
      en: The workspace of the service observability.
    Required: true
    Type: String
Resources:
  ServiceObservability:
    Properties:
      Type:
        Ref: Type
      Workspace:
        Ref: Workspace
    Type: ALIYUN::CMS2::ServiceObservability
Outputs:
  Workspace:
    Description: The workspace of the service observability.
    Value:
      Fn::GetAtt:
        - ServiceObservability
        - Workspace
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Type": {
      "Type": "String",
      "Description": {
        "en": "The type of the service observability."
      },
      "AllowedValues": [
        "apm",
        "rum"
      ],
      "Required": true
    },
    "Workspace": {
      "Type": "String",
      "Description": {
        "en": "The workspace of the service observability."
      },
      "Required": true
    }
  },
  "Resources": {
    "ServiceObservability": {
      "Type": "ALIYUN::CMS2::ServiceObservability",
      "Properties": {
        "Type": {
          "Ref": "Type"
        },
        "Workspace": {
          "Ref": "Workspace"
        }
      }
    }
  },
  "Outputs": {
    "Workspace": {
      "Description": "The workspace of the service observability.",
      "Value": {
        "Fn::GetAtt": [
          "ServiceObservability",
          "Workspace"
        ]
      }
    }
  }
}