AlertRuleCollection.GetAll(CancellationToken) Method

Definition

List the classic metric alert rules within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules
  • Operation Id: AlertRules_ListByResourceGroup
  • Default Api Version: 2016-03-01
  • Resource: AlertRuleResource
public virtual Azure.Pageable<Azure.ResourceManager.Monitor.AlertRuleResource> GetAll (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.AlertRuleResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.AlertRuleResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of AlertRuleResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to