ALIYUN::ARMS::XTraceApp

更新时间:2025-02-12 01:38:05

ALIYUN::ARMS::XTraceApp类型用于创建应用监控任务。

语法

{
  "Type": "ALIYUN::ARMS::XTraceApp",
  "Properties": {
    "XTraceAppName": String,
    "ResourceGroupId": String,
    "Tags": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

XTraceAppName

String

应用名称。

ResourceGroupId

String

资源组ID。

Tags

List

应用绑定的标签列表。

最多支持添加20个标签。

更多信息,请参见Tags属性

Tags语法

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Tags属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

Key

String

标签键。

Value

String

标签值。

返回值

Fn::GetAtt

  • ResourceGroupId:资源组ID。

  • CreateTime:创建任务的时间戳。

  • Pid:应用的ID标识串。

  • Tags:应用绑定的标签列表

  • XTraceAppName:应用名称。

示例

YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  XTraceAppName:
    Type: String
    Description:
      en: The name of the resource.
    Required: true
    Default: arms-k8s-demo
Resources:
  ExtensionResource:
    Type: ALIYUN::ARMS::XTraceApp
    Properties:
      XTraceAppName:
        Ref: XTraceAppName
Outputs:
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceGroupId
  CreateTime:
    Description: The creation time of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  Pid:
    Description: the identify of application.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Pid
  Tags:
    Description: The tags of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Tags
  XTraceAppName:
    Description: The name of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - XTraceAppName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "XTraceAppName": {
      "Type": "String",
      "Description": {
        "en": "The name of the resource."
      },
      "Required": true,
      "Default": "arms-k8s-demo"
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ARMS::XTraceApp",
      "Properties": {
        "XTraceAppName": {
          "Ref": "XTraceAppName"
        }
      }
    }
  },
  "Outputs": {
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceGroupId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "Pid": {
      "Description": "the identify of application.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Pid"
        ]
      }
    },
    "Tags": {
      "Description": "The tags of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Tags"
        ]
      }
    },
    "XTraceAppName": {
      "Description": "The name of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "XTraceAppName"
        ]
      }
    }
  }
}
                        
  • 本页导读 (1)
  • 语法
  • 属性
  • Tags语法
  • Tags属性
  • 返回值
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等