Use DATASOURCE::CMS::MonitorGroups para consultar informações sobre grupos de aplicativos.
Sintaxe
{
"Type": "DATASOURCE::CMS::MonitorGroups",
"Properties": {
"Type": String,
"DynamicTagRuleId": String,
"MonitorGroupName": String,
"GroupId": Integer,
"RefreshOptions": String
}
}
Propriedades
Propriedade | Tipo | Obrigatório | Editável | Descrição | Restrição |
Type | String | Não | Sim | Tipo do grupo de aplicativos. | Valores válidos:
|
DynamicTagRuleId | String | Não | Sim | ID da regra de tag. | Nenhuma. |
MonitorGroupName | String | Não | Sim | Nome do grupo de aplicativos. | Nenhuma. |
GroupId | Integer | Não | Sim | ID do grupo de aplicativos. | Nenhuma. |
RefreshOptions | String | Não | Sim | Política de atualização dos recursos de source durante a atualização da pilha. | Valores válidos:
|
Valores de retorno
Fn::GetAtt
GroupIds: IDs dos grupos de aplicativos.
MonitorGroups: detalhes dos grupos de aplicativos.
|
Propriedade |
Tipo |
Descrição |
Restrição |
|
GroupIds |
List |
IDs dos grupos de aplicativos. |
Nenhuma. |
|
MonitorGroups |
List |
Detalhes dos grupos de aplicativos. |
Nenhuma. |
|
Tags |
List |
Tags do grupo de aplicativos. |
Nenhuma. |
|
BindUrl |
String |
URL sincronizada do ACK. |
Nenhuma. |
|
TemplateIds |
List |
Modelos de alerta aplicados ao grupo de aplicativos. |
Nenhuma. |
|
ContactGroups |
List |
Grupos de contatos de alerta. |
Nenhuma. |
|
ServiceId |
String |
ID do serviço Alibaba Cloud. |
Nenhuma. |
|
DynamicTagRuleId |
String |
ID da regra de tag. |
Nenhuma. |
|
MonitorGroupName |
String |
Nome do grupo de aplicativos. |
Nenhuma. |
|
GmtModified |
String |
Timestamp da última modificação do grupo de aplicativos. |
Unidade: milissegundos. |
|
CreateTime |
String |
Timestamp de criação do grupo de aplicativos. |
Unidade: milissegundos. |
|
Type |
String |
Tipo do grupo de aplicativos. |
Nenhuma. |
|
GroupId |
String |
ID do grupo de aplicativos. |
Nenhuma. |
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Resources:
ExtensionDataSource:
Type: 'DATASOURCE::CMS::MonitorGroups'
Properties:
Type:
Ref: Type
Parameters:
Type:
Type: String
Description: >-
The type of the application group. Valid values:
custom: a self-managed application group.
ehpc_cluster: an application group that is synchronized from an Elastic
High Performance Computing (E-HPC) cluster.
kubernetes: an application group that is synchronized from a Container
Service for Kubernetes (ACK) cluster.
Outputs:
GroupIds:
Description: The list of group IDs.
Value:
'Fn::GetAtt':
- ExtensionDataSource
- GroupIds
MonitorGroups:
Description: The list of monitor groups.
Value:
'Fn::GetAtt':
- ExtensionDataSource
- MonitorGroups
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::CMS::MonitorGroups",
"Properties": {
"Type": {
"Ref": "Type"
}
}
}
},
"Parameters": {
"Type": {
"Type": "String",
"Description": "The type of the application group. Valid values:\ncustom: a self-managed application group.\nehpc_cluster: an application group that is synchronized from an Elastic High Performance Computing (E-HPC) cluster.\nkubernetes: an application group that is synchronized from a Container Service for Kubernetes (ACK) cluster."
}
},
"Outputs": {
"GroupIds": {
"Description": "The list of group IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GroupIds"
]
}
},
"MonitorGroups": {
"Description": "The list of monitor groups.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MonitorGroups"
]
}
}
}
}