DATASOURCE::CMS2::ServiceObservability
更新时间:
复制 MD 格式
DATASOURCE::CMS2::ServiceObservability类型用于获取应用可观测实例。
语法
{
"Type": "DATASOURCE::CMS2::ServiceObservability",
"Properties": {
"Type": String,
"Workspace": String,
"RefreshOptions": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
Type |
String |
是 |
否 |
服务可观测性的类型。 |
取值:
|
|
Workspace |
String |
是 |
否 |
工作空间名称。 |
无 |
|
RefreshOptions |
String |
否 |
是 |
当资源栈更新时,数据源资源的刷新策略。 |
取值:
|
返回值
Fn::GetAtt
-
Status:服务可观测性的状态。
-
Type:服务可观测性的类型。
-
EntryPointInfo:服务可观测性的入口点信息。
-
FeeType:服务可观测性的计费类型。
-
Quotas:服务可观测性的配额。
-
Settings:服务可观测性的设置。
-
Workspace:工作空间名称。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Workspace:
Type: String
Description:
en: The workspace name.
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: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource 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 workspace.
Type:
Value:
Fn::GetAtt:
- ServiceObservability
- Type
Description: The type of service observability.
Status:
Value:
Fn::GetAtt:
- ServiceObservability
- Status
Description: The status of service observability.
EntryPointInfo:
Value:
Fn::GetAtt:
- ServiceObservability
- EntryPointInfo
Description: The entry point info of service observability.
FeeType:
Value:
Fn::GetAtt:
- ServiceObservability
- FeeType
Description: The fee type of service observability.
Settings:
Value:
Fn::GetAtt:
- ServiceObservability
- Settings
Description: The settings of service observability.
Quotas:
Value:
Fn::GetAtt:
- ServiceObservability
- Quotas
Description: The quotas of service observability.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Workspace": {
"Type": "String",
"Description": {
"en": "The workspace name."
},
"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: Never refresh the datasource resource when the stack is updated.\n- Always: Always refresh the datasource resource 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 workspace."
},
"Type": {
"Value": {
"Fn::GetAtt": [
"ServiceObservability",
"Type"
]
},
"Description": "The type of service observability."
},
"Status": {
"Value": {
"Fn::GetAtt": [
"ServiceObservability",
"Status"
]
},
"Description": "The status of service observability."
},
"EntryPointInfo": {
"Value": {
"Fn::GetAtt": [
"ServiceObservability",
"EntryPointInfo"
]
},
"Description": "The entry point info of service observability."
},
"FeeType": {
"Value": {
"Fn::GetAtt": [
"ServiceObservability",
"FeeType"
]
},
"Description": "The fee type of service observability."
},
"Settings": {
"Value": {
"Fn::GetAtt": [
"ServiceObservability",
"Settings"
]
},
"Description": "The settings of service observability."
},
"Quotas": {
"Value": {
"Fn::GetAtt": [
"ServiceObservability",
"Quotas"
]
},
"Description": "The quotas of service observability."
}
}
}该文章对您有帮助吗?