Cria um PodMonitor para um ambiente.
Sintaxe
{
"Type": "ALIYUN::ARMS::EnvPodMonitor",
"Properties": {
"ConfigYaml": String,
"EnvironmentId": String,
"AliyunLang": String
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualizável |
Descrição |
Restrições |
|
ConfigYaml |
String |
Sim |
Sim |
String de configuração YAML do PodMonitor. |
Nenhuma |
|
EnvironmentId |
String |
Sim |
Não |
ID da instância de ambiente. |
Nenhuma |
|
AliyunLang |
String |
Não |
Não |
Idioma da resposta. |
Valores válidos: zh e en. Padrão: zh. |
Valores de retorno
Fn::GetAtt
EnvironmentId: ID da instância de ambiente.
EnvPodMonitorName: nome do PodMonitor.
ConfigYaml: string de configuração YAML do PodMonitor.
Namespace: namespace do PodMonitor.
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 of the PodMonitor.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::ARMS::EnvPodMonitor
Properties:
EnvironmentId:
Ref: EnvironmentId
ConfigYaml:
Ref: ConfigYaml
Outputs:
EnvironmentId:
Description: The ID of the environment instance.
Value:
Fn::GetAtt:
- ExtensionResource
- EnvironmentId
EnvPodMonitorName:
Description: The name of the PodMonitor.
Value:
Fn::GetAtt:
- ExtensionResource
- EnvPodMonitorName
ConfigYaml:
Description: The YAML configuration string of the PodMonitor.
Value:
Fn::GetAtt:
- ExtensionResource
- ConfigYaml
Namespace:
Description: The namespace of the PodMonitor.
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 of the PodMonitor.",
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ARMS::EnvPodMonitor",
"Properties": {
"EnvironmentId": {
"Ref": "EnvironmentId"
},
"ConfigYaml": {
"Ref": "ConfigYaml"
}
}
}
},
"Outputs": {
"EnvironmentId": {
"Description": "The ID of the environment instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EnvironmentId"
]
}
},
"EnvPodMonitorName": {
"Description": "The name of the PodMonitor.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EnvPodMonitorName"
]
}
},
"ConfigYaml": {
"Description": "The YAML configuration string of the PodMonitor.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ConfigYaml"
]
}
},
"Namespace": {
"Description": "The namespace of the PodMonitor.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Namespace"
]
}
}
}
}