共用方式為


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 會以不可部分完成的方式清除一組累積的度量。

傳回

此收集器所記錄的度量,依錄製時間排序。

適用於