ALIYUN::CMS2::ServiceObservability

更新时间:
复制 MD 格式

The ALIYUN::CMS2::ServiceObservability resource type creates a service observability instance.

Syntax

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

Properties

Parameter

Type

Required

Editable

Description

Constraints

Type

String

Yes

No

The type of the service observability instance.

Allowed Values:

  • rum:

    Real User Monitoring

  • apm:

    Application Performance Monitoring

Workspace

String

Yes

No

The workspace for the service observability instance.

None

Return values

Fn::GetAtt

Workspace: The workspace for the service observability instance.

Examples

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