Partager via


AlertsManagementExtensions.GetServiceAlert Méthode

Définition

Obtenir des informations relatives à une alerte spécifique

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}
  • IdAlerts_GetById d’opération
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)

Paramètres

subscriptionResource
SubscriptionResource

Instance SubscriptionResource sur laquelle la méthode s’exécute.

alertId
Guid

ID unique d’une instance d’alerte.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

S’applique à