O recurso ALIYUN::ARMS::EnvServiceMonitor cria um ServiceMonitor para um ambiente.
Sintaxe
{
"Type": "ALIYUN::ARMS::EnvServiceMonitor",
"Properties": {
"ConfigYaml": String,
"EnvironmentId": String,
"AliyunLang": String
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualização permitida |
Descrição |
Restrições |
|
ConfigYaml |
String |
Sim |
Sim |
String de configuração YAML do ServiceMonitor. |
Nenhuma |
|
EnvironmentId |
String |
Sim |
Não |
ID da instância do ambiente. |
Nenhuma |
|
AliyunLang |
String |
Não |
Não |
Idioma da resposta. |
Valores válidos: |
Valores de retorno
Fn::GetAtt
EnvServiceMonitorName: Nome do ServiceMonitor.EnvironmentId: ID da instância do ambiente.ConfigYaml: String de configuração YAML do ServiceMonitor.Namespace: Namespace do ServiceMonitor.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
EnvironmentId:
Type: String
Description: The ID of the environment instance.
Required: true
ConfigYaml:
Type: String
Description: The YAML configuration string for the ServiceMonitor.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::ARMS::EnvServiceMonitor
Properties:
EnvironmentId:
Ref: EnvironmentId
ConfigYaml:
Ref: ConfigYaml
Outputs:
EnvServiceMonitorName:
Description: The name of the ServiceMonitor.
Value:
Fn::GetAtt:
- ExtensionResource
- EnvServiceMonitorName
EnvironmentId:
Description: The ID of the environment instance.
Value:
Fn::GetAtt:
- ExtensionResource
- EnvironmentId
ConfigYaml:
Description: The YAML configuration string for the ServiceMonitor.
Value:
Fn::GetAtt:
- ExtensionResource
- ConfigYaml
Namespace:
Description: The namespace of the ServiceMonitor.
Value:
Fn::GetAtt:
- ExtensionResource
- Namespace
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"EnvironmentId": {
"Type": "String",
"Description": "The ID of the environment instance.",
"Required": true
},
"ConfigYaml": {
"Type": "String",
"Description": "The YAML configuration string for the ServiceMonitor.",
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ARMS::EnvServiceMonitor",
"Properties": {
"EnvironmentId": {
"Ref": "EnvironmentId"
},
"ConfigYaml": {
"Ref": "ConfigYaml"
}
}
}
},
"Outputs": {
"EnvServiceMonitorName": {
"Description": "The name of the ServiceMonitor.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EnvServiceMonitorName"
]
}
},
"EnvironmentId": {
"Description": "The ID of the environment instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EnvironmentId"
]
}
},
"ConfigYaml": {
"Description": "The YAML configuration string for the ServiceMonitor.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ConfigYaml"
]
}
},
"Namespace": {
"Description": "The namespace of the ServiceMonitor.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Namespace"
]
}
}
}
}