Delen via


SmartGroupsOperationsExtensions.ChangeState Method

Definition

Change the state of a Smart Group.

public static Microsoft.Azure.Management.AlertsManagement.Models.SmartGroup ChangeState (this Microsoft.Azure.Management.AlertsManagement.ISmartGroupsOperations operations, string smartGroupId, string newState);
static member ChangeState : Microsoft.Azure.Management.AlertsManagement.ISmartGroupsOperations * string * string -> Microsoft.Azure.Management.AlertsManagement.Models.SmartGroup
<Extension()>
Public Function ChangeState (operations As ISmartGroupsOperations, smartGroupId As String, newState As String) As SmartGroup

Parameters

operations
ISmartGroupsOperations

The operations group for this extension method.

smartGroupId
String

Smart group unique id.

newState
String

New state of the alert. Possible values include: 'New', 'Acknowledged', 'Closed'

Returns

Applies to