你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventsExtensions.GetPageViewEventsAsync 方法

定义

对页面视图事件执行 OData 查询

public static System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Query.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Query.Models.EventsPageViewResult>> GetPageViewEventsAsync (this Microsoft.Azure.ApplicationInsights.Query.IEvents operations, string appId, string 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.Threading.CancellationToken cancellationToken = default);
static member GetPageViewEventsAsync : Microsoft.Azure.ApplicationInsights.Query.IEvents * string * string * string * string * string * string * Nullable<int> * Nullable<int> * string * Nullable<bool> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Query.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Query.Models.EventsPageViewResult>>
<Extension()>
Public Function GetPageViewEventsAsync (operations As IEvents, appId As String, Optional timespan As String = 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 cancellationToken As CancellationToken = Nothing) As Task(Of EventsResults(Of EventsPageViewResult))

参数

operations
IEvents

此扩展方法的操作组。

appId
String

应用程序的 ID。 这是Azure 门户“API 访问设置”边栏选项卡中的应用程序 ID。

timespan
String

可选。 检索事件的时间跨度。 这是 ISO8601 时间段值。 除 Odata 表达式中指定的时间外,还会应用此时间跨度。

filter
String

用于筛选返回的事件的表达式

search
String

要匹配是否应返回特定事件的自由文本搜索表达式

orderby
String

以逗号分隔的属性列表,其中“asc” (默认) 或“desc”来控制返回事件的顺序

select
String

将属性限制为仅针对每个返回的事件请求的属性

skip
Nullable<Int32>

返回事件之前要跳过的项目数

top
Nullable<Int32>

要返回的事件数

format
String

返回事件的格式

count
Nullable<Boolean>

请求返回的事件中包含的匹配项的计数

apply
String

用于对返回的事件进行聚合的表达式

cancellationToken
CancellationToken

取消标记。

返回

注解

对页面视图事件执行 OData 查询

适用于