Lingua

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. <item> Mocking. To mock this method, please mock GetEventCategoriesAsync(CancellationToken) instead. </item>

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 the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

tenantResource is null.

Applies to