Freigeben über


ApplicationInsightsDataClientExtensions.GetDependencyEventAsync Methode

Definition

Abrufen eines Abhängigkeitsereignisses

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

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 Abhängigkeitsereignis ab.

Gilt für: