Partager via


EventsExtensions.GetTraceEventAsync Méthode

Définition

Obtenir un événement de trace

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

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 de trace unique

S’applique à