Partager via


ApplicationInsightsDataClient.GetCustomEventWithHttpMessagesAsync Méthode

Définition

Obtenir un événement personnalisé

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.ApplicationInsights.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Models.EventsCustomEventResult>>> GetCustomEventWithHttpMessagesAsync (string eventId, TimeSpan? timespan = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCustomEventWithHttpMessagesAsync : string * Nullable<TimeSpan> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.ApplicationInsights.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Models.EventsCustomEventResult>>>
override this.GetCustomEventWithHttpMessagesAsync : string * Nullable<TimeSpan> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.ApplicationInsights.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Models.EventsCustomEventResult>>>
Public Function GetCustomEventWithHttpMessagesAsync (eventId As String, Optional timespan As Nullable(Of TimeSpan) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of EventsResults(Of EventsCustomEventResult)))

Paramètres

eventId
String

ID de l’événement.

timespan
Nullable<TimeSpan>

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.

customHeaders
Dictionary<String,List<String>>

En-têtes qui seront ajoutés à la demande.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Implémente

Remarques

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

S’applique à