Partager via


ApplicationInsightsDataClient.GetCustomMetricEventWithHttpMessagesAsync Méthode

Définition

Obtenir un événement de métrique personnalisé

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.ApplicationInsights.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Models.EventsCustomMetricResult>>> GetCustomMetricEventWithHttpMessagesAsync (string eventId, TimeSpan? timespan = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCustomMetricEventWithHttpMessagesAsync : 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.EventsCustomMetricResult>>>
override this.GetCustomMetricEventWithHttpMessagesAsync : 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.EventsCustomMetricResult>>>
Public Function GetCustomMetricEventWithHttpMessagesAsync (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 EventsCustomMetricResult)))

Paramètres

eventId
String

ID de l’événement.

timespan
Nullable<TimeSpan>

facultatif. Intervalle de temps sur lequel récupérer les événements. Il s’agit d’une valeur de période ISO8601. Ce intervalle de temps est appliqué en plus des é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 de métrique personnalisé unique

S’applique à