Share via


Microsoft.Network networkWatchers/connectionMonitors 2022-11-01

Bicep 資源定義

networkWatchers/connectionMonitors 資源類型可以使用目標作業來部署:

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

資源格式

若要建立 Microsoft.Network/networkWatchers/connectionMonitors 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.Network/networkWatchers/connectionMonitors@2022-11-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  parent: resourceSymbolicName
  properties: {
    autoStart: bool
    destination: {
      address: 'string'
      port: int
      resourceId: 'string'
    }
    endpoints: [
      {
        address: 'string'
        coverageLevel: 'string'
        filter: {
          items: [
            {
              address: 'string'
              type: 'AgentAddress'
            }
          ]
          type: 'Include'
        }
        name: 'string'
        resourceId: 'string'
        scope: {
          exclude: [
            {
              address: 'string'
            }
          ]
          include: [
            {
              address: 'string'
            }
          ]
        }
        type: 'string'
      }
    ]
    monitoringIntervalInSeconds: int
    notes: 'string'
    outputs: [
      {
        type: 'Workspace'
        workspaceSettings: {
          workspaceResourceId: 'string'
        }
      }
    ]
    source: {
      port: int
      resourceId: 'string'
    }
    testConfigurations: [
      {
        httpConfiguration: {
          method: 'string'
          path: 'string'
          port: int
          preferHTTPS: bool
          requestHeaders: [
            {
              name: 'string'
              value: 'string'
            }
          ]
          validStatusCodeRanges: [
            'string'
          ]
        }
        icmpConfiguration: {
          disableTraceRoute: bool
        }
        name: 'string'
        preferredIPVersion: 'string'
        protocol: 'string'
        successThreshold: {
          checksFailedPercent: int
          roundTripTimeMs: int
        }
        tcpConfiguration: {
          destinationPortBehavior: 'string'
          disableTraceRoute: bool
          port: int
        }
        testFrequencySec: int
      }
    ]
    testGroups: [
      {
        destinations: [
          'string'
        ]
        disable: bool
        name: 'string'
        sources: [
          'string'
        ]
        testConfigurations: [
          'string'
        ]
      }
    ]
  }
}

屬性值

networkWatchers/connectionMonitors

名稱 描述
NAME 資源名稱

瞭解如何在 Bicep 中設定子資源的名稱和類型。
字串 (必要)
location 線上監視位置。 字串
tags 線上監視器標籤。 標記名稱和值的字典。 請參閱 範本中的標記
父系 (parent) 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源之外宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型資源的符號名稱: networkWatchers
properties 線上監視器的屬性。 ConnectionMonitorParametersOrConnectionMonitorResult... 必要 ()

ConnectionMonitorParametersOrConnectionMonitorResult...

名稱 描述
autoStart 判斷線上監視器是否會在建立後自動啟動。 bool
目的地 描述線上監視器的目的地。 ConnectionMonitorDestination
端點 線上監視端點的清單。 ConnectionMonitorEndpoint[]
monitoringIntervalInSeconds 監視間隔以秒為單位。 int

約束:
最小值 = 30
最大值 = 1800
附註 要與連線監視器相關聯的選擇性附註。 字串
outputs 線上監視器輸出的清單。 ConnectionMonitorOutput[]
來源 描述線上監視器的來源。 ConnectionMonitorSource
testConfigurations 線上監視器測試組態的清單。 ConnectionMonitorTestConfiguration[]
testGroups 線上監視器測試群組的清單。 ConnectionMonitorTestGroup[]

ConnectionMonitorDestination

名稱 描述
address 線上監視器目的地的位址 (IP 或功能變數名稱) 。 string
連接埠 線上監視器所使用的目的地埠。 int

約束:
最小值 = 0
最大值 = 65535
resourceId 線上監視器用來作為目的地的資源標識碼。 字串

ConnectionMonitorEndpoint

名稱 描述
address 線上監視端點 (IP 或功能變數名稱) 位址。 字串
coverageLevel 端點的測試涵蓋範圍。 'AboveAverage'
'Average'
'BelowAverage'
'Default'
'Full'
'Low'
filter 篩選端點內的子專案。 ConnectionMonitorEndpointFilter
NAME 線上監視端點的名稱。 需要字串 ()
resourceId 線上監視端點的資源標識碼。 字串
範圍 端點範圍。 ConnectionMonitorEndpointScope
類型 端點類型。 'AzureArcVM'
'AzureSubnet'
'AzureVM'
'AzureVMSS'
'AzureVNet'
'ExternalAddress'
'MMAWorkspaceMachine'
'MMAWorkspaceNetwork'

ConnectionMonitorEndpointFilter

名稱 描述
項目 篩選中的項目清單。 ConnectionMonitorEndpointFilterItem[]
類型 端點篩選的行為。 目前僅支援 『Include』。 'Include'

ConnectionMonitorEndpointFilterItem

名稱 描述
address 篩選項目的位址。 字串
type 篩選中包含的項目類型。 目前僅支援 『AgentAddress』。 'AgentAddress'

ConnectionMonitorEndpointScope

名稱 描述
排除 必須從端點範圍中排除的項目清單。 ConnectionMonitorEndpointScopeItem[]
include 需要包含至端點範圍的項目清單。 ConnectionMonitorEndpointScopeItem[]

ConnectionMonitorEndpointScopeItem

名稱 描述
address 端點項目的位址。 支援的類型為 IPv4/IPv6 子網掩碼或 IPv4/IPv6 IP 位址。 字串

ConnectionMonitorOutput

名稱 描述
類型 線上監視器輸出目的地類型。 目前僅支援「工作區」。 'Workspace'
workspaceSettings 描述將輸出產生至記錄分析工作區的設定。 ConnectionMonitorWorkspaceSettings

ConnectionMonitorWorkspaceSettings

名稱 描述
workspaceResourceId Log Analytics 工作區資源標識符。 字串

ConnectionMonitorSource

名稱 描述
連接埠 連接監視器所使用的來源埠。 int

約束:
最小值 = 0
最大值 = 65535
resourceId 線上監視器用來作為來源的資源標識碼。 需要字串 ()

ConnectionMonitorTestConfiguration

名稱 描述
httpConfiguration 用來透過 HTTP 執行測試評估的參數。 ConnectionMonitorHttpConfiguration
icmpConfiguration 用來對ICMP執行測試評估的參數。 ConnectionMonitorIcmpConfiguration
NAME 線上監視器測試組態的名稱。 需要字串 ()
preferredIPVersion 測試評估中使用的慣用IP版本。 線上監視器可能會根據其他參數選擇使用不同的版本。 'IPv4'
'IPv6'
protocol 測試評估中使用的通訊協定。 'Http'
'Icmp'
需要 『Tcp』 ()
successThreshold 宣告測試成功的臨界值。 ConnectionMonitorSuccessThreshold
tcpConfiguration 用來透過 TCP 執行測試評估的參數。 ConnectionMonitorTcpConfiguration
testFrequencySec 測試評估的頻率,以秒為單位。 int

ConnectionMonitorHttpConfiguration

名稱 描述
method 要使用的 HTTP 方法。 'Get'
'Post'
path URI 的路徑元件。 例如,“/dir1/dir2”。 string
連接埠 要連接的埠。 int

約束:
最小值 = 0
最大值 = 65535
preferHTTPS 值,指出在選擇不明確的情況下,是否偏好使用 HTTPS。 bool
requestHeaders 要與要求一起傳輸的 HTTP 標頭。 HttpHeader[]
validStatusCodeRanges 要考慮成功的 HTTP 狀態代碼。 例如,“2xx,301-304,418”。 string[]

HttpHeader

名稱 描述
NAME HTTP 標頭中的名稱。 字串
value HTTP 標頭中的值。 字串

ConnectionMonitorIcmpConfiguration

名稱 描述
disableTraceRoute 值,指出是否應該停用追蹤路由的路徑評估。 bool

ConnectionMonitorSuccessThreshold

名稱 描述
checksFailedPercent 允許測試評估為成功的失敗檢查百分比上限。 int
roundTripTimeMs 允許測試評估為成功的毫秒,以毫秒為單位的來回時間上限。 int

ConnectionMonitorTcpConfiguration

名稱 描述
destinationPortBehavior 目的地埠行為。 'ListenIfAvailable'
'None'
disableTraceRoute 值,指出是否應該停用追蹤路由的路徑評估。 bool
連接埠 要連接的埠。 int

約束:
最小值 = 0
最大值 = 65535

ConnectionMonitorTestGroup

名稱 描述
目的地 目的地端點名稱的清單。 string[] (必要)
disable 值,指出是否停用測試群組。 bool
NAME 線上監視器測試群組的名稱。 需要字串 ()
sources 來源端點名稱的清單。 string[] (必要)
testConfigurations 測試組態名稱的清單。 string[] (必要)

ARM 範本資源定義

networkWatchers/connectionMonitors 資源類型可以使用目標作業來部署:

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

資源格式

若要建立 Microsoft.Network/networkWatchers/connectionMonitors 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.Network/networkWatchers/connectionMonitors",
  "apiVersion": "2022-11-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "autoStart": "bool",
    "destination": {
      "address": "string",
      "port": "int",
      "resourceId": "string"
    },
    "endpoints": [
      {
        "address": "string",
        "coverageLevel": "string",
        "filter": {
          "items": [
            {
              "address": "string",
              "type": "AgentAddress"
            }
          ],
          "type": "Include"
        },
        "name": "string",
        "resourceId": "string",
        "scope": {
          "exclude": [
            {
              "address": "string"
            }
          ],
          "include": [
            {
              "address": "string"
            }
          ]
        },
        "type": "string"
      }
    ],
    "monitoringIntervalInSeconds": "int",
    "notes": "string",
    "outputs": [
      {
        "type": "Workspace",
        "workspaceSettings": {
          "workspaceResourceId": "string"
        }
      }
    ],
    "source": {
      "port": "int",
      "resourceId": "string"
    },
    "testConfigurations": [
      {
        "httpConfiguration": {
          "method": "string",
          "path": "string",
          "port": "int",
          "preferHTTPS": "bool",
          "requestHeaders": [
            {
              "name": "string",
              "value": "string"
            }
          ],
          "validStatusCodeRanges": [ "string" ]
        },
        "icmpConfiguration": {
          "disableTraceRoute": "bool"
        },
        "name": "string",
        "preferredIPVersion": "string",
        "protocol": "string",
        "successThreshold": {
          "checksFailedPercent": "int",
          "roundTripTimeMs": "int"
        },
        "tcpConfiguration": {
          "destinationPortBehavior": "string",
          "disableTraceRoute": "bool",
          "port": "int"
        },
        "testFrequencySec": "int"
      }
    ],
    "testGroups": [
      {
        "destinations": [ "string" ],
        "disable": "bool",
        "name": "string",
        "sources": [ "string" ],
        "testConfigurations": [ "string" ]
      }
    ]
  }
}

屬性值

networkWatchers/connectionMonitors

名稱 描述
類型 資源類型 'Microsoft.Network/networkWatchers/connectionMonitors'
apiVersion 資源 API 版本 '2022-11-01'
NAME 資源名稱

瞭解如何在 JSON ARM 範本中設定子資源的名稱和類型。
需要字串 ()
location 線上監視位置。 字串
tags 線上監視器標籤。 標記名稱和值的字典。 請參閱 範本中的標籤
properties 連接監視器的屬性。 ConnectionMonitorParametersOrConnectionMonitorResult... 必要 ()

ConnectionMonitorParametersOrConnectionMonitorResult...

名稱 描述
autoStart 判斷線上監視器是否會在建立後自動啟動。 bool
目的地 描述線上監視器的目的地。 ConnectionMonitorDestination
端點 線上監視端點的清單。 ConnectionMonitorEndpoint[]
monitoringIntervalInSeconds 以秒為單位的監視間隔。 int

約束:
最小值 = 30
最大值 = 1800
附註 要與連線監視器相關聯的選擇性附註。 字串
outputs 線上監視器輸出的清單。 ConnectionMonitorOutput[]
來源 描述線上監視器的來源。 ConnectionMonitorSource
testConfigurations 線上監視器測試組態的清單。 ConnectionMonitorTestConfiguration[]
testGroups 線上監視器測試群組的清單。 ConnectionMonitorTestGroup[]

ConnectionMonitorDestination

名稱 描述
address 線上監視器目的地的位址 (IP 或功能變數名稱) 。 string
連接埠 線上監視器所使用的目的地埠。 int

約束:
最小值 = 0
最大值 = 65535
resourceId 線上監視器用來作為目的地的資源標識碼。 字串

ConnectionMonitorEndpoint

名稱 描述
address (IP或功能變數名稱) 連線監視端點的位址。 字串
coverageLevel 端點的測試涵蓋範圍。 'AboveAverage'
'Average'
'BelowAverage'
'Default'
'Full'
'Low'
filter 篩選端點內的子專案。 ConnectionMonitorEndpointFilter
NAME 線上監視端點的名稱。 字串 (必要)
resourceId 線上監視端點的資源標識碼。 字串
範圍 端點範圍。 ConnectionMonitorEndpointScope
類型 端點類型。 'AzureArcVM'
'AzureSubnet'
'AzureVM'
'AzureVMSS'
'AzureVNet'
'ExternalAddress'
'MMAWorkspaceMachine'
'MMAWorkspaceNetwork'

ConnectionMonitorEndpointFilter

名稱 描述
項目 篩選中的項目清單。 ConnectionMonitorEndpointFilterItem[]
類型 端點篩選的行為。 目前僅支援 『Include』。 'Include'

ConnectionMonitorEndpointFilterItem

名稱 描述
address 篩選項目的位址。 字串
type 篩選中包含的項目類型。 目前僅支援 『AgentAddress』。 'AgentAddress'

ConnectionMonitorEndpointScope

名稱 描述
排除 必須從端點範圍中排除的項目清單。 ConnectionMonitorEndpointScopeItem[]
include 需要包含至端點範圍的項目清單。 ConnectionMonitorEndpointScopeItem[]

ConnectionMonitorEndpointScopeItem

名稱 描述
address 端點項目的位址。 支援的類型為 IPv4/IPv6 子網掩碼或 IPv4/IPv6 IP 位址。 字串

ConnectionMonitorOutput

名稱 描述
類型 線上監視器輸出目的地類型。 目前僅支援「工作區」。 'Workspace'
workspaceSettings 描述將輸出產生至記錄分析工作區的設定。 ConnectionMonitorWorkspaceSettings

ConnectionMonitorWorkspaceSettings

名稱 描述
workspaceResourceId Log Analytics 工作區資源標識符。 字串

ConnectionMonitorSource

名稱 描述
連接埠 線上監視器所使用的來源埠。 int

約束:
最小值 = 0
最大值 = 65535
resourceId 線上監視器用來作為來源的資源標識碼。 字串 (必要)

ConnectionMonitorTestConfiguration

名稱 描述
httpConfiguration 用來透過 HTTP 執行測試評估的參數。 ConnectionMonitorHttpConfiguration
icmpConfiguration 用來對ICMP執行測試評估的參數。 ConnectionMonitorIcmpConfiguration
NAME 線上監視器測試組態的名稱。 字串 (必要)
preferredIPVersion 測試評估中要使用的慣用IP版本。 線上監視器可能會根據其他參數選擇使用不同的版本。 'IPv4'
'IPv6'
protocol 測試評估中使用的通訊協定。 'Http'
'Icmp'
必要的 『Tcp』 ()
successThreshold 宣告測試成功的臨界值。 ConnectionMonitorSuccessThreshold
tcpConfiguration 用來透過 TCP 執行測試評估的參數。 ConnectionMonitorTcpConfiguration
testFrequencySec 測試評估的頻率,以秒為單位。 int

ConnectionMonitorHttpConfiguration

名稱 描述
method 要使用的 HTTP 方法。 'Get'
'Post'
path URI 的路徑元件。 例如,“/dir1/dir2”。 string
連接埠 要連線的埠。 int

約束:
最小值 = 0
最大值 = 65535
preferHTTPS 值,指出在選擇不明確的情況下,是否偏好使用 HTTPS。 bool
requestHeaders 要與要求一起傳輸的 HTTP 標頭。 HttpHeader[]
validStatusCodeRanges 要考慮成功的 HTTP 狀態代碼。 例如,“2xx,301-304,418”。 string[]

HttpHeader

名稱 描述
NAME HTTP 標頭中的名稱。 字串
value HTTP 標頭中的值。 字串

ConnectionMonitorIcmpConfiguration

名稱 描述
disableTraceRoute 值,指出是否應該停用具有追蹤路由的路徑評估。 bool

ConnectionMonitorSuccessThreshold

名稱 描述
checksFailedPercent 允許測試評估為成功的失敗檢查百分比上限。 int
roundTripTimeMs 允許測試評估為成功的來回時間上限,以毫秒為單位。 int

ConnectionMonitorTcpConfiguration

名稱 描述
destinationPortBehavior 目的地埠行為。 'ListenIfAvailable'
'None'
disableTraceRoute 值,指出是否應該停用具有追蹤路由的路徑評估。 bool
連接埠 要連線的埠。 int

約束:
最小值 = 0
最大值 = 65535

ConnectionMonitorTestGroup

名稱 描述
目的地 目的地端點名稱的清單。 string[] (必要)
disable 值,指出測試群組是否已停用。 bool
NAME 線上監視器測試群組的名稱。 字串 (必要)
sources 來源端點名稱的清單。 string[] (必要)
testConfigurations 測試組態名稱的清單。 string[] (必要)

Terraform (AzAPI 提供者) 資源定義

networkWatchers/connectionMonitors 資源類型可以使用目標作業來部署:

  • 資源群組

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

資源格式

若要建立 Microsoft.Network/networkWatchers/connectionMonitors 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/networkWatchers/connectionMonitors@2022-11-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      autoStart = bool
      destination = {
        address = "string"
        port = int
        resourceId = "string"
      }
      endpoints = [
        {
          address = "string"
          coverageLevel = "string"
          filter = {
            items = [
              {
                address = "string"
                type = "AgentAddress"
              }
            ]
            type = "Include"
          }
          name = "string"
          resourceId = "string"
          scope = {
            exclude = [
              {
                address = "string"
              }
            ]
            include = [
              {
                address = "string"
              }
            ]
          }
          type = "string"
        }
      ]
      monitoringIntervalInSeconds = int
      notes = "string"
      outputs = [
        {
          type = "Workspace"
          workspaceSettings = {
            workspaceResourceId = "string"
          }
        }
      ]
      source = {
        port = int
        resourceId = "string"
      }
      testConfigurations = [
        {
          httpConfiguration = {
            method = "string"
            path = "string"
            port = int
            preferHTTPS = bool
            requestHeaders = [
              {
                name = "string"
                value = "string"
              }
            ]
            validStatusCodeRanges = [
              "string"
            ]
          }
          icmpConfiguration = {
            disableTraceRoute = bool
          }
          name = "string"
          preferredIPVersion = "string"
          protocol = "string"
          successThreshold = {
            checksFailedPercent = int
            roundTripTimeMs = int
          }
          tcpConfiguration = {
            destinationPortBehavior = "string"
            disableTraceRoute = bool
            port = int
          }
          testFrequencySec = int
        }
      ]
      testGroups = [
        {
          destinations = [
            "string"
          ]
          disable = bool
          name = "string"
          sources = [
            "string"
          ]
          testConfigurations = [
            "string"
          ]
        }
      ]
    }
  })
}

屬性值

networkWatchers/connectionMonitors

名稱 描述
類型 資源類型 “Microsoft.Network/networkWatchers/connectionMonitors@2022-11-01”
NAME 資源名稱 字串 (必要)
location 線上監視位置。 字串
parent_id 此資源之父系的資源標識碼。 類型資源的標識碼: networkWatchers
tags 線上監視器標籤。 標記名稱和值的字典。
properties 線上監視器的屬性。 ConnectionMonitorParametersOrConnectionMonitorResult... 必要 ()

ConnectionMonitorParametersOrConnectionMonitorResult...

名稱 描述
autoStart 判斷線上監視器是否會在建立後自動啟動。 bool
目的地 描述線上監視器的目的地。 ConnectionMonitorDestination
端點 線上監視端點的清單。 ConnectionMonitorEndpoint[]
monitoringIntervalInSeconds 監視間隔以秒為單位。 int

約束:
最小值 = 30
最大值 = 1800
附註 要與連線監視器相關聯的選擇性附註。 字串
outputs 線上監視器輸出的清單。 ConnectionMonitorOutput[]
來源 描述線上監視器的來源。 ConnectionMonitorSource
testConfigurations 線上監視器測試組態的清單。 ConnectionMonitorTestConfiguration[]
testGroups 線上監視器測試群組的清單。 ConnectionMonitorTestGroup[]

ConnectionMonitorDestination

名稱 描述
address 線上監視器目的地的位址 (IP 或功能變數名稱) 。 string
連接埠 線上監視器所使用的目的地埠。 int

約束:
最小值 = 0
最大值 = 65535
resourceId 線上監視器用來作為目的地的資源標識碼。 字串

ConnectionMonitorEndpoint

名稱 描述
address (IP或功能變數名稱) 連線監視端點的位址。 字串
coverageLevel 端點的測試涵蓋範圍。 “AboveAverage”
“Average”
“BelowAverage”
“Default”
“Full”
"Low"
filter 篩選端點內的子專案。 ConnectionMonitorEndpointFilter
NAME 線上監視端點的名稱。 字串 (必要)
resourceId 線上監視端點的資源標識碼。 字串
範圍 端點範圍。 ConnectionMonitorEndpointScope
類型 端點類型。 “AzureArcVM”
“AzureSubnet”
“AzureVM”
“AzureVMSS”
“AzureVNet”
“ExternalAddress”
“MMAWorkspaceMachine”
“MMAWorkspaceNetwork”

ConnectionMonitorEndpointFilter

名稱 描述
項目 篩選中的項目清單。 ConnectionMonitorEndpointFilterItem[]
類型 端點篩選的行為。 目前僅支援 『Include』。 “Include”

ConnectionMonitorEndpointFilterItem

名稱 描述
address 篩選項目的位址。 字串
type 篩選中包含的項目類型。 目前僅支援 『AgentAddress』。 “AgentAddress”

ConnectionMonitorEndpointScope

名稱 描述
排除 必須從端點範圍中排除的項目清單。 ConnectionMonitorEndpointScopeItem[]
include 需要包含至端點範圍的項目清單。 ConnectionMonitorEndpointScopeItem[]

ConnectionMonitorEndpointScopeItem

名稱 描述
address 端點項目的位址。 支援的類型為 IPv4/IPv6 子網掩碼或 IPv4/IPv6 IP 位址。 字串

ConnectionMonitorOutput

名稱 描述
類型 線上監視器輸出目的地類型。 目前僅支援「工作區」。 “Workspace”
workspaceSettings 描述將輸出產生至記錄分析工作區的設定。 ConnectionMonitorWorkspaceSettings

ConnectionMonitorWorkspaceSettings

名稱 描述
workspaceResourceId Log Analytics 工作區資源標識符。 字串

ConnectionMonitorSource

名稱 描述
連接埠 線上監視器所使用的來源埠。 int

約束:
最小值 = 0
最大值 = 65535
resourceId 線上監視器用來作為來源的資源標識碼。 字串 (必要)

ConnectionMonitorTestConfiguration

名稱 描述
httpConfiguration 用來透過 HTTP 執行測試評估的參數。 ConnectionMonitorHttpConfiguration
icmpConfiguration 用來對ICMP執行測試評估的參數。 ConnectionMonitorIcmpConfiguration
NAME 線上監視器測試組態的名稱。 字串 (必要)
preferredIPVersion 測試評估中要使用的慣用IP版本。 線上監視器可能會根據其他參數選擇使用不同的版本。 “IPv4”
“IPv6”
protocol 測試評估中使用的通訊協定。 “Http”
“Icmp”
“Tcp” (必要)
successThreshold 宣告測試成功的臨界值。 ConnectionMonitorSuccessThreshold
tcpConfiguration 用來透過 TCP 執行測試評估的參數。 ConnectionMonitorTcpConfiguration
testFrequencySec 測試評估的頻率,以秒為單位。 int

ConnectionMonitorHttpConfiguration

名稱 描述
method 要使用的 HTTP 方法。 “Get”
“Post”
path URI 的路徑元件。 例如,“/dir1/dir2”。 string
連接埠 要連線的埠。 int

約束:
最小值 = 0
最大值 = 65535
preferHTTPS 值,指出在選擇不明確的情況下,是否偏好使用 HTTPS。 bool
requestHeaders 要與要求一起傳輸的 HTTP 標頭。 HttpHeader[]
validStatusCodeRanges 要考慮成功的 HTTP 狀態代碼。 例如,“2xx,301-304,418”。 string[]

HttpHeader

名稱 描述
NAME HTTP 標頭中的名稱。 字串
value HTTP 標頭中的值。 字串

ConnectionMonitorIcmpConfiguration

名稱 描述
disableTraceRoute 值,指出是否應該停用追蹤路由的路徑評估。 bool

ConnectionMonitorSuccessThreshold

名稱 描述
checksFailedPercent 允許測試評估為成功的失敗檢查百分比上限。 int
roundTripTimeMs 允許測試評估為成功的毫秒,以毫秒為單位的來回時間上限。 int

ConnectionMonitorTcpConfiguration

名稱 描述
destinationPortBehavior 目的地埠行為。 “ListenIfAvailable”
"None"
disableTraceRoute 值,指出是否應該停用追蹤路由的路徑評估。 bool
連接埠 要連接的埠。 int

約束:
最小值 = 0
最大值 = 65535

ConnectionMonitorTestGroup

名稱 描述
目的地 目的地端點名稱的清單。 string[] (必要)
disable 值,指出是否停用測試群組。 bool
NAME 線上監視器測試群組的名稱。 需要字串 ()
sources 來源端點名稱的清單。 string[] (必要)
testConfigurations 測試組態名稱的清單。 string[] (必要)