你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SmartGroupResource.ChangeState(ServiceAlertState, CancellationToken) 方法

定义

更改智能组的状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/changeState
  • 操作IdSmartGroups_ChangeState
public virtual Azure.Response<Azure.ResourceManager.AlertsManagement.SmartGroupResource> ChangeState (Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState newState, System.Threading.CancellationToken cancellationToken = default);
abstract member ChangeState : Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AlertsManagement.SmartGroupResource>
override this.ChangeState : Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AlertsManagement.SmartGroupResource>
Public Overridable Function ChangeState (newState As ServiceAlertState, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SmartGroupResource)

参数

newState
ServiceAlertState

警报的新状态。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于