Compartir a través de


SmartGroupsOperationsExtensions.ChangeStateAsync Método

Definición

Cambie el estado de un grupo inteligente.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.SmartGroup> ChangeStateAsync (this Microsoft.Azure.Management.AlertsManagement.ISmartGroupsOperations operations, string smartGroupId, string newState, System.Threading.CancellationToken cancellationToken = default);
static member ChangeStateAsync : Microsoft.Azure.Management.AlertsManagement.ISmartGroupsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.SmartGroup>
<Extension()>
Public Function ChangeStateAsync (operations As ISmartGroupsOperations, smartGroupId As String, newState As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SmartGroup)

Parámetros

operations
ISmartGroupsOperations

El grupo de operaciones de este método de extensión.

smartGroupId
String

Identificador único del grupo inteligente.

newState
String

Nuevo estado de la alerta. Entre los valores posibles se incluyen: "New", "Acknowledged", "Closed"

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a