次の方法で共有


SmartGroupCollection.GetAll メソッド

定義

オーバーロード

GetAll(SmartGroupCollectionGetAllOptions, CancellationToken)

指定したサブスクリプション内のすべてのスマート グループを一覧表示します。

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

指定したサブスクリプション内のすべてのスマート グループを一覧表示します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups
  • 操作IdSmartGroups_GetAll

GetAll(SmartGroupCollectionGetAllOptions, CancellationToken)

指定したサブスクリプション内のすべてのスマート グループを一覧表示します。

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

パラメーター

options
SmartGroupCollectionGetAllOptions

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

cancellationToken
CancellationToken

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

戻り値

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

適用対象

GetAll(String, String, String, Nullable<MonitorServiceSourceForAlert>, Nullable<MonitorCondition>, Nullable<ServiceAlertSeverity>, Nullable<ServiceAlertState>, Nullable<TimeRangeFilter>, Nullable<Int64>, Nullable<SmartGroupsSortByField>, Nullable<AlertsManagementQuerySortOrder>, CancellationToken)

指定したサブスクリプション内のすべてのスマート グループを一覧表示します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups
  • 操作IdSmartGroups_GetAll
public virtual Azure.Pageable<Azure.ResourceManager.AlertsManagement.SmartGroupResource> GetAll (string targetResource = default, string targetResourceGroup = default, string targetResourceType = 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? smartGroupState = default, Azure.ResourceManager.AlertsManagement.Models.TimeRangeFilter? timeRange = default, long? pageCount = default, Azure.ResourceManager.AlertsManagement.Models.SmartGroupsSortByField? sortBy = default, Azure.ResourceManager.AlertsManagement.Models.AlertsManagementQuerySortOrder? sortOrder = 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> * Nullable<Azure.ResourceManager.AlertsManagement.Models.TimeRangeFilter> * Nullable<int64> * Nullable<Azure.ResourceManager.AlertsManagement.Models.SmartGroupsSortByField> * Nullable<Azure.ResourceManager.AlertsManagement.Models.AlertsManagementQuerySortOrder> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AlertsManagement.SmartGroupResource>
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> * Nullable<Azure.ResourceManager.AlertsManagement.Models.TimeRangeFilter> * Nullable<int64> * Nullable<Azure.ResourceManager.AlertsManagement.Models.SmartGroupsSortByField> * Nullable<Azure.ResourceManager.AlertsManagement.Models.AlertsManagementQuerySortOrder> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AlertsManagement.SmartGroupResource>
Public Overridable Function GetAll (Optional targetResource As String = Nothing, Optional targetResourceGroup As String = Nothing, Optional targetResourceType 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 smartGroupState As Nullable(Of ServiceAlertState) = Nothing, Optional timeRange As Nullable(Of TimeRangeFilter) = Nothing, Optional pageCount As Nullable(Of Long) = Nothing, Optional sortBy As Nullable(Of SmartGroupsSortByField) = Nothing, Optional sortOrder As Nullable(Of AlertsManagementQuerySortOrder) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SmartGroupResource)

パラメーター

targetResource
String

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

targetResourceGroup
String

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

targetResourceType
String

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

monitorService
Nullable<MonitorServiceSourceForAlert>

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

monitorCondition
Nullable<MonitorCondition>

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

severity
Nullable<ServiceAlertSeverity>

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

smartGroupState
Nullable<ServiceAlertState>

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

timeRange
Nullable<TimeRangeFilter>

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

pageCount
Nullable<Int64>

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

sortBy
Nullable<SmartGroupsSortByField>

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

sortOrder
Nullable<AlertsManagementQuerySortOrder>

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

cancellationToken
CancellationToken

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

戻り値

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

適用対象