All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::CMS2::ServiceObservability

更新時間:Jul 06, 2026

The DATASOURCE::CMS2::ServiceObservability datasource retrieves service observability instances.

Syntax

{
  "Type": "DATASOURCE::CMS2::ServiceObservability",
  "Properties": {
    "Type": String,
    "Workspace": String,
    "RefreshOptions": String
  }
}

Properties

Parameter

Type

Required

Update allowed

Description

Constraints

Type

String

Yes

No

The type of service observability.

Valid values:

  • rum:

    Real User Monitoring

  • apm:

    Application Performance Monitoring

Workspace

String

Yes

No

The name of the workspace.

None

RefreshOptions

String

No

Yes

The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never (default): The datasource resource is not refreshed when the stack is updated.

  • Always: The datasource resource is always refreshed when the stack is updated.

Return values

Fn::GetAtt

  • Status: The status of the service.

  • Type: The type of the service.

  • EntryPointInfo: The entry point information for the service.

  • FeeType: The fee type for the service.

  • Quotas: The quotas for the service.

  • Settings: The settings for the service.

  • Workspace: The name of the workspace.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Workspace:
    Type: String
    Description:
      en: The name of the workspace.
    Required: true
  Type:
    Type: String
    Description:
      en: The type of service observability.
    AllowedValues:
      - rum
      - apm
    Required: true
  RefreshOptions:
    Type: String
    Description:
      en: |-
        The refresh strategy for the datasource resource when the stack is updated. Valid values:
        - Never: The datasource resource is not refreshed when the stack is updated.
        - Always: The datasource resource is always refreshed when the stack is updated.
        Default is Never.
    AllowedValues:
      - Always
      - Never
    Default: Never
    Required: false
Resources:
  ServiceObservability:
    Type: DATASOURCE::CMS2::ServiceObservability
    Properties:
      Workspace:
        Ref: Workspace
      Type:
        Ref: Type
      RefreshOptions:
        Ref: RefreshOptions
Outputs:
  Workspace:
    Value:
      Fn::GetAtt:
        - ServiceObservability
        - Workspace
    Description: The name of the workspace.
  Type:
    Value:
      Fn::GetAtt:
        - ServiceObservability
        - Type
    Description: The type of the service.
  Status:
    Value:
      Fn::GetAtt:
        - ServiceObservability
        - Status
    Description: The status of the service.
  EntryPointInfo:
    Value:
      Fn::GetAtt:
        - ServiceObservability
        - EntryPointInfo
    Description: The entry point information for the service.
  FeeType:
    Value:
      Fn::GetAtt:
        - ServiceObservability
        - FeeType
    Description: The fee type for the service.
  Settings:
    Value:
      Fn::GetAtt:
        - ServiceObservability
        - Settings
    Description: The settings for the service.
  Quotas:
    Value:
      Fn::GetAtt:
        - ServiceObservability
        - Quotas
    Description: The quotas for the service.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Workspace": {
      "Type": "String",
      "Description": {
        "en": "The name of the workspace."
      },
      "Required": true
    },
    "Type": {
      "Type": "String",
      "Description": {
        "en": "The type of service observability."
      },
      "AllowedValues": [
        "rum",
        "apm"
      ],
      "Required": true
    },
    "RefreshOptions": {
      "Type": "String",
      "Description": {
        "en": "The refresh strategy for the datasource resource when the stack is updated. Valid values:\n- Never: The datasource resource is not refreshed when the stack is updated.\n- Always: The datasource resource is always refreshed when the stack is updated.\nDefault is Never."
      },
      "AllowedValues": [
        "Always",
        "Never"
      ],
      "Default": "Never",
      "Required": false
    }
  },
  "Resources": {
    "ServiceObservability": {
      "Type": "DATASOURCE::CMS2::ServiceObservability",
      "Properties": {
        "Workspace": {
          "Ref": "Workspace"
        },
        "Type": {
          "Ref": "Type"
        },
        "RefreshOptions": {
          "Ref": "RefreshOptions"
        }
      }
    }
  },
  "Outputs": {
    "Workspace": {
      "Value": {
        "Fn::GetAtt": [
          "ServiceObservability",
          "Workspace"
        ]
      },
      "Description": "The name of the workspace."
    },
    "Type": {
      "Value": {
        "Fn::GetAtt": [
          "ServiceObservability",
          "Type"
        ]
      },
      "Description": "The type of the service."
    },
    "Status": {
      "Value": {
        "Fn::GetAtt": [
          "ServiceObservability",
          "Status"
        ]
      },
      "Description": "The status of the service."
    },
    "EntryPointInfo": {
      "Value": {
        "Fn::GetAtt": [
          "ServiceObservability",
          "EntryPointInfo"
        ]
      },
      "Description": "The entry point information for the service."
    },
    "FeeType": {
      "Value": {
        "Fn::GetAtt": [
          "ServiceObservability",
          "FeeType"
        ]
      },
      "Description": "The fee type for the service."
    },
    "Settings": {
      "Value": {
        "Fn::GetAtt": [
          "ServiceObservability",
          "Settings"
        ]
      },
      "Description": "The settings for the service."
    },
    "Quotas": {
      "Value": {
        "Fn::GetAtt": [
          "ServiceObservability",
          "Quotas"
        ]
      },
      "Description": "The quotas for the service."
    }
  }
}