AlertsManagementExtensions.GetAlertProcessingRules Method

Definition

Overloads

GetAlertProcessingRules(ResourceGroupResource)

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

GetAlertProcessingRules(SubscriptionResource, CancellationToken)

List all alert processing rules in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/actionRules
  • Operation Id: AlertProcessingRules_ListBySubscription

GetAlertProcessingRules(ResourceGroupResource)

Source:
AlertsManagementExtensions.cs
Source:
AlertsManagementExtensions.cs

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

public static Azure.ResourceManager.AlertsManagement.AlertProcessingRuleCollection GetAlertProcessingRules (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetAlertProcessingRules : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.AlertsManagement.AlertProcessingRuleCollection
<Extension()>
Public Function GetAlertProcessingRules (resourceGroupResource As ResourceGroupResource) As AlertProcessingRuleCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of AlertProcessingRuleResources and their operations over a AlertProcessingRuleResource.

Exceptions

resourceGroupResource is null.

Applies to

GetAlertProcessingRules(SubscriptionResource, CancellationToken)

Source:
AlertsManagementExtensions.cs
Source:
AlertsManagementExtensions.cs

List all alert processing rules in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/actionRules
  • Operation Id: AlertProcessingRules_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.AlertsManagement.AlertProcessingRuleResource> GetAlertProcessingRules (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetAlertProcessingRules : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AlertsManagement.AlertProcessingRuleResource>
<Extension()>
Public Function GetAlertProcessingRules (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of AlertProcessingRuleResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to