AlertProcessingRulesOperationsExtensions.CreateOrUpdateAsync 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.
Create or update an alert processing rule.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule> CreateOrUpdateAsync (this Microsoft.Azure.Management.AlertsManagement.IAlertProcessingRulesOperations operations, string resourceGroupName, string alertProcessingRuleName, Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule alertProcessingRule, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.AlertsManagement.IAlertProcessingRulesOperations * string * string * Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IAlertProcessingRulesOperations, resourceGroupName As String, alertProcessingRuleName As String, alertProcessingRule As AlertProcessingRule, 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 created/updated.
- alertProcessingRule
- AlertProcessingRule
Alert processing rule to be created/updated.
- cancellationToken
- CancellationToken
The cancellation token.