Aracılığıyla paylaş


ApplicationInsightsDataClient.GetEventsWithHttpMessagesAsync Method

Definition

Execute OData query

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.ApplicationInsights.Models.EventsResults>> GetEventsWithHttpMessagesAsync (Microsoft.Azure.ApplicationInsights.Models.EventType eventType, TimeSpan? timespan = default, string filter = default, string search = default, string orderby = default, string select = default, int? skip = default, int? top = default, string format = default, bool? count = default, string apply = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetEventsWithHttpMessagesAsync : Microsoft.Azure.ApplicationInsights.Models.EventType * Nullable<TimeSpan> * string * string * string * string * Nullable<int> * Nullable<int> * string * Nullable<bool> * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.ApplicationInsights.Models.EventsResults>>
override this.GetEventsWithHttpMessagesAsync : Microsoft.Azure.ApplicationInsights.Models.EventType * Nullable<TimeSpan> * string * string * string * string * Nullable<int> * Nullable<int> * string * Nullable<bool> * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.ApplicationInsights.Models.EventsResults>>
Public Function GetEventsWithHttpMessagesAsync (eventType As EventType, Optional timespan As Nullable(Of TimeSpan) = Nothing, Optional filter As String = Nothing, Optional search As String = Nothing, Optional orderby As String = Nothing, Optional select As String = Nothing, Optional skip As Nullable(Of Integer) = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional format As String = Nothing, Optional count As Nullable(Of Boolean) = Nothing, Optional apply As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of EventsResults))

Parameters

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'

timespan
Nullable<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.

filter
String

An expression used to filter the returned events

search
String

A free-text search expression to match for whether a particular event should be returned

orderby
String

A comma-separated list of properties with "asc" (the default) or "desc" to control the order of returned events

select
String

Limits the properties to just those requested on each returned event

skip
Nullable<Int32>

The number of items to skip over before returning events

top
Nullable<Int32>

The number of events to return

format
String

Format for the returned events

count
Nullable<Boolean>

Request a count of matching items included with the returned events

apply
String

An expression used for aggregation over returned events

customHeaders
Dictionary<String,List<String>>

Headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Implements

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Thrown when a required parameter is null

Remarks

Executes an OData query for events

Applies to