Table of Contents

Struct MeasurementBaseline

Namespace
MetricsAssertions
Assembly
MetricsAssertions.dll

An opaque marker for a point in an InstrumentCapture's measurement stream, taken with Snapshot() and passed to Since(MeasurementBaseline) to assert only the measurements recorded after it (the delta produced by an action, independent of whatever a long-lived static meter accumulated before). A baseline is bound to the capture that produced it; passing it to a different capture's Since(MeasurementBaseline) throws.

public readonly record struct MeasurementBaseline : IEquatable<MeasurementBaseline>
Implements
Inherited Members

Properties

Count

Gets the number of measurements captured at the moment the baseline was taken.

public int Count { get; }

Property Value

int