Freigeben über


ApplicationInsightsDataClientExtensions.GetCustomEvent Methode

Definition

Abrufen eines benutzerdefinierten Ereignisses

public static Microsoft.Azure.ApplicationInsights.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Models.EventsCustomEventResult> GetCustomEvent (this Microsoft.Azure.ApplicationInsights.IApplicationInsightsDataClient operations, string eventId, TimeSpan? timespan = default);
static member GetCustomEvent : Microsoft.Azure.ApplicationInsights.IApplicationInsightsDataClient * string * Nullable<TimeSpan> -> Microsoft.Azure.ApplicationInsights.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Models.EventsCustomEventResult>
<Extension()>
Public Function GetCustomEvent (operations As IApplicationInsightsDataClient, eventId As String, Optional timespan As Nullable(Of TimeSpan) = Nothing) As EventsResults(Of EventsCustomEventResult)

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 Zeitbereich wird zusätzlich zu allen angewendet, die im Odata-Ausdruck angegeben sind.

Gibt zurück

Hinweise

Ruft die Daten für ein einzelnes benutzerdefiniertes Ereignis ab.

Gilt für: