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 설정하면 누적된 측정값 집합이 원자적으로 지워지게 됩니다.

반환

기록 시간별로 정렬된 이 수집기에서 기록한 측정값입니다.

적용 대상