ServiceAlertCollection クラス

定義

のコレクション ServiceAlertResource とその操作を表すクラス。 コレクション内の各 ServiceAlertResource は、 の同じインスタンス SubscriptionResourceに属します。 インスタンスを ServiceAlertCollection 取得するには、 のインスタンスから GetServiceAlerts メソッドを SubscriptionResource呼び出します。

public class ServiceAlertCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>
type ServiceAlertCollection = class
    inherit ArmCollection
    interface seq<ServiceAlertResource>
    interface IEnumerable
    interface IAsyncEnumerable<ServiceAlertResource>
Public Class ServiceAlertCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of ServiceAlertResource), IEnumerable(Of ServiceAlertResource)
継承
ServiceAlertCollection
実装

コンストラクター

ServiceAlertCollection()

モック作成のために クラスの ServiceAlertCollection 新しいインスタンスを初期化します。

プロパティ

Client

このリソース クライアントの ArmClient 作成元を取得します。

(継承元 ArmCollection)
Diagnostics

このリソース クライアントの診断オプションを取得します。

(継承元 ArmCollection)
Endpoint

このリソース クライアントのベース URI を取得します。

(継承元 ArmCollection)
Id

リソース識別子を取得します。

(継承元 ArmCollection)
Pipeline

このリソース クライアントのパイプラインを取得します。

(継承元 ArmCollection)

メソッド

Exists(Guid, CancellationToken)

リソースが Azure に存在するかどうかを確認します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}
  • 操作IdAlerts_GetById
ExistsAsync(Guid, CancellationToken)

リソースが Azure に存在するかどうかを確認します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}
  • 操作IdAlerts_GetById
Get(Guid, CancellationToken)

特定のアラートに関連する情報を取得する

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}
  • 操作IdAlerts_GetById
GetAll(ServiceAlertCollectionGetAllOptions, CancellationToken)

既存のすべてのアラートを一覧表示します。複数のパラメーター (時間範囲など) に基づいて結果をフィルター処理できます。 その後、結果は特定のフィールドに基づいて並べ替えることができます。既定値は lastModifiedDateTime です。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts
  • 操作IdAlerts_GetAll
GetAll(String, String, String, Nullable<MonitorServiceSourceForAlert>, Nullable<MonitorCondition>, Nullable<ServiceAlertSeverity>, Nullable<ServiceAlertState>, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int64>, Nullable<ListServiceAlertsSortByField>, Nullable<AlertsManagementQuerySortOrder>, String, Nullable<TimeRangeFilter>, String, CancellationToken)

既存のすべてのアラートを一覧表示します。複数のパラメーター (時間範囲など) に基づいて結果をフィルター処理できます。 その後、結果は特定のフィールドに基づいて並べ替えることができます。既定値は lastModifiedDateTime です。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts
  • 操作IdAlerts_GetAll
GetAllAsync(ServiceAlertCollectionGetAllOptions, CancellationToken)

既存のすべてのアラートを一覧表示します。複数のパラメーター (時間範囲など) に基づいて結果をフィルター処理できます。 その後、結果は特定のフィールドに基づいて並べ替えることができます。既定値は lastModifiedDateTime です。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts
  • 操作IdAlerts_GetAll
GetAllAsync(String, String, String, Nullable<MonitorServiceSourceForAlert>, Nullable<MonitorCondition>, Nullable<ServiceAlertSeverity>, Nullable<ServiceAlertState>, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int64>, Nullable<ListServiceAlertsSortByField>, Nullable<AlertsManagementQuerySortOrder>, String, Nullable<TimeRangeFilter>, String, CancellationToken)

既存のすべてのアラートを一覧表示します。複数のパラメーター (時間範囲など) に基づいて結果をフィルター処理できます。 その後、結果は特定のフィールドに基づいて並べ替えることができます。既定値は lastModifiedDateTime です。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts
  • 操作IdAlerts_GetAll
GetAsync(Guid, CancellationToken)

特定のアラートに関連する情報を取得する

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}
  • 操作IdAlerts_GetById
TryGetApiVersion(ResourceType, String)

現在のクライアント オプションに対して設定されている場合は、API バージョンのオーバーライドを取得します。

(継承元 ArmCollection)

明示的なインターフェイスの実装

IAsyncEnumerable<ServiceAlertResource>.GetAsyncEnumerator(CancellationToken)

コレクションを非同期に反復処理する列挙子を返します。

IEnumerable.GetEnumerator()

コレクションを反復処理する列挙子を返します。

IEnumerable<ServiceAlertResource>.GetEnumerator()

コレクションを反復処理する列挙子を返します。

適用対象