MockableMonitorSubscriptionResource.GetMetricAlerts(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieve alert rule definitions in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts
- Operation Id: MetricAlerts_ListBySubscription
- Default Api Version: 2018-03-01
- Resource: MetricAlertResource
public virtual Azure.Pageable<Azure.ResourceManager.Monitor.MetricAlertResource> GetMetricAlerts (System.Threading.CancellationToken cancellationToken = default);
abstract member GetMetricAlerts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.MetricAlertResource>
override this.GetMetricAlerts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.MetricAlertResource>
Public Overridable Function GetMetricAlerts (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.