Compartilhar via


ActivityLogAlertsOperationsExtensions.Update Método

Definição

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 static Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource Update (this Microsoft.Azure.Management.Monitor.IActivityLogAlertsOperations operations, string resourceGroupName, string activityLogAlertName, Microsoft.Azure.Management.Monitor.Models.AlertRulePatchObject activityLogAlertRulePatch);
static member Update : Microsoft.Azure.Management.Monitor.IActivityLogAlertsOperations * string * string * Microsoft.Azure.Management.Monitor.Models.AlertRulePatchObject -> Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource
<Extension()>
Public Function Update (operations As IActivityLogAlertsOperations, resourceGroupName As String, activityLogAlertName As String, activityLogAlertRulePatch As AlertRulePatchObject) As ActivityLogAlertResource

Parâmetros

operations
IActivityLogAlertsOperations

O grupo de operações para esse método de extensão.

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.

Retornos

Aplica-se a