MockableMonitorSubscriptionResource.GetAlertRules(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.
List the classic metric alert rules within a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules
- Operation Id: AlertRules_ListBySubscription
- Default Api Version: 2016-03-01
- Resource: AlertRuleResource
public virtual Azure.Pageable<Azure.ResourceManager.Monitor.AlertRuleResource> GetAlertRules (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAlertRules : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.AlertRuleResource>
override this.GetAlertRules : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.AlertRuleResource>
Public Overridable Function GetAlertRules (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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for .NET