MetricCollector<T>.GetMeasurementSnapshot(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a snapshot of measurements collected by this collector.
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))
Parameters
- clear
- Boolean
Setting this to true
will atomically clear the set of accumulated measurements.
Returns
The measurements recorded by this collector, ordered by recording time.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.