IActivityLogAlertsOperations.UpdateWithHttpMessagesAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Atualizações campos 'tags' e 'enabled' em uma regra de alerta existente. Esse método é usado para atualizar as marcas de regra de alerta e para habilitar ou desabilitar a regra de alerta. Para atualizar outros campos, use a operação CreateOrUpdate.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource>> UpdateWithHttpMessagesAsync (string resourceGroupName, string activityLogAlertName, Microsoft.Azure.Management.Monitor.Models.AlertRulePatchObject activityLogAlertRulePatch, 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.Monitor.Models.AlertRulePatchObject * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource>>
Public Function UpdateWithHttpMessagesAsync (resourceGroupName As String, activityLogAlertName As String, activityLogAlertRulePatch As AlertRulePatchObject, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ActivityLogAlertResource))
Parâmetros
- resourceGroupName
- String
O nome do grupo de recursos. O nome diferencia maiúsculas de minúsculas.
- activityLogAlertName
- String
O nome da regra de Alerta do Log de Atividades.
- activityLogAlertRulePatch
- AlertRulePatchObject
Parâmetros fornecidos para a operação.
- customHeaders
- Dictionary<String,List<String>>
Os cabeçalhos que serão adicionados à solicitação.
- cancellationToken
- CancellationToken
O token de cancelamento.
Retornos
Exceções
Gerado quando a operação retornou um código de status inválido
Gerado quando não é possível desserializar a resposta
Gerado quando um parâmetro necessário é nulo
Aplica-se a
Azure SDK for .NET