Compartir a través de


ActivityLogAlertsOperationsExtensions.CreateOrUpdateAsync Método

Definición

Cree una nueva regla de alertas del registro de actividad o actualice una existente.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource> CreateOrUpdateAsync (this Microsoft.Azure.Management.Monitor.IActivityLogAlertsOperations operations, string resourceGroupName, string activityLogAlertName, Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource activityLogAlertRule, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Monitor.IActivityLogAlertsOperations * string * string * Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IActivityLogAlertsOperations, resourceGroupName As String, activityLogAlertName As String, activityLogAlertRule As ActivityLogAlertResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ActivityLogAlertResource)

Parámetros

operations
IActivityLogAlertsOperations

Grupo de operaciones para este método de extensión.

resourceGroupName
String

Nombre del grupo de recursos. El nombre distingue mayúsculas de minúsculas.

activityLogAlertName
String

Nombre de la regla de alertas del registro de actividad.

activityLogAlertRule
ActivityLogAlertResource

La regla de alertas del registro de actividad que se va a crear o usar para la actualización.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a