Compartilhar via


AlertsManagementExtensions.GetServiceAlertAsync Método

Definição

Obter informações relacionadas a um alerta específico

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}
  • IdAlerts_GetById de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>> GetServiceAlertAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Guid alertId, System.Threading.CancellationToken cancellationToken = default);
static member GetServiceAlertAsync : Azure.ResourceManager.Resources.SubscriptionResource * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>>
<Extension()>
Public Function GetServiceAlertAsync (subscriptionResource As SubscriptionResource, alertId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceAlertResource))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

alertId
Guid

ID exclusiva de uma instância de alerta.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a