Dela via


MonitorExtensions.GetEventCategoriesAsync Method

Definition

Get the list of available event categories supported in the Activity Logs Service.<br>The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.

  • Request Path: /providers/Microsoft.Insights/eventcategories
  • Operation Id: EventCategories_List
  • Default Api Version: 2015-04-01
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)

Parameters

tenantResource
TenantResource

The TenantResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of MonitorLocalizableString that may take multiple service requests to iterate over.

Exceptions

tenantResource is null.

Applies to