Microsoft。Insights scheduledQueryRules 2021-08-01

備考

モニタリングソリューションの導入に関するガイダンスについては、Bicepを使ってモニタリングリソースを作成してください。

Bicep リソース定義

scheduledQueryRules リソースの種類は、次を対象とする操作と共にデプロイできます。

  • Resource groups - リソースグループのデプロイコマンド

各 API バージョンで変更されたプロパティの一覧については、変更ログの参照してください。

使用例

Bicep サンプル

Azure Monitor内でAlertingAction Scheduled Query Rulesリソースをデプロイする基本的な例です。

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」
位置 リソースが存在する地理的な場所 string (必須)
名前 リソース名 string (必須)
プロパティ リソースのルール プロパティ。 ScheduledQueryRuleProperties の (必須)
タグ リソース タグ タグ名と値のディクショナリ。 テンプレートTags>

アクション

名前 形容 価値
アクショングループ アラートが発生したときに呼び出すアクション グループ リソース ID。 文字列[]
カスタムプロパティ アラート ペイロードのプロパティ。 アクションカスタムプロパティ

アクションカスタムプロパティ

名前 形容 価値

条件

名前 形容 価値
寸法 ディメンション条件の一覧 ディメンション[]
失敗期間 アラートを発生させるために必要な、選択したルックバック時間枠内に必要な違反の最小数。 LogAlert の種類のルールにのみ関連します。 条件失敗期間
metricMeasureカラム メトリック メジャー番号を含む列。 LogAlert の種類のルールにのみ関連します。 文字列
メトリック名 送信するメトリックの名前。 LogToMetric の種類のルールにのみ関連し、必須です。 文字列
オペレータ 条件演算子。 LogAlert の種類のルールにのみ関連し、必須です。 「平等」
「グレーター・タン」
「GreaterThanOrEqual」
「より小さい」
「LessThanOrEqual」
クエリ ログ クエリ アラート 文字列
resourceIdカラム リソース ID を含む列。列の内容は、リソース ID として書式設定された URI である必要があります。LogAlert の種類のルールにのみ関連します。 文字列
しきい値 アラートをアクティブにする条件しきい値。 LogAlert の種類のルールにのみ関連し、必須です。 整数 (int)
timeアグリゲーション 集計の種類。 LogAlert の種類のルールにのみ関連し、必須です。 「平均」
「カウント」
「最大」
「最小」
「合計」

条件失敗期間

名前 形容 価値
minFailingPeriodsToAlert アラートをトリガーする違反の数。 numberOfEvaluationPeriods より小さいか等しい必要があります。 既定値は 1 です 整数 (int)
評価期間の数 集計されたルックバック ポイントの数。 ルックバック 時間枠は、集計粒度 (windowSize) と選択した集計ポイント数に基づいて計算されます。 既定値は 1 です 整数 (int)

次元

名前 形容 価値
名前 ディメンションの名前 string (必須)
オペレータ ディメンション値の演算子 「除外」
'Include' (必須)
価値観 ディメンション値の一覧 string[] (必須)

スケジュールクエリルール基準

名前 形容 価値
allOfの 指定したスコープに対して評価する条件の一覧 条件[]

ScheduledQueryRuleProperties (スケジュール クエリ ルール プロパティ)

名前 形容 価値
アクション アラートが発生したときに呼び出すアクション。 アクション
オートミトリクト アラートを自動的に解決するかどうかを示すフラグ。 既定値は true です。 LogAlert の種類のルールにのみ関連します。 ブール (bool)
checkWorkspaceAlertsStorageConfigured (ワークスペースアラートストレージ設定済み) このフラグは、このスケジュールされたクエリルールを顧客のstorageに保存すべきかどうかを示します。 既定値は false です。 LogAlert の種類のルールにのみ関連します。 ブール (bool)
条件 スケジュールされたクエリ ルールの条件を定義するルール条件。 ScheduledQueryRuleCriteria の
形容 スケジュールされたクエリ ルールの説明。 文字列
ディスプレイ名 アラート ルールの表示名 文字列
有効 このスケジュールされたクエリ ルールが有効かどうかを示すフラグ。 値は true または false にする必要があります ブール (bool)
評価周波数 スケジュールされたクエリ ルールが評価される頻度は、ISO 8601 期間形式で表されます。 LogAlert の種類のルールにのみ関連し、必須です。 文字列
muteActionsデュレーション アラートが発生した後、選択した期間 (ISO 8601 期間形式) のアクションをミュートします。 LogAlert の種類のルールにのみ関連します。 文字列
オーバーライドQueryTimeRange 指定した場合は、クエリの時間範囲をオーバーライドします (既定値は WindowSize*NumberOfEvaluationPeriods)。 LogAlert の種類のルールにのみ関連します。 文字列
スコープ このスケジュールされたクエリ ルールのスコープが設定されているリソース ID の一覧。 文字列[]
過酷 アラートの重大度。 [0- 4] の整数にする必要があります。 値 0 が最も厳しい。 LogAlert の種類のルールにのみ関連し、必須です。 整数 (int)
skipQueryValidation の略 指定されたクエリを検証するかどうかを示すフラグ。 既定値は false です。 LogAlert の種類のルールにのみ関連します。 ブール (bool)
ターゲットリソースタイプ アラートが作成または更新されるターゲット リソースのリソースの種類の一覧。 たとえば、スコープがリソース グループであり、targetResourceTypes が Microsoft.Compute/virtualMachines の場合、アラート条件を満たすリソース グループ内の仮想マシンごとに異なるアラートが発生します。 LogAlert の種類のルールにのみ関連します 文字列[]
ウィンドウサイズ アラート クエリが実行される期間 (ISO 8601 期間形式) (ビン サイズ)。 LogAlert の種類のルールにのみ関連し、必須です。 文字列

追跡リソースタグ

名前 形容 価値

ARM テンプレート リソース定義

scheduledQueryRules リソースの種類は、次を対象とする操作と共にデプロイできます。

使用例

Azure クイックスタート テンプレート

以下の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」
位置 リソースが存在する地理的な場所 string (必須)
名前 リソース名 string (必須)
プロパティ リソースのルール プロパティ。 ScheduledQueryRuleProperties の (必須)
タグ リソース タグ タグ名と値のディクショナリ。 テンプレートTags>
型 リソースの種類 'Microsoft.Insights/scheduledQueryRules'

アクション

名前 形容 価値
アクショングループ アラートが発生したときに呼び出すアクション グループ リソース ID。 文字列[]
カスタムプロパティ アラート ペイロードのプロパティ。 アクションカスタムプロパティ

アクションカスタムプロパティ

名前 形容 価値

条件

名前 形容 価値
寸法 ディメンション条件の一覧 ディメンション[]
失敗期間 アラートを発生させるために必要な、選択したルックバック時間枠内に必要な違反の最小数。 LogAlert の種類のルールにのみ関連します。 条件失敗期間
metricMeasureカラム メトリック メジャー番号を含む列。 LogAlert の種類のルールにのみ関連します。 文字列
メトリック名 送信するメトリックの名前。 LogToMetric の種類のルールにのみ関連し、必須です。 文字列
オペレータ 条件演算子。 LogAlert の種類のルールにのみ関連し、必須です。 「平等」
「グレーター・タン」
「GreaterThanOrEqual」
「より小さい」
「LessThanOrEqual」
クエリ ログ クエリ アラート 文字列
resourceIdカラム リソース ID を含む列。列の内容は、リソース ID として書式設定された URI である必要があります。LogAlert の種類のルールにのみ関連します。 文字列
しきい値 アラートをアクティブにする条件しきい値。 LogAlert の種類のルールにのみ関連し、必須です。 整数 (int)
timeアグリゲーション 集計の種類。 LogAlert の種類のルールにのみ関連し、必須です。 「平均」
「カウント」
「最大」
「最小」
「合計」

条件失敗期間

名前 形容 価値
minFailingPeriodsToAlert アラートをトリガーする違反の数。 numberOfEvaluationPeriods より小さいか等しい必要があります。 既定値は 1 です 整数 (int)
評価期間の数 集計されたルックバック ポイントの数。 ルックバック 時間枠は、集計粒度 (windowSize) と選択した集計ポイント数に基づいて計算されます。 既定値は 1 です 整数 (int)

次元

名前 形容 価値
名前 ディメンションの名前 string (必須)
オペレータ ディメンション値の演算子 「除外」
'Include' (必須)
価値観 ディメンション値の一覧 string[] (必須)

スケジュールクエリルール基準

名前 形容 価値
allOfの 指定したスコープに対して評価する条件の一覧 条件[]

ScheduledQueryRuleProperties (スケジュール クエリ ルール プロパティ)

名前 形容 価値
アクション アラートが発生したときに呼び出すアクション。 アクション
オートミトリクト アラートを自動的に解決するかどうかを示すフラグ。 既定値は true です。 LogAlert の種類のルールにのみ関連します。 ブール (bool)
checkWorkspaceAlertsStorageConfigured (ワークスペースアラートストレージ設定済み) このフラグは、このスケジュールされたクエリルールを顧客のstorageに保存すべきかどうかを示します。 既定値は false です。 LogAlert の種類のルールにのみ関連します。 ブール (bool)
条件 スケジュールされたクエリ ルールの条件を定義するルール条件。 ScheduledQueryRuleCriteria の
形容 スケジュールされたクエリ ルールの説明。 文字列
ディスプレイ名 アラート ルールの表示名 文字列
有効 このスケジュールされたクエリ ルールが有効かどうかを示すフラグ。 値は true または false にする必要があります ブール (bool)
評価周波数 スケジュールされたクエリ ルールが評価される頻度は、ISO 8601 期間形式で表されます。 LogAlert の種類のルールにのみ関連し、必須です。 文字列
muteActionsデュレーション アラートが発生した後、選択した期間 (ISO 8601 期間形式) のアクションをミュートします。 LogAlert の種類のルールにのみ関連します。 文字列
オーバーライドQueryTimeRange 指定した場合は、クエリの時間範囲をオーバーライドします (既定値は WindowSize*NumberOfEvaluationPeriods)。 LogAlert の種類のルールにのみ関連します。 文字列
スコープ このスケジュールされたクエリ ルールのスコープが設定されているリソース ID の一覧。 文字列[]
過酷 アラートの重大度。 [0- 4] の整数にする必要があります。 値 0 が最も厳しい。 LogAlert の種類のルールにのみ関連し、必須です。 整数 (int)
skipQueryValidation の略 指定されたクエリを検証するかどうかを示すフラグ。 既定値は false です。 LogAlert の種類のルールにのみ関連します。 ブール (bool)
ターゲットリソースタイプ アラートが作成または更新されるターゲット リソースのリソースの種類の一覧。 たとえば、スコープがリソース グループであり、targetResourceTypes が Microsoft.Compute/virtualMachines の場合、アラート条件を満たすリソース グループ内の仮想マシンごとに異なるアラートが発生します。 LogAlert の種類のルールにのみ関連します 文字列[]
ウィンドウサイズ アラート クエリが実行される期間 (ISO 8601 期間形式) (ビン サイズ)。 LogAlert の種類のルールにのみ関連し、必須です。 文字列

追跡リソースタグ

名前 形容 価値

Terraform (AzAPI プロバイダー) リソース定義

scheduledQueryRules リソースの種類は、次を対象とする操作と共にデプロイできます。

  • リソースグループ 各APIバージョンの変更プロパティ一覧については、 変更ログをご覧ください。

使用例

Terraformサンプル

Azure Monitor内でAlertingAction Scheduled Query Rulesリソースをデプロイする基本的な例です。

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 Monitor内でAlertingAction Scheduled Query Rulesリソースをデプロイする基本的な例です。

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」
位置 リソースが存在する地理的な場所 string (必須)
名前 リソース名 string (必須)
プロパティ リソースのルール プロパティ。 ScheduledQueryRuleProperties の (必須)
タグ リソース タグ タグ名と値のディクショナリ。
型 リソースの種類 「Microsoft.Insights/scheduledQueryRules@2021-08-01」

アクション

名前 形容 価値
アクショングループ アラートが発生したときに呼び出すアクション グループ リソース ID。 文字列[]
カスタムプロパティ アラート ペイロードのプロパティ。 アクションカスタムプロパティ

アクションカスタムプロパティ

名前 形容 価値

条件

名前 形容 価値
寸法 ディメンション条件の一覧 ディメンション[]
失敗期間 アラートを発生させるために必要な、選択したルックバック時間枠内に必要な違反の最小数。 LogAlert の種類のルールにのみ関連します。 条件失敗期間
metricMeasureカラム メトリック メジャー番号を含む列。 LogAlert の種類のルールにのみ関連します。 文字列
メトリック名 送信するメトリックの名前。 LogToMetric の種類のルールにのみ関連し、必須です。 文字列
オペレータ 条件演算子。 LogAlert の種類のルールにのみ関連し、必須です。 「平等」
「グレーター・タン」
「GreaterThanOrEqual」
「より小さい」
「LessThanOrEqual」
クエリ ログ クエリ アラート 文字列
resourceIdカラム リソース ID を含む列。列の内容は、リソース ID として書式設定された URI である必要があります。LogAlert の種類のルールにのみ関連します。 文字列
しきい値 アラートをアクティブにする条件しきい値。 LogAlert の種類のルールにのみ関連し、必須です。 整数 (int)
timeアグリゲーション 集計の種類。 LogAlert の種類のルールにのみ関連し、必須です。 「平均」
「カウント」
「最大」
「最小」
「合計」

条件失敗期間

名前 形容 価値
minFailingPeriodsToAlert アラートをトリガーする違反の数。 numberOfEvaluationPeriods より小さいか等しい必要があります。 既定値は 1 です 整数 (int)
評価期間の数 集計されたルックバック ポイントの数。 ルックバック 時間枠は、集計粒度 (windowSize) と選択した集計ポイント数に基づいて計算されます。 既定値は 1 です 整数 (int)

次元

名前 形容 価値
名前 ディメンションの名前 string (必須)
オペレータ ディメンション値の演算子 「除外」
'Include' (必須)
価値観 ディメンション値の一覧 string[] (必須)

スケジュールクエリルール基準

名前 形容 価値
allOfの 指定したスコープに対して評価する条件の一覧 条件[]

ScheduledQueryRuleProperties (スケジュール クエリ ルール プロパティ)

名前 形容 価値
アクション アラートが発生したときに呼び出すアクション。 アクション
オートミトリクト アラートを自動的に解決するかどうかを示すフラグ。 既定値は true です。 LogAlert の種類のルールにのみ関連します。 ブール (bool)
checkWorkspaceAlertsStorageConfigured (ワークスペースアラートストレージ設定済み) このフラグは、このスケジュールされたクエリルールを顧客のstorageに保存すべきかどうかを示します。 既定値は false です。 LogAlert の種類のルールにのみ関連します。 ブール (bool)
条件 スケジュールされたクエリ ルールの条件を定義するルール条件。 ScheduledQueryRuleCriteria の
形容 スケジュールされたクエリ ルールの説明。 文字列
ディスプレイ名 アラート ルールの表示名 文字列
有効 このスケジュールされたクエリ ルールが有効かどうかを示すフラグ。 値は true または false にする必要があります ブール (bool)
評価周波数 スケジュールされたクエリ ルールが評価される頻度は、ISO 8601 期間形式で表されます。 LogAlert の種類のルールにのみ関連し、必須です。 文字列
muteActionsデュレーション アラートが発生した後、選択した期間 (ISO 8601 期間形式) のアクションをミュートします。 LogAlert の種類のルールにのみ関連します。 文字列
オーバーライドQueryTimeRange 指定した場合は、クエリの時間範囲をオーバーライドします (既定値は WindowSize*NumberOfEvaluationPeriods)。 LogAlert の種類のルールにのみ関連します。 文字列
スコープ このスケジュールされたクエリ ルールのスコープが設定されているリソース ID の一覧。 文字列[]
過酷 アラートの重大度。 [0- 4] の整数にする必要があります。 値 0 が最も厳しい。 LogAlert の種類のルールにのみ関連し、必須です。 整数 (int)
skipQueryValidation の略 指定されたクエリを検証するかどうかを示すフラグ。 既定値は false です。 LogAlert の種類のルールにのみ関連します。 ブール (bool)
ターゲットリソースタイプ アラートが作成または更新されるターゲット リソースのリソースの種類の一覧。 たとえば、スコープがリソース グループであり、targetResourceTypes が Microsoft.Compute/virtualMachines の場合、アラート条件を満たすリソース グループ内の仮想マシンごとに異なるアラートが発生します。 LogAlert の種類のルールにのみ関連します 文字列[]
ウィンドウサイズ アラート クエリが実行される期間 (ISO 8601 期間形式) (ビン サイズ)。 LogAlert の種類のルールにのみ関連し、必須です。 文字列

追跡リソースタグ

名前 形容 価値