Share via


MetricCollector<T>.GetMeasurementSnapshot(Boolean) メソッド

定義

このコレクターによって収集された測定値のスナップショットを取得します。

public System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<T>> GetMeasurementSnapshot (bool clear = false);
member this.GetMeasurementSnapshot : bool -> System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<'T>>
Public Function GetMeasurementSnapshot (Optional clear As Boolean = false) As IReadOnlyList(Of CollectedMeasurement(Of T))

パラメーター

clear
Boolean

これを に true 設定すると、蓄積された測定値のセットがアトミックにクリアされます。

戻り値

このコレクターによって記録された測定値は、記録時間順に並べ替えられます。

適用対象