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

ApplicationInsightsDataClientExtensions.GetPerformanceCounterEvent 方法

定义

获取性能计数器事件

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

参数

operations
IApplicationInsightsDataClient

此扩展方法的操作组。

eventId
String

事件的 ID。

timespan
Nullable<TimeSpan>

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

返回

注解

获取单个性能计数器事件的数据

适用于