次の方法で共有


MonitorExtensions.GetEventCategoriesAsync メソッド

定義

アクティビティ ログ サービスでサポートされている使用可能なイベント カテゴリの一覧を取得します。<br>現在の一覧には、管理、セキュリティ、ServiceHealth、アラート、推奨事項、ポリシーが含まれています。

  • 要求パス/プロバイダー/Microsoft.Insights/eventcategories
  • 操作IdEventCategories_List
public static Azure.AsyncPageable<Azure.ResourceManager.Monitor.Models.MonitorLocalizableString> GetEventCategoriesAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default);
static member GetEventCategoriesAsync : Azure.ResourceManager.Resources.TenantResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Monitor.Models.MonitorLocalizableString>
<Extension()>
Public Function GetEventCategoriesAsync (tenantResource As TenantResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of MonitorLocalizableString)

パラメーター

tenantResource
TenantResource

TenantResourceメソッドが実行するインスタンス。

cancellationToken
CancellationToken

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

戻り値

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

適用対象