共用方式為


MonitorExtensions.GetEventCategories 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.Pageable<Azure.ResourceManager.Monitor.Models.MonitorLocalizableString> GetEventCategories (this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default);
static member GetEventCategories : Azure.ResourceManager.Resources.TenantResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.Models.MonitorLocalizableString>
<Extension()>
Public Function GetEventCategories (tenantResource As TenantResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MonitorLocalizableString)

Parameters

tenantResource
TenantResource

The TenantResource instance 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