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
MetricConfiguration
| 名字 |
描述 |
價值 |
| 計數器集 |
與裝置相關聯的IoT中樞主機名。 |
MetricCounterSet[] (必要) |
| mdm帳戶 |
應推送計數器的 MDM 帳戶。 |
字串 |
| metricNameSpace |
計數器應推送至其中的 MDM 命名空間。 如果指定 MDMAccount,則需要此專案 |
字串 |
| 資源ID |
應推送計量的資源標識碼。 |
字串 (必要) |
MetricCounter 指標計數器
| 名字 |
描述 |
價值 |
| additionalDimensions |
要新增至計量的其他維度。 |
度量維度 |
| dimensionFilter |
維度篩選條件。 |
度量維度 |
| 執行個體 |
應該從中收集計數器的 實例。 |
字串 |
| 名字 |
計數器名稱。 |
字串 (必要) |
MetricCounterSet 指標計數器集
MetricDimension 維度
| 名字 |
描述 |
價值 |
| 源名稱 |
維度值。 |
字串 (必要) |
| 資源類型 |
維度類型。 |
字串 (必要) |
MonitoringMetricConfigurationProperties
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 指標計數器集
MetricDimension 維度
| 名字 |
描述 |
價值 |
| 源名稱 |
維度值。 |
字串 (必要) |
| 資源類型 |
維度類型。 |
字串 (必要) |
MonitoringMetricConfigurationProperties
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
MetricConfiguration
| 名字 |
描述 |
價值 |
| 計數器集 |
與裝置相關聯的IoT中樞主機名。 |
MetricCounterSet[] (必要) |
| mdm帳戶 |
應推送計數器的 MDM 帳戶。 |
字串 |
| metricNameSpace |
計數器應推送至其中的 MDM 命名空間。 如果指定 MDMAccount,則需要此專案 |
字串 |
| 資源ID |
應推送計量的資源標識碼。 |
字串 (必要) |
MetricCounter 指標計數器
| 名字 |
描述 |
價值 |
| additionalDimensions |
要新增至計量的其他維度。 |
度量維度 |
| dimensionFilter |
維度篩選條件。 |
度量維度 |
| 執行個體 |
應該從中收集計數器的 實例。 |
字串 |
| 名字 |
計數器名稱。 |
字串 (必要) |
MetricCounterSet 指標計數器集
MetricDimension 維度
| 名字 |
描述 |
價值 |
| 源名稱 |
維度值。 |
字串 (必要) |
| 資源類型 |
維度類型。 |
字串 (必要) |
MonitoringMetricConfigurationProperties