Partager via


EventsExtensions.GetExceptionEventAsync Méthode

Définition

Obtenir un événement d’exception

public static System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Query.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Query.Models.EventsExceptionResult>> GetExceptionEventAsync (this Microsoft.Azure.ApplicationInsights.Query.IEvents operations, string appId, string eventId, string timespan = default, System.Threading.CancellationToken cancellationToken = default);
static member GetExceptionEventAsync : Microsoft.Azure.ApplicationInsights.Query.IEvents * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Query.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Query.Models.EventsExceptionResult>>
<Extension()>
Public Function GetExceptionEventAsync (operations As IEvents, appId As String, eventId As String, Optional timespan As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EventsResults(Of EventsExceptionResult))

Paramètres

operations
IEvents

Groupe d’opérations pour cette méthode d’extension.

appId
String

ID de l’application. Il s’agit de l’ID d’application du panneau Des paramètres d’accès à l’API dans le Portail Azure.

eventId
String

ID de l’événement.

timespan
String

facultatif. Intervalle de temps sur lequel récupérer des événements. Il s’agit d’une valeur de période ISO8601. Ce délai est appliqué en plus de tous les éléments spécifiés dans l’expression Odata.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Remarques

Obtient les données d’un événement d’exception unique

S’applique à