Udostępnij za pośrednictwem


MetricCollector<T>.GetMeasurementSnapshot(Boolean) Metoda

Definicja

Pobiera migawkę pomiarów zebranych przez ten moduł zbierający.

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))

Parametry

clear
Boolean

Ustawienie tej wartości spowoduje true niepodzielne wyczyszczenie zestawu skumulowanych pomiarów.

Zwraca

Pomiary zarejestrowane przez ten moduł zbierający uporządkowane przez czas rejestrowania.

Dotyczy