Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ARMS::XTraceApp

Última atualização: Jun 27, 2026

Cria uma tarefa de monitoramento de aplicação.

Sintaxe

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

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

XTraceAppName

String

Sim

Não

Nome da aplicação.

Nenhuma.

ResourceGroupId

String

Não

Sim

ID do grupo de recursos.

Nenhuma.

Tags

List

Não

Sim

Tags para adicionar à aplicação.

Adicione até 20 tags.

Para mais informações, consulte Propriedades de Tags.

Sintaxe de Tags

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

Propriedades de Tags

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Key

String

Sim

Não

Chave da tag.

Nenhuma.

Value

String

Não

Não

Valor da tag.

Nenhuma.

Valores de retorno

Fn::GetAtt

  • ResourceGroupId: ID do grupo de recursos.

  • CreateTime: timestamp de criação da tarefa de monitoramento da aplicação.

  • Pid: ID da aplicação.

  • Tags: tags da aplicação.

  • XTraceAppName: nome da aplicação.

Exemplos

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"
        ]
      }
    }
  }
}