Share via


ApplicationInsightsDataClientExtensions.GetPerformanceCounterEventAsync Méthode

Définition

Obtenir un événement de compteur de performances

public static System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Models.EventsPerformanceCounterResult>> GetPerformanceCounterEventAsync (this Microsoft.Azure.ApplicationInsights.IApplicationInsightsDataClient operations, string eventId, TimeSpan? timespan = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPerformanceCounterEventAsync : Microsoft.Azure.ApplicationInsights.IApplicationInsightsDataClient * string * Nullable<TimeSpan> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Models.EventsPerformanceCounterResult>>
<Extension()>
Public Function GetPerformanceCounterEventAsync (operations As IApplicationInsightsDataClient, eventId As String, Optional timespan As Nullable(Of TimeSpan) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EventsResults(Of EventsPerformanceCounterResult))

Paramètres

operations
IApplicationInsightsDataClient

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

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.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Remarques

Obtient les données d’un seul événement de compteur de performances

S’applique à