Condividi tramite


IAlertProcessingRulesOperations.UpdateWithHttpMessagesAsync Method

Definition

Enable, disable, or update tags for an alert processing rule.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule,Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRulesUpdateHeaders>> UpdateWithHttpMessagesAsync (string resourceGroupName, string alertProcessingRuleName, Microsoft.Azure.Management.AlertsManagement.Models.PatchObject alertProcessingRulePatch, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.AlertsManagement.Models.PatchObject * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule, Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRulesUpdateHeaders>>
Public Function UpdateWithHttpMessagesAsync (resourceGroupName As String, alertProcessingRuleName As String, alertProcessingRulePatch As PatchObject, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of AlertProcessingRule, AlertProcessingRulesUpdateHeaders))

Parameters

resourceGroupName
String

Resource group name where the resource is created.

alertProcessingRuleName
String

The name that needs to be updated.

alertProcessingRulePatch
PatchObject

Parameters supplied to the operation.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to