全部產品
Search
文件中心

:DATASOURCE::CMS::MonitorGroups

更新時間:Sep 30, 2024

DATASOURCE::CMS::MonitorGroups類型用於查詢應用分組基本資料。

文法

{
  "Type": "DATASOURCE::CMS::MonitorGroups",
  "Properties": {
    "Type": String,
    "DynamicTagRuleId": String,
    "MonitorGroupName": String,
    "GroupId": Integer,
    "RefreshOptions": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

Type

String

否

是

應用分組類型。

取值:

  • custom:自建的應用分組。

  • ehpc_cluster:從EHPC叢集同步的應用分組。

  • kubernetes:從Container ServiceKubernetes版同步的應用分組。

DynamicTagRuleId

String

否

是

智能標籤規則ID。

無

MonitorGroupName

String

否

是

應用分組名稱。

無

GroupId

Integer

否

是

應用分組ID。

無

RefreshOptions

String

否

是

當資源棧更新時,資料來源資源的重新整理策略。

取值:

  • Never(預設值):更新堆棧時,從不重新整理資料來源資源。

  • Always:更新堆棧時,始終重新整理資料來源資源。

傳回值

Fn::GetAtt

  • GroupIds:應用分組ID列表。

  • MonitorGroups:應用分組列表。

屬性名稱

類型

描述

約束

GroupIds

List

應用分組ID列表。

無

MonitorGroups

List

應用分組列表。

無

Tags

List

應用分組的標籤。

無

BindUrl

String

從Container ServiceKubernetes版同步過來的URL地址。

無

TemplateIds

List

應用分組應用過的警示模板。

無

ContactGroups

List

警示聯絡組。

無

ServiceId

String

阿里雲服務ID。

無

DynamicTagRuleId

String

智能標籤規則ID。

無

MonitorGroupName

String

應用分組名稱。

無

GmtModified

String

修改應用分組的時間戳記。

單位:毫秒。

CreateTime

String

建立應用分組的時間。

單位:毫秒。

Type

String

應用分組類型。

無

GroupId

String

應用分組ID。

無

樣本

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

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"
        ]
      }
    }
  }
}