다음을 통해 공유


AlertProcessingRulesOperationsExtensions.GetByNameAsync Method

Definition

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.

Returns

Applies to