ALIYUN::ARMS::XTraceApp は、アプリケーション監視タスクを作成するために使用されます。
構文
{
"Type": "ALIYUN::ARMS::XTraceApp",
"Properties": {
"XTraceAppName": String,
"ResourceGroupId": String,
"Tags": List
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
XTraceAppName | String | はい | いいえ | アプリケーションの名前。 | なし。 |
ResourceGroupId | String | いいえ | はい | リソースグループの ID。 | なし。 |
Tags | List | いいえ | はい | アプリケーションに追加するタグ。 | 最大 20 個のタグを追加できます。 詳細については、「タグのプロパティ」をご参照ください。 |
タグの構文
"Tags": [
{
"Value": String,
"Key": String
}
]タグのプロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Key | String | はい | いいえ | タグキー。 | なし。 |
Value | String | いいえ | いいえ | タグ値。 | なし。 |
戻り値
Fn::GetAtt
ResourceGroupId: リソースグループの ID。
CreateTime: タスクが作成された日時を示すタイムスタンプ。
Pid: アプリケーションの ID。
Tags: アプリケーションに追加されたタグ。
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
{
"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": "リソースグループの ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceGroupId"
]
}
},
"CreateTime": {
"Description": "リソースの作成時間。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"Pid": {
"Description": "アプリケーションの ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Pid"
]
}
},
"Tags": {
"Description": "リソースのタグ。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Tags"
]
}
},
"XTraceAppName": {
"Description": "リソースの名前。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"XTraceAppName"
]
}
}
}
}