Microsoft.DataBoxEdge dataBoxEdgeDevices/roles/monitoringConfig 2022-12-01-預覽版

Bicep 資源定義

dataBoxEdgeDevices/roles/monitoringConfig 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig@2022-12-01-preview' = {
  parent: resourceSymbolicName
  name: 'default'
  properties: {
    metricConfigurations: [
      {
        counterSets: [
          {
            counters: [
              {
                additionalDimensions: [
                  {
                    sourceName: 'string'
                    sourceType: 'string'
                  }
                ]
                dimensionFilter: [
                  {
                    sourceName: 'string'
                    sourceType: 'string'
                  }
                ]
                instance: 'string'
                name: 'string'
              }
            ]
          }
        ]
        mdmAccount: 'string'
        metricNameSpace: 'string'
        resourceId: 'string'
      }
    ]
  }
}

屬性值

Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig

名字 描述 價值
名字 資源名稱 'default' (必要)
父代 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源。
類型資源的符號名稱:dataBoxEdgeDevices/roles
性能 計量設定屬性。 MonitoringMetricConfigurationProperties (必要)

MetricConfiguration

名字 描述 價值
計數器集 與裝置相關聯的IoT中樞主機名。 MetricCounterSet[] (必要)
mdm帳戶 應推送計數器的 MDM 帳戶。 字串
metricNameSpace 計數器應推送至其中的 MDM 命名空間。 如果指定 MDMAccount,則需要此專案 字串
資源ID 應推送計量的資源標識碼。 字串 (必要)

MetricCounter 指標計數器

名字 描述 價值
additionalDimensions 要新增至計量的其他維度。 度量維度
dimensionFilter 維度篩選條件。 度量維度
執行個體 應該從中收集計數器的 實例。 字串
名字 計數器名稱。 字串 (必要)

MetricCounterSet 指標計數器集

名字 描述 價值
計數器 應該在此集合中收集的計數器。 MetricCounter[] (必要)

MetricDimension 維度

名字 描述 價值
源名稱 維度值。 字串 (必要)
資源類型 維度類型。 字串 (必要)

MonitoringMetricConfigurationProperties

名字 描述 價值
metricConfigurations 計量組態詳細數據 MetricConfiguration[] (必要)

ARM 樣本資源定義

dataBoxEdgeDevices/roles/monitoringConfig 資源類型可以使用目標作業來部署:

使用範例

資源格式

若要建立 Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig",
  "apiVersion": "2022-12-01-preview",
  "name": "string",
  "properties": {
    "metricConfigurations": [
      {
        "counterSets": [
          {
            "counters": [
              {
                "additionalDimensions": [
                  {
                    "sourceName": "string",
                    "sourceType": "string"
                  }
                ],
                "dimensionFilter": [
                  {
                    "sourceName": "string",
                    "sourceType": "string"
                  }
                ],
                "instance": "string",
                "name": "string"
              }
            ]
          }
        ],
        "mdmAccount": "string",
        "metricNameSpace": "string",
        "resourceId": "string"
      }
    ]
  }
}

屬性值

Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig

名字 描述 價值
apiVersion API 版本 “2022-12-01-預覽”
名字 資源名稱 'default' (必要)
性能 計量設定屬性。 MonitoringMetricConfigurationProperties (必要)
型別 資源類型 “Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig”

MetricConfiguration

名字 描述 價值
計數器集 與裝置相關聯的IoT中樞主機名。 MetricCounterSet[] (必要)
mdm帳戶 應推送計數器的 MDM 帳戶。 字串
metricNameSpace 計數器應推送至其中的 MDM 命名空間。 如果指定 MDMAccount,則需要此專案 字串
資源ID 應推送計量的資源標識碼。 字串 (必要)

MetricCounter 指標計數器

名字 描述 價值
additionalDimensions 要新增至計量的其他維度。 度量維度
dimensionFilter 維度篩選條件。 度量維度
執行個體 應該從中收集計數器的 實例。 字串
名字 計數器名稱。 字串 (必要)

MetricCounterSet 指標計數器集

名字 描述 價值
計數器 應該在此集合中收集的計數器。 MetricCounter[] (必要)

MetricDimension 維度

名字 描述 價值
源名稱 維度值。 字串 (必要)
資源類型 維度類型。 字串 (必要)

MonitoringMetricConfigurationProperties

名字 描述 價值
metricConfigurations 計量組態詳細數據 MetricConfiguration[] (必要)

Terraform (AzAPI 提供者) 資源定義

dataBoxEdgeDevices/roles/monitoringConfig 資源類型可以使用目標作業來部署:

  • 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。

資源格式

若要建立 Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig@2022-12-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      metricConfigurations = [
        {
          counterSets = [
            {
              counters = [
                {
                  additionalDimensions = [
                    {
                      sourceName = "string"
                      sourceType = "string"
                    }
                  ]
                  dimensionFilter = [
                    {
                      sourceName = "string"
                      sourceType = "string"
                    }
                  ]
                  instance = "string"
                  name = "string"
                }
              ]
            }
          ]
          mdmAccount = "string"
          metricNameSpace = "string"
          resourceId = "string"
        }
      ]
    }
  }
}

屬性值

Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig

名字 描述 價值
名字 資源名稱 'default' (必要)
父項識別碼 此資源為父系之資源的標識碼。 類型資源的標識碼:dataBoxEdgeDevices/roles
性能 計量設定屬性。 MonitoringMetricConfigurationProperties (必要)
型別 資源類型 “Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig@2022-12-01-preview”

MetricConfiguration

名字 描述 價值
計數器集 與裝置相關聯的IoT中樞主機名。 MetricCounterSet[] (必要)
mdm帳戶 應推送計數器的 MDM 帳戶。 字串
metricNameSpace 計數器應推送至其中的 MDM 命名空間。 如果指定 MDMAccount,則需要此專案 字串
資源ID 應推送計量的資源標識碼。 字串 (必要)

MetricCounter 指標計數器

名字 描述 價值
additionalDimensions 要新增至計量的其他維度。 度量維度
dimensionFilter 維度篩選條件。 度量維度
執行個體 應該從中收集計數器的 實例。 字串
名字 計數器名稱。 字串 (必要)

MetricCounterSet 指標計數器集

名字 描述 價值
計數器 應該在此集合中收集的計數器。 MetricCounter[] (必要)

MetricDimension 維度

名字 描述 價值
源名稱 維度值。 字串 (必要)
資源類型 維度類型。 字串 (必要)

MonitoringMetricConfigurationProperties

名字 描述 價值
metricConfigurations 計量組態詳細數據 MetricConfiguration[] (必要)