次の方法で共有


Smart Detector Alert Rules - List By Resource Group

サブスクリプションとリソース グループ内のすべての既存の Smart Detector アラート ルールを一覧表示します。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules?api-version=2019-06-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules?api-version=2019-06-01&expandDetector={expandDetector}

URI パラメーター

名前 / 必須 説明
resourceGroupName
path True

string

リソース グループの名前。

subscriptionId
path True

string

ターゲット サブスクリプションの ID。

api-version
query True

string

クライアント API のバージョン。

expandDetector
query

boolean

Smart Detector を展開する必要があるかどうかを示します。

応答

名前 説明
200 OK

AlertRulesList

Smart Detector アラート ルールを一覧表示する要求が成功しました。

Other Status Codes

SmartDetectorErrorResponse

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

List alert rules

Sample Request

GET https://management.azure.com/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules?api-version=2019-06-01

Sample Response

{
  "nextLink": null,
  "value": [
    {
      "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule",
      "type": "Microsoft.AlertsManagement/smartDetectorAlertRules",
      "name": "MyAlertRule",
      "location": "global",
      "tags": {},
      "properties": {
        "description": "Sample smart detector alert rule description",
        "state": "Enabled",
        "severity": "Sev3",
        "frequency": "PT5M",
        "detector": {
          "id": "VMMemoryLeak"
        },
        "scope": [
          "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default"
        ],
        "actionGroups": [
          {
            "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/MyActionGroups/providers/microsoft.insights/actionGroups/MyActionGroup"
          }
        ],
        "throttling": {
          "duration": "PT20M"
        }
      }
    },
    {
      "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MySecondAlertRule",
      "type": "Microsoft.AlertsManagement/smartDetectorAlertRules",
      "name": "MySecondAlertRule",
      "location": "global",
      "tags": {},
      "properties": {
        "description": "Sample smart detector alert rule description",
        "state": "Disabled",
        "severity": "Sev2",
        "frequency": "PT15M",
        "detector": {
          "id": "VMMemoryLeak"
        },
        "scope": [
          "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default"
        ],
        "actionGroups": [
          {
            "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/MyActionGroups/providers/microsoft.insights/actionGroups/MyActionGroup"
          }
        ]
      }
    }
  ]
}

定義

名前 説明
ActionGroupsInformation

アラート ルールで使用されるアクション グループ情報。

AlertRule

アラート ルールの情報

AlertRulesList

Smart Detector アラート ルールの一覧。

AlertRuleState

アラート ルールの状態。

Detector

検出情報。 expandDetector で指定されていない限り、既定では設定されません

Severity

アラート ルールの重大度。

SmartDetectorErrorResponse

エラー応答の形式について説明します。

ThrottlingInformation

アラート ルールのオプションの調整情報。

ActionGroupsInformation

アラート ルールで使用されるアクション グループ情報。

名前 説明
customEmailSubject

string

電子メール通知で使用するオプションのカスタム 電子メールの件名。

customWebhookPayload

string

Web フック通知で使用するオプションのカスタム Web フック ペイロード。

groupIds

string[]

アクション グループ リソース ID。

AlertRule

アラート ルールの情報

名前 既定値 説明
id

string

リソース ID。

location

string

global

リソースの場所。

name

string

リソースの名前。

properties.actionGroups

ActionGroupsInformation

アラート ルールのアクション。

properties.description

string

アラート ルールの説明。

properties.detector

Detector

アラート ルールの検出機能。

properties.frequency

string

アラート ルールの頻度 (ISO8601形式)。 時間の細分性は分単位で、最小値は 5 分である必要があります。

properties.scope

string[]

アラート ルールリソースのスコープ。

properties.severity

Severity

アラート ルールの重大度。

properties.state

AlertRuleState

アラート ルールの状態。

properties.throttling

ThrottlingInformation

アラート ルールの調整情報。

tags

object

リソース タグ。

type

string

リソースの種類。

AlertRulesList

Smart Detector アラート ルールの一覧。

名前 説明
nextLink

string

次の結果セットを取得する URL。

value

AlertRule[]

Smart Detector アラート ルールの一覧。

AlertRuleState

アラート ルールの状態。

名前 説明
Disabled

string

Enabled

string

Detector

検出情報。 expandDetector で指定されていない限り、既定では設定されません

名前 説明
description

string

Smart Detector の説明。 expandDetector で指定されていない限り、既定では設定されません

id

string

ディテクタ ID。

imagePaths

string[]

Smart Detector イメージ パス。 expandDetector で指定されていない限り、既定では設定されません

name

string

Smart Detector の名前。 expandDetector で指定されていない限り、既定では設定されません

parameters

object

検出機能のパラメーター。

supportedResourceTypes

string[]

Smart Detector でサポートされているリソースの種類。 expandDetector で指定されていない限り、既定では設定されません

Severity

アラート ルールの重大度。

名前 説明
Sev0

string

Sev1

string

Sev2

string

Sev3

string

Sev4

string

SmartDetectorErrorResponse

エラー応答の形式について説明します。

名前 説明
code

string

エラー コード

message

string

操作が失敗した理由を示すエラー メッセージ。

ThrottlingInformation

アラート ルールのオプションの調整情報。

名前 説明
duration

string

アラート ルールに再度通知する前に待機するために必要な期間 (ISO8601形式)。 時間の細分性は分単位で、最小値は 0 分である必要があります