ServiceAlertCollection.GetAll メソッド

定義

オーバーロード

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

GetAll(ServiceAlertCollectionGetAllOptions, CancellationToken)

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

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts
  • 操作IdAlerts_GetAll
public virtual Azure.Pageable<Azure.ResourceManager.AlertsManagement.ServiceAlertResource> GetAll (Azure.ResourceManager.AlertsManagement.Models.ServiceAlertCollectionGetAllOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : Azure.ResourceManager.AlertsManagement.Models.ServiceAlertCollectionGetAllOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>
override this.GetAll : Azure.ResourceManager.AlertsManagement.Models.ServiceAlertCollectionGetAllOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>
Public Overridable Function GetAll (options As ServiceAlertCollectionGetAllOptions, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServiceAlertResource)

パラメーター

options
ServiceAlertCollectionGetAllOptions

LRO 修飾子と要求コンテキスト パラメーターを除く、このメソッドのすべてのパラメーターを含むプロパティ バッグ。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

反復処理するために複数の ServiceAlertResource サービス要求を受け取る可能性がある のコレクション。

適用対象

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
public virtual Azure.Pageable<Azure.ResourceManager.AlertsManagement.ServiceAlertResource> GetAll (string targetResource = default, string targetResourceType = default, string targetResourceGroup = default, Azure.ResourceManager.AlertsManagement.Models.MonitorServiceSourceForAlert? monitorService = default, Azure.ResourceManager.AlertsManagement.Models.MonitorCondition? monitorCondition = default, Azure.ResourceManager.AlertsManagement.Models.ServiceAlertSeverity? severity = default, Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState? alertState = default, string alertRule = default, string smartGroupId = default, bool? includeContext = default, bool? includeEgressConfig = default, long? pageCount = default, Azure.ResourceManager.AlertsManagement.Models.ListServiceAlertsSortByField? sortBy = default, Azure.ResourceManager.AlertsManagement.Models.AlertsManagementQuerySortOrder? sortOrder = default, string select = default, Azure.ResourceManager.AlertsManagement.Models.TimeRangeFilter? timeRange = default, string customTimeRange = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * string * string * Nullable<Azure.ResourceManager.AlertsManagement.Models.MonitorServiceSourceForAlert> * Nullable<Azure.ResourceManager.AlertsManagement.Models.MonitorCondition> * Nullable<Azure.ResourceManager.AlertsManagement.Models.ServiceAlertSeverity> * Nullable<Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState> * string * string * Nullable<bool> * Nullable<bool> * Nullable<int64> * Nullable<Azure.ResourceManager.AlertsManagement.Models.ListServiceAlertsSortByField> * Nullable<Azure.ResourceManager.AlertsManagement.Models.AlertsManagementQuerySortOrder> * string * Nullable<Azure.ResourceManager.AlertsManagement.Models.TimeRangeFilter> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>
override this.GetAll : string * string * string * Nullable<Azure.ResourceManager.AlertsManagement.Models.MonitorServiceSourceForAlert> * Nullable<Azure.ResourceManager.AlertsManagement.Models.MonitorCondition> * Nullable<Azure.ResourceManager.AlertsManagement.Models.ServiceAlertSeverity> * Nullable<Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState> * string * string * Nullable<bool> * Nullable<bool> * Nullable<int64> * Nullable<Azure.ResourceManager.AlertsManagement.Models.ListServiceAlertsSortByField> * Nullable<Azure.ResourceManager.AlertsManagement.Models.AlertsManagementQuerySortOrder> * string * Nullable<Azure.ResourceManager.AlertsManagement.Models.TimeRangeFilter> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>
Public Overridable Function GetAll (Optional targetResource As String = Nothing, Optional targetResourceType As String = Nothing, Optional targetResourceGroup As String = Nothing, Optional monitorService As Nullable(Of MonitorServiceSourceForAlert) = Nothing, Optional monitorCondition As Nullable(Of MonitorCondition) = Nothing, Optional severity As Nullable(Of ServiceAlertSeverity) = Nothing, Optional alertState As Nullable(Of ServiceAlertState) = Nothing, Optional alertRule As String = Nothing, Optional smartGroupId As String = Nothing, Optional includeContext As Nullable(Of Boolean) = Nothing, Optional includeEgressConfig As Nullable(Of Boolean) = Nothing, Optional pageCount As Nullable(Of Long) = Nothing, Optional sortBy As Nullable(Of ListServiceAlertsSortByField) = Nothing, Optional sortOrder As Nullable(Of AlertsManagementQuerySortOrder) = Nothing, Optional select As String = Nothing, Optional timeRange As Nullable(Of TimeRangeFilter) = Nothing, Optional customTimeRange As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServiceAlertResource)

パラメーター

targetResource
String

ターゲット リソース (完全な ARM ID) でフィルター処理します。既定値は [すべて選択] です。

targetResourceType
String

ターゲット リソースの種類でフィルター処理します。 既定値は [すべて選択] です。

targetResourceGroup
String

ターゲット リソース グループ名でフィルター処理します。 既定値は [すべて選択] です。

monitorService
Nullable<MonitorServiceSourceForAlert>

アラート インスタンスを生成するモニター サービスでフィルター処理します。 既定値は [すべて選択] です。

monitorCondition
Nullable<MonitorCondition>

"発生済み" または "解決済み" のモニター条件でフィルター処理します。 既定値は、すべて選択する場合です。

severity
Nullable<ServiceAlertSeverity>

重要度でフィルター処理します。 既定値は [すべて選択] です。

alertState
Nullable<ServiceAlertState>

アラート インスタンスの状態でフィルター処理します。 既定値は、すべて選択する場合です。

alertRule
String

特定のアラート ルールでフィルター処理します。 既定値は、すべて選択する場合です。

smartGroupId
String

アラートの一覧をスマート グループ ID でフィルター処理します。既定値は none です。

includeContext
Nullable<Boolean>

モニター サービスに固有のコンテキスト データを持つコンテキストを含めます。 既定値は false' です。

includeEgressConfig
Nullable<Boolean>

ポータルでコンテンツを表示するために使用されるエグレス構成を含めます。 既定値は 'false' です。

pageCount
Nullable<Int64>

応答として 1 ページあたりに返されるアラートの数を決定します。 許容値は 1 ~ 250 です。 "includeContent" フィルターが選択されている場合、許可される最大値は 25 です。 既定値は 25 です。

sortBy
Nullable<ListServiceAlertsSortByField>

入力フィールドでクエリ結果を並べ替えます。既定値は 'lastModifiedDateTime' です。

sortOrder
Nullable<AlertsManagementQuerySortOrder>

クエリ結果の順序を昇順または降順で並べ替えます。 時刻フィールドの既定値は 'desc' で、それ以外の場合は "asc" です。

select
String

このフィルターを使用すると、必須セクションの一部となるフィールド (コンマ区切り) を選択できます。 これにより、コンテンツ全体を取得するのではなく、必要なフィールドのみを投影できます。 既定値は、essentials セクションのすべてのフィールドをフェッチすることです。

timeRange
Nullable<TimeRangeFilter>

次の一覧の値で時間範囲でフィルター処理します。 既定値は 1 日です。

customTimeRange
String

時刻が (ISO-8601 形式) である開始時刻>/<終了時刻>の形式<で、ユーザー設定の時間範囲でフィルター処理します。 許容される値は、クエリ時間から 30 日以内です。 timeRange または customTimeRange を使用できますが、両方は使用できません。 既定値は none です。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

反復処理するために複数の ServiceAlertResource サービス要求を受け取る可能性がある のコレクション。

適用対象