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

AlertsManagementExtensions.GetServiceAlert 方法

定义

获取与特定警报相关的信息

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}
  • 操作IdAlerts_GetById
public static Azure.Response<Azure.ResourceManager.AlertsManagement.ServiceAlertResource> GetServiceAlert (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Guid alertId, System.Threading.CancellationToken cancellationToken = default);
static member GetServiceAlert : Azure.ResourceManager.Resources.SubscriptionResource * Guid * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>
<Extension()>
Public Function GetServiceAlert (subscriptionResource As SubscriptionResource, alertId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ServiceAlertResource)

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

alertId
Guid

警报实例的唯一 ID。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于