AlertProcessingRulesOperationsExtensions.GetByNameAsync 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.
Get an alert processing rule by name.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule> GetByNameAsync (this Microsoft.Azure.Management.AlertsManagement.IAlertProcessingRulesOperations operations, string resourceGroupName, string alertProcessingRuleName, System.Threading.CancellationToken cancellationToken = default);
static member GetByNameAsync : Microsoft.Azure.Management.AlertsManagement.IAlertProcessingRulesOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule>
<Extension()>
Public Function GetByNameAsync (operations As IAlertProcessingRulesOperations, resourceGroupName As String, alertProcessingRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AlertProcessingRule)
Parameters
- operations
- IAlertProcessingRulesOperations
The operations group for this extension method.
- resourceGroupName
- String
Resource group name where the resource is created.
- alertProcessingRuleName
- String
The name of the alert processing rule that needs to be fetched.
- cancellationToken
- CancellationToken
The cancellation token.