ApplicationInsightsDataClientExtensions.GetMetricSummaryAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieve summary metric data
public static System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Models.MetricsSummaryResult> GetMetricSummaryAsync (this Microsoft.Azure.ApplicationInsights.IApplicationInsightsDataClient operations, string metricId, TimeSpan? timespan = default, System.Collections.Generic.IList<string> aggregation = default, int? top = default, string orderby = default, string filter = default, System.Threading.CancellationToken cancellationToken = default);
static member GetMetricSummaryAsync : Microsoft.Azure.ApplicationInsights.IApplicationInsightsDataClient * string * Nullable<TimeSpan> * System.Collections.Generic.IList<string> * Nullable<int> * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Models.MetricsSummaryResult>
<Extension()>
Public Function GetMetricSummaryAsync (operations As IApplicationInsightsDataClient, metricId As String, Optional timespan As Nullable(Of TimeSpan) = Nothing, Optional aggregation As IList(Of String) = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional orderby As String = Nothing, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of MetricsSummaryResult)
Parameters
- operations
- IApplicationInsightsDataClient
The operations group for this extension method.
- metricId
- String
ID of the metric. This is either a standard AI metric, or an application-specific custom metric. Possible values include: 'requests/count', 'requests/duration', 'requests/failed', 'users/count', 'users/authenticated', 'pageViews/count', 'pageViews/duration', 'client/processingDuration', 'client/receiveDuration', 'client/networkDuration', 'client/sendDuration', 'client/totalDuration', 'dependencies/count', 'dependencies/failed', 'dependencies/duration', 'exceptions/count', 'exceptions/browser', 'exceptions/server', 'sessions/count', 'performanceCounters/requestExecutionTime', 'performanceCounters/requestsPerSecond', 'performanceCounters/requestsInQueue', 'performanceCounters/memoryAvailableBytes', 'performanceCounters/exceptionsPerSecond', 'performanceCounters/processCpuPercentage', 'performanceCounters/processIOBytesPerSecond', 'performanceCounters/processPrivateBytes', 'performanceCounters/processorCpuPercentage', 'availabilityResults/availabilityPercentage', 'availabilityResults/duration', 'billing/telemetryCount', 'customEvents/count'
The timespan over which to retrieve metric values. This is an
ISO8601 time period value. If timespan is omitted, a default time
range of PT12H
("last 12 hours") is used. The actual timespan
that is queried may be adjusted by the server based. In all cases,
the actual time span used for the query is included in the
response.
The aggregation to use when computing the metric values. To retrieve more than one aggregation at a time, separate them with a comma. If no aggregation is specified, then the default aggregation for the metric is used.
The number of segments to return. This value is only valid when segment is specified.
- orderby
- String
The aggregation function and direction to sort the segments by. This value is only valid when segment is specified.
- filter
- String
An expression used to filter the results. This value should be a valid OData filter expression where the keys of each clause should be applicable dimensions for the metric you are retrieving.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Remarks
Gets summary metric values for a single metric
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기