ApplicationInsightsDataClientExtensions.GetEvent(IApplicationInsightsDataClient, EventType, String, Nullable<TimeSpan>) Method

Definition

Get an event

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

Parameters

operations
IApplicationInsightsDataClient

The operations group for this extension method.

eventType
EventType

The type of events to query; either a standard event type (traces, customEvents, pageViews, requests, dependencies, exceptions, availabilityResults) or $all to query across all event types. Possible values include: '$all', 'traces', 'customEvents', 'pageViews', 'browserTimings', 'requests', 'dependencies', 'exceptions', 'availabilityResults', 'performanceCounters', 'customMetrics'

eventId
System.String

ID of event.

timespan
System.Nullable<System.TimeSpan>

Optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the Odata expression.

Returns

EventsResults

Remarks

Gets the data for a single event

Applies to