次の方法で共有


ApplicationInsightsDataClient.GetIntervaledSegmentedMetricWithHttpMessagesAsync メソッド

定義

メトリック データを取得する

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.ApplicationInsights.Models.MetricsIntervaledSegmentedResult>> GetIntervaledSegmentedMetricWithHttpMessagesAsync (string metricId, TimeSpan? timespan = default, TimeSpan? interval = default, System.Collections.Generic.IList<string> aggregation = default, System.Collections.Generic.IList<string> segment = default, int? top = default, string orderby = default, string filter = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIntervaledSegmentedMetricWithHttpMessagesAsync : string * Nullable<TimeSpan> * Nullable<TimeSpan> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * Nullable<int> * string * 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.MetricsIntervaledSegmentedResult>>
override this.GetIntervaledSegmentedMetricWithHttpMessagesAsync : string * Nullable<TimeSpan> * Nullable<TimeSpan> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * Nullable<int> * string * 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.MetricsIntervaledSegmentedResult>>
Public Function GetIntervaledSegmentedMetricWithHttpMessagesAsync (metricId As String, Optional timespan As Nullable(Of TimeSpan) = Nothing, Optional interval As Nullable(Of TimeSpan) = Nothing, Optional aggregation As IList(Of String) = Nothing, Optional segment As IList(Of String) = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional orderby As String = Nothing, Optional filter As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of MetricsIntervaledSegmentedResult))

パラメーター

metricId
String

メトリックの ID。 これは、標準の AI メトリック、またはアプリケーション固有のカスタム メトリックです。 使用可能な値は、'requests/count'、'requests/duration'、'requests/failed'、'users/count'、'users/authenticated'、 'pageViews/count'、'pageViews/duration'、'client/processingDuration'、'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'

timespan
Nullable<TimeSpan>

メトリック値を取得する期間。 これは ISO8601 期間の値です。 timespan を省略すると、既定の PT12H 時間範囲 ("過去 12 時間") が使用されます。 クエリが実行される実際の期間は、サーバー ベースで調整できます。 いずれの場合も、クエリに使用される実際の期間が応答に含まれます。

interval
Nullable<TimeSpan>

メトリック値を取得するときに使用する時間間隔。 これは ISO8601 の期間です。 interval を省略すると、メトリック値は期間全体にわたって集計されます。 interval が指定されている場合、サーバーは、クエリに使用される期間に基づいて、より適切なサイズに間隔を調整できます。 いずれの場合も、クエリに使用される実際の間隔が応答に含まれます。

aggregation
IList<String>

メトリック値を計算するときに使用する集計。 一度に複数の集計を取得するには、コンマで区切ります。 集計が指定されていない場合は、メトリックの既定の集計が使用されます。

segment
IList<String>

メトリック値をセグメント化するディメンションの名前。 このディメンションは、取得するメトリックに適用する必要があります。 一度に複数のディメンションでセグメント化するには、コンマ (,) で区切ります。 この場合、メトリック データは、ディメンションがパラメーターに一覧表示される順序でセグメント化されます。

top
Nullable<Int32>

返すセグメントの数。 この値は、セグメントが指定されている場合にのみ有効です。

orderby
String

セグメントを並べ替える集計関数と方向。 この値は、セグメントが指定されている場合にのみ有効です。

filter
String

結果をフィルター処理するために使用される式。 この値は有効な OData フィルター式である必要があります。各句のキーは、取得するメトリックに適用可能なディメンションである必要があります。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

実装

注釈

1 つのメトリックのメトリック値を取得します

適用対象