Sdílet prostřednictvím


MonitorExtensions.GetActivityLogAlerts Method

Definition

Overloads

GetActivityLogAlerts(SubscriptionResource, CancellationToken)

Get a list of all Activity Log Alert rules in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/activityLogAlerts
  • Operation Id: ActivityLogAlerts_ListBySubscriptionId
  • Default Api Version: 2020-10-01
  • Resource: ActivityLogAlertResource
GetActivityLogAlerts(ResourceGroupResource)

Gets a collection of ActivityLogAlertResources in the ResourceGroupResource. MockingTo mock this method, please mock GetActivityLogAlerts() instead.

GetActivityLogAlerts(SubscriptionResource, CancellationToken)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

Get a list of all Activity Log Alert rules in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/activityLogAlerts
  • Operation Id: ActivityLogAlerts_ListBySubscriptionId
  • Default Api Version: 2020-10-01
  • Resource: ActivityLogAlertResource
public static Azure.Pageable<Azure.ResourceManager.Monitor.ActivityLogAlertResource> GetActivityLogAlerts (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetActivityLogAlerts : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.ActivityLogAlertResource>
<Extension()>
Public Function GetActivityLogAlerts (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ActivityLogAlertResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetActivityLogAlerts(ResourceGroupResource)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

Gets a collection of ActivityLogAlertResources in the ResourceGroupResource. MockingTo mock this method, please mock GetActivityLogAlerts() instead.

public static Azure.ResourceManager.Monitor.ActivityLogAlertCollection GetActivityLogAlerts (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetActivityLogAlerts : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Monitor.ActivityLogAlertCollection
<Extension()>
Public Function GetActivityLogAlerts (resourceGroupResource As ResourceGroupResource) As ActivityLogAlertCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ActivityLogAlertResources and their operations over a ActivityLogAlertResource.

Exceptions

resourceGroupResource is null.

Applies to