文档

DATASOURCE::ARMS::Prometheis

更新时间:

DATASOURCE::ARMS::Prometheis类型用于查询Prometheus实例。

语法

{
  "Type": "DATASOURCE::ARMS::Prometheis",
  "Properties": {
    "ResourceGroupId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ResourceGroupId

String

资源组ID。

返回值

Fn::GetAtt

  • Prometheis:Prometheus实例列表。

  • ClusterIds:Prometheus实例ID列表

属性名称

类型

描述

约束

ClusterIds

List

Prometheus实例ID列表

Prometheis

List

Prometheus实例列表。

RegionId

String

地域ID。

PaymentType

String

付费类型。

PrometheusName

String

实例名称。

UserId

String

用户ID。

ClusterId

String

Prometheus实例ID。

ClusterType

String

Prometheus实例类型。

ResourceGroupId

String

Prometheus实例的资源组ID。

Tags

List

标签列表。

VSwitchId

String

交换机ID。

GrafanaInstanceId

String

Grafana工作区ID。

SecurityGroupId

String

安全组ID。

SubClustersJson

String

globalView实例的子实例JSON串。

VpcId

String

VPC ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ResourceGroupId:
        Description:
          en: The ID of the resource group.
        Type: String
    Resources:
      ExtensionDataSource:
        Properties:
          ResourceGroupId:
            Ref: ResourceGroupId
        Type: DATASOURCE::ARMS::Prometheis
    Outputs:
      ClusterIds:
        Description: The list of cluster IDs.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - ClusterIds
      Prometheis:
        Description: The list of Prometheis.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - Prometheis
                            
  • JSON格式

                            {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ResourceGroupId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the resource group."
          }
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::ARMS::Prometheis",
          "Properties": {
            "ResourceGroupId": {
              "Ref": "ResourceGroupId"
            }
          }
        }
      },
      "Outputs": {
        "Prometheis": {
          "Description": "The list of Prometheis.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Prometheis"
            ]
          }
        },
        "ClusterIds": {
          "Description": "The list of cluster IDs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ClusterIds"
            ]
          }
        }
      }
    }
                            
  • 本页导读 (1)
文档反馈