Microsoft。Insights scheduledQueryRules 2021-08-01

言論

關於部署監控解決方案的指引,請參見 使用 Bicep 建立監控資源。

Bicep 資源定義

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

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

使用範例

Bicep 範例

在 Azure 監視器 中部署 AlertingAction 排程查詢規則資源的基本範例。

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource component 'Microsoft.Insights/components@2020-02-02' = {
  name: resourceName
  location: location
  kind: 'web'
  properties: {
    Application_Type: 'web'
    DisableIpMasking: false
    DisableLocalAuth: false
    ForceCustomerStorageForProfiler: false
    RetentionInDays: 90
    SamplingPercentage: 100
    publicNetworkAccessForIngestion: 'Enabled'
    publicNetworkAccessForQuery: 'Enabled'
  }
}

resource scheduledQueryRule 'Microsoft.Insights/scheduledQueryRules@2021-08-01' = {
  name: resourceName
  location: location
  kind: 'LogAlert'
  properties: {
    autoMitigate: false
    checkWorkspaceAlertsStorageConfigured: false
    criteria: {
      allOf: [
        {
          operator: 'Equal'
          query: ''' requests
| summarize CountByCountry=count() by client_CountryOrRegion
'''
          threshold: 5
          timeAggregation: 'Count'
        }
      ]
    }
    enabled: true
    evaluationFrequency: 'PT5M'
    scopes: [
      component.id
    ]
    severity: 3
    skipQueryValidation: false
    windowSize: 'PT5M'
  }
}

Azure 已驗證的模組

以下的 Azure 已驗證模組 可用於部署此資源類型。

模組 描述
排程查詢規則 排程查詢規則的AVM資源模組

資源格式

若要建立 Microsoft.Insights/scheduledQueryRules 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.Insights/scheduledQueryRules@2021-08-01' = {
  kind: 'string'
  location: 'string'
  name: 'string'
  properties: {
    actions: {
      actionGroups: [
        'string'
      ]
      customProperties: {
        {customized property}: 'string'
      }
    }
    autoMitigate: bool
    checkWorkspaceAlertsStorageConfigured: bool
    criteria: {
      allOf: [
        {
          dimensions: [
            {
              name: 'string'
              operator: 'string'
              values: [
                'string'
              ]
            }
          ]
          failingPeriods: {
            minFailingPeriodsToAlert: int
            numberOfEvaluationPeriods: int
          }
          metricMeasureColumn: 'string'
          metricName: 'string'
          operator: 'string'
          query: 'string'
          resourceIdColumn: 'string'
          threshold: int
          timeAggregation: 'string'
        }
      ]
    }
    description: 'string'
    displayName: 'string'
    enabled: bool
    evaluationFrequency: 'string'
    muteActionsDuration: 'string'
    overrideQueryTimeRange: 'string'
    scopes: [
      'string'
    ]
    severity: int
    skipQueryValidation: bool
    targetResourceTypes: [
      'string'
    ]
    windowSize: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.Insights/scheduledQueryRules(排程查詢規則)

名字 描述 價值
類 指出排程查詢規則的類型。 預設值為LogAlert。 “日誌警報”
“LogToMetric”
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串 (必要)
性能 資源的規則屬性。 ScheduledQueryRuleProperties (必要)
標籤 資源標籤 標記名稱和值的字典。 請參考模板中的標籤

行動

名字 描述 價值
作組 動作群組資源標識碼,以在警示引發時叫用。 字串[]
自定義屬性 (customProperties) 警示承載的屬性。 作CustomProperties

作CustomProperties

名字 描述 價值

條件

名字 描述 價值
尺寸 維度條件清單 維度[]
失敗時期 引發警示所需的所選回溯時間範圍內所需的違規數目下限。 僅與 LogAlert 類型的規則相關。 ConditionFailingPeriods
metricMeasureColumn 包含計量量值編號的數據行。 僅與 LogAlert 類型的規則相關。 字串
metricName (指標名稱) 要傳送的計量名稱。 只有 LogToMetric 類型的規則才相關且必要。 字串
操作員 criteria 運算子。 只有 LogAlert 類型的規則才相關且必要。 “等於”
“大於”
“大於或等於”
小於'
'LessThanOrEqual'
查詢 記錄查詢警示 字串
resourceIdColumn 包含資源標識碼的數據行。數據行的內容必須是格式化為資源標識碼的 URI。僅與 LogAlert 類型的規則相關。 字串
閾值 啟動警示的準則臨界值。 只有 LogAlert 類型的規則才相關且必要。 整數 (int)
時間聚合 匯總類型。 只有 LogAlert 類型的規則才相關且必要。 “平均”
'計數'
“最大”
“最低”
“總計”

ConditionFailingPeriods

名字 描述 價值
最小故障周期報警 觸發警示的違規次數。 應小於或等於 numberOfEvaluationPeriods。 預設值為 1 整數 (int)
評估期數 匯總回溯點的數目。 回溯時間範圍是根據匯總數據粒度 (windowSize) 和選取的匯總點數目來計算。 預設值為 1 整數 (int)

尺寸

名字 描述 價值
名字 維度的名稱 字串 (必要)
操作員 維度值的運算符 '排除'
'Include' (必要)
值 維度值清單 string[] (必要)

ScheduledQueryRuleCriteria

名字 描述 價值
所有 要根據指定範圍評估的條件清單 條件[]

ScheduledQueryRuleProperties

名字 描述 價值
行動 警示引發時要叫用的動作。 動作
自動緩解 指出是否應該自動解決警示的旗標。 默認值為 true。 僅與 LogAlert 類型的規則相關。 布爾 (bool)
checkWorkspaceAlertsStorage已配置 該旗標指示此排程查詢規則是否應儲存在客戶的 storage。 默認值為 false。 僅與 LogAlert 類型的規則相關。 布爾 (bool)
標準 定義排程查詢規則條件的規則準則。 ScheduledQueryRuleCriteria
描述 排程查詢規則的描述。 字串
顯示名稱 警示規則的顯示名稱 字串
啟用 指出是否啟用此排程查詢規則的旗標。 值應該是 true 或 false 布爾 (bool)
evaluationFrequency 以 ISO 8601 持續時間格式來評估排程查詢規則的頻率。 只有 LogAlert 類型的規則才相關且必要。 字串
muteActionsDuration 在引發警示之後,將所選期間(ISO 8601 持續時間格式)的動作設為靜音。 僅與 LogAlert 類型的規則相關。 字串
overrideQueryTimeRange 如果指定,則會覆寫查詢時間範圍(預設值為 WindowSize*NumberOfEvaluationPeriods)。 僅與 LogAlert 類型的規則相關。 字串
範圍 此排程查詢規則的範圍是資源標識碼的清單。 字串[]
嚴厲 警示的嚴重性。 應該是介於 [0-4] 之間的整數。 值為 0 最嚴重。 只有 LogAlert 類型的規則才相關且必要。 整數 (int)
skipQueryValidation 指出是否應該驗證所提供查詢的旗標。 默認值為 false。 僅與 LogAlert 類型的規則相關。 布爾 (bool)
targetResourceTypes 建立/更新警示之目標資源的資源類型清單。 例如,如果範圍是資源群組,且 targetResourceTypes 是 Microsoft.Compute/virtualMachines,則會針對符合警示準則的資源群組中的每個虛擬機引發不同的警示。 僅與 LogAlert 類型的規則相關 字串[]
視窗大小 警示查詢將執行的時間週期(以 ISO 8601 持續時間格式表示)。 只有 LogAlert 類型的規則才相關且必要。 字串

TrackedResourceTags

名字 描述 價值

ARM 樣本資源定義

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

使用範例

Azure Quickstart templates

以下的 Azure 快速起始範本部署此資源類型。

範本 描述
為azure業務持續性項目建立警示規則

部署至Azure
此範本會建立警示規則和使用者指派的 MSI。 它也會將 MSI 閱讀器的 access 指派到訂閱,讓警示規則access查詢所需的受保護項目及最新的復原點細節。

資源格式

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

{
  "type": "Microsoft.Insights/scheduledQueryRules",
  "apiVersion": "2021-08-01",
  "name": "string",
  "kind": "string",
  "location": "string",
  "properties": {
    "actions": {
      "actionGroups": [ "string" ],
      "customProperties": {
        "{customized property}": "string"
      }
    },
    "autoMitigate": "bool",
    "checkWorkspaceAlertsStorageConfigured": "bool",
    "criteria": {
      "allOf": [
        {
          "dimensions": [
            {
              "name": "string",
              "operator": "string",
              "values": [ "string" ]
            }
          ],
          "failingPeriods": {
            "minFailingPeriodsToAlert": "int",
            "numberOfEvaluationPeriods": "int"
          },
          "metricMeasureColumn": "string",
          "metricName": "string",
          "operator": "string",
          "query": "string",
          "resourceIdColumn": "string",
          "threshold": "int",
          "timeAggregation": "string"
        }
      ]
    },
    "description": "string",
    "displayName": "string",
    "enabled": "bool",
    "evaluationFrequency": "string",
    "muteActionsDuration": "string",
    "overrideQueryTimeRange": "string",
    "scopes": [ "string" ],
    "severity": "int",
    "skipQueryValidation": "bool",
    "targetResourceTypes": [ "string" ],
    "windowSize": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.Insights/scheduledQueryRules(排程查詢規則)

名字 描述 價值
apiVersion API 版本 '2021-08-01'
類 指出排程查詢規則的類型。 預設值為LogAlert。 “日誌警報”
“LogToMetric”
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串 (必要)
性能 資源的規則屬性。 ScheduledQueryRuleProperties (必要)
標籤 資源標籤 標記名稱和值的字典。 請參考模板中的標籤
型別 資源類型 “Microsoft.Insights/scheduledQueryRules”

行動

名字 描述 價值
作組 動作群組資源標識碼,以在警示引發時叫用。 字串[]
自定義屬性 (customProperties) 警示承載的屬性。 作CustomProperties

作CustomProperties

名字 描述 價值

條件

名字 描述 價值
尺寸 維度條件清單 維度[]
失敗時期 引發警示所需的所選回溯時間範圍內所需的違規數目下限。 僅與 LogAlert 類型的規則相關。 ConditionFailingPeriods
metricMeasureColumn 包含計量量值編號的數據行。 僅與 LogAlert 類型的規則相關。 字串
metricName (指標名稱) 要傳送的計量名稱。 只有 LogToMetric 類型的規則才相關且必要。 字串
操作員 criteria 運算子。 只有 LogAlert 類型的規則才相關且必要。 “等於”
“大於”
“大於或等於”
小於'
'LessThanOrEqual'
查詢 記錄查詢警示 字串
resourceIdColumn 包含資源標識碼的數據行。數據行的內容必須是格式化為資源標識碼的 URI。僅與 LogAlert 類型的規則相關。 字串
閾值 啟動警示的準則臨界值。 只有 LogAlert 類型的規則才相關且必要。 整數 (int)
時間聚合 匯總類型。 只有 LogAlert 類型的規則才相關且必要。 “平均”
'計數'
“最大”
“最低”
“總計”

ConditionFailingPeriods

名字 描述 價值
最小故障周期報警 觸發警示的違規次數。 應小於或等於 numberOfEvaluationPeriods。 預設值為 1 整數 (int)
評估期數 匯總回溯點的數目。 回溯時間範圍是根據匯總數據粒度 (windowSize) 和選取的匯總點數目來計算。 預設值為 1 整數 (int)

尺寸

名字 描述 價值
名字 維度的名稱 字串 (必要)
操作員 維度值的運算符 '排除'
'Include' (必要)
值 維度值清單 string[] (必要)

ScheduledQueryRuleCriteria

名字 描述 價值
所有 要根據指定範圍評估的條件清單 條件[]

ScheduledQueryRuleProperties

名字 描述 價值
行動 警示引發時要叫用的動作。 動作
自動緩解 指出是否應該自動解決警示的旗標。 默認值為 true。 僅與 LogAlert 類型的規則相關。 布爾 (bool)
checkWorkspaceAlertsStorage已配置 該旗標指示此排程查詢規則是否應儲存在客戶的 storage。 默認值為 false。 僅與 LogAlert 類型的規則相關。 布爾 (bool)
標準 定義排程查詢規則條件的規則準則。 ScheduledQueryRuleCriteria
描述 排程查詢規則的描述。 字串
顯示名稱 警示規則的顯示名稱 字串
啟用 指出是否啟用此排程查詢規則的旗標。 值應該是 true 或 false 布爾 (bool)
evaluationFrequency 以 ISO 8601 持續時間格式來評估排程查詢規則的頻率。 只有 LogAlert 類型的規則才相關且必要。 字串
muteActionsDuration 在引發警示之後,將所選期間(ISO 8601 持續時間格式)的動作設為靜音。 僅與 LogAlert 類型的規則相關。 字串
overrideQueryTimeRange 如果指定,則會覆寫查詢時間範圍(預設值為 WindowSize*NumberOfEvaluationPeriods)。 僅與 LogAlert 類型的規則相關。 字串
範圍 此排程查詢規則的範圍是資源標識碼的清單。 字串[]
嚴厲 警示的嚴重性。 應該是介於 [0-4] 之間的整數。 值為 0 最嚴重。 只有 LogAlert 類型的規則才相關且必要。 整數 (int)
skipQueryValidation 指出是否應該驗證所提供查詢的旗標。 默認值為 false。 僅與 LogAlert 類型的規則相關。 布爾 (bool)
targetResourceTypes 建立/更新警示之目標資源的資源類型清單。 例如,如果範圍是資源群組,且 targetResourceTypes 是 Microsoft.Compute/virtualMachines,則會針對符合警示準則的資源群組中的每個虛擬機引發不同的警示。 僅與 LogAlert 類型的規則相關 字串[]
視窗大小 警示查詢將執行的時間週期(以 ISO 8601 持續時間格式表示)。 只有 LogAlert 類型的規則才相關且必要。 字串

TrackedResourceTags

名字 描述 價值

Terraform (AzAPI 提供者) 資源定義

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

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

使用範例

Terraform 範例

在 Azure 監視器 中部署 AlertingAction 排程查詢規則資源的基本範例。

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westeurope"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "component" {
  type      = "Microsoft.Insights/components@2020-02-02"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    kind = "web"
    properties = {
      Application_Type                = "web"
      DisableIpMasking                = false
      DisableLocalAuth                = false
      ForceCustomerStorageForProfiler = false
      RetentionInDays                 = 90
      SamplingPercentage              = 100
      publicNetworkAccessForIngestion = "Enabled"
      publicNetworkAccessForQuery     = "Enabled"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "scheduledQueryRule" {
  type      = "Microsoft.Insights/scheduledQueryRules@2021-08-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    kind = "LogAlert"
    properties = {
      autoMitigate                          = false
      checkWorkspaceAlertsStorageConfigured = false
      criteria = {
        allOf = [
          {
            dimensions      = null
            operator        = "Equal"
            query           = " requests\n| summarize CountByCountry=count() by client_CountryOrRegion\n"
            threshold       = 5
            timeAggregation = "Count"
          },
        ]
      }
      enabled             = true
      evaluationFrequency = "PT5M"
      scopes = [
        azapi_resource.component.id,
      ]
      severity            = 3
      skipQueryValidation = false
      targetResourceTypes = null
      windowSize          = "PT5M"
    }

  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

在 Azure 監視器 中部署 AlertingAction 排程查詢規則資源的基本範例。

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westeurope"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "component" {
  type      = "Microsoft.Insights/components@2020-02-02"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    kind = "web"
    properties = {
      Application_Type                = "web"
      DisableIpMasking                = false
      DisableLocalAuth                = false
      ForceCustomerStorageForProfiler = false
      RetentionInDays                 = 90
      SamplingPercentage              = 100
      publicNetworkAccessForIngestion = "Enabled"
      publicNetworkAccessForQuery     = "Enabled"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "scheduledQueryRule" {
  type      = "Microsoft.Insights/scheduledQueryRules@2021-08-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    kind = "LogAlert"
    properties = {
      autoMitigate                          = false
      checkWorkspaceAlertsStorageConfigured = false
      criteria = {
        allOf = [
          {
            dimensions      = null
            operator        = "Equal"
            query           = " requests\n| summarize CountByCountry=count() by client_CountryOrRegion\n"
            threshold       = 5
            timeAggregation = "Count"
          },
        ]
      }
      enabled             = true
      evaluationFrequency = "PT5M"
      scopes = [
        azapi_resource.component.id,
      ]
      severity            = 3
      skipQueryValidation = false
      targetResourceTypes = null
      windowSize          = "PT5M"
    }

  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Insights/scheduledQueryRules@2021-08-01"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    kind = "string"
    properties = {
      actions = {
        actionGroups = [
          "string"
        ]
        customProperties = {
          {customized property} = "string"
        }
      }
      autoMitigate = bool
      checkWorkspaceAlertsStorageConfigured = bool
      criteria = {
        allOf = [
          {
            dimensions = [
              {
                name = "string"
                operator = "string"
                values = [
                  "string"
                ]
              }
            ]
            failingPeriods = {
              minFailingPeriodsToAlert = int
              numberOfEvaluationPeriods = int
            }
            metricMeasureColumn = "string"
            metricName = "string"
            operator = "string"
            query = "string"
            resourceIdColumn = "string"
            threshold = int
            timeAggregation = "string"
          }
        ]
      }
      description = "string"
      displayName = "string"
      enabled = bool
      evaluationFrequency = "string"
      muteActionsDuration = "string"
      overrideQueryTimeRange = "string"
      scopes = [
        "string"
      ]
      severity = int
      skipQueryValidation = bool
      targetResourceTypes = [
        "string"
      ]
      windowSize = "string"
    }
  }
}

屬性值

Microsoft.Insights/scheduledQueryRules(排程查詢規則)

名字 描述 價值
類 指出排程查詢規則的類型。 預設值為LogAlert。 “日誌警報”
“LogToMetric”
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串 (必要)
性能 資源的規則屬性。 ScheduledQueryRuleProperties (必要)
標籤 資源標籤 標記名稱和值的字典。
型別 資源類型 “Microsoft.Insights/scheduledQueryRules@2021-08-01”

行動

名字 描述 價值
作組 動作群組資源標識碼,以在警示引發時叫用。 字串[]
自定義屬性 (customProperties) 警示承載的屬性。 作CustomProperties

作CustomProperties

名字 描述 價值

條件

名字 描述 價值
尺寸 維度條件清單 維度[]
失敗時期 引發警示所需的所選回溯時間範圍內所需的違規數目下限。 僅與 LogAlert 類型的規則相關。 ConditionFailingPeriods
metricMeasureColumn 包含計量量值編號的數據行。 僅與 LogAlert 類型的規則相關。 字串
metricName (指標名稱) 要傳送的計量名稱。 只有 LogToMetric 類型的規則才相關且必要。 字串
操作員 criteria 運算子。 只有 LogAlert 類型的規則才相關且必要。 “等於”
“大於”
“大於或等於”
小於'
'LessThanOrEqual'
查詢 記錄查詢警示 字串
resourceIdColumn 包含資源標識碼的數據行。數據行的內容必須是格式化為資源標識碼的 URI。僅與 LogAlert 類型的規則相關。 字串
閾值 啟動警示的準則臨界值。 只有 LogAlert 類型的規則才相關且必要。 整數 (int)
時間聚合 匯總類型。 只有 LogAlert 類型的規則才相關且必要。 “平均”
'計數'
“最大”
“最低”
“總計”

ConditionFailingPeriods

名字 描述 價值
最小故障周期報警 觸發警示的違規次數。 應小於或等於 numberOfEvaluationPeriods。 預設值為 1 整數 (int)
評估期數 匯總回溯點的數目。 回溯時間範圍是根據匯總數據粒度 (windowSize) 和選取的匯總點數目來計算。 預設值為 1 整數 (int)

尺寸

名字 描述 價值
名字 維度的名稱 字串 (必要)
操作員 維度值的運算符 '排除'
'Include' (必要)
值 維度值清單 string[] (必要)

ScheduledQueryRuleCriteria

名字 描述 價值
所有 要根據指定範圍評估的條件清單 條件[]

ScheduledQueryRuleProperties

名字 描述 價值
行動 警示引發時要叫用的動作。 動作
自動緩解 指出是否應該自動解決警示的旗標。 默認值為 true。 僅與 LogAlert 類型的規則相關。 布爾 (bool)
checkWorkspaceAlertsStorage已配置 該旗標指示此排程查詢規則是否應儲存在客戶的 storage。 默認值為 false。 僅與 LogAlert 類型的規則相關。 布爾 (bool)
標準 定義排程查詢規則條件的規則準則。 ScheduledQueryRuleCriteria
描述 排程查詢規則的描述。 字串
顯示名稱 警示規則的顯示名稱 字串
啟用 指出是否啟用此排程查詢規則的旗標。 值應該是 true 或 false 布爾 (bool)
evaluationFrequency 以 ISO 8601 持續時間格式來評估排程查詢規則的頻率。 只有 LogAlert 類型的規則才相關且必要。 字串
muteActionsDuration 在引發警示之後,將所選期間(ISO 8601 持續時間格式)的動作設為靜音。 僅與 LogAlert 類型的規則相關。 字串
overrideQueryTimeRange 如果指定,則會覆寫查詢時間範圍(預設值為 WindowSize*NumberOfEvaluationPeriods)。 僅與 LogAlert 類型的規則相關。 字串
範圍 此排程查詢規則的範圍是資源標識碼的清單。 字串[]
嚴厲 警示的嚴重性。 應該是介於 [0-4] 之間的整數。 值為 0 最嚴重。 只有 LogAlert 類型的規則才相關且必要。 整數 (int)
skipQueryValidation 指出是否應該驗證所提供查詢的旗標。 默認值為 false。 僅與 LogAlert 類型的規則相關。 布爾 (bool)
targetResourceTypes 建立/更新警示之目標資源的資源類型清單。 例如,如果範圍是資源群組,且 targetResourceTypes 是 Microsoft.Compute/virtualMachines,則會針對符合警示準則的資源群組中的每個虛擬機引發不同的警示。 僅與 LogAlert 類型的規則相關 字串[]
視窗大小 警示查詢將執行的時間週期(以 ISO 8601 持續時間格式表示)。 只有 LogAlert 類型的規則才相關且必要。 字串

TrackedResourceTags

名字 描述 價值