Freigeben über


ApplicationInsightsDataClientExtensions.GetPerformanceCounterEventAsync Methode

Definition

Abrufen eines Leistungsindikatorereignisses

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))

Parameter

operations
IApplicationInsightsDataClient

Die Vorgangsgruppe für diese Erweiterungsmethode.

eventId
String

ID des Ereignisses.

timespan
Nullable<TimeSpan>

Optional. Der Zeitraum, über den Ereignisse abgerufen werden sollen. Dies ist ein ISO8601-Zeitraumwert. Dieser Zeitraum wird zusätzlich zu allen angewendet, die im Odata-Ausdruck angegeben sind.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Ruft die Daten für ein einzelnes Leistungsindikatorereignis ab.

Gilt für: