MetricAlertCollection.GetAll(CancellationToken) Method

Definition

Retrieve alert rule definitions in a resource group.

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to