Skip to content

Compono.Metrics.MeasurementVerificationBuilder T .Matching(System.Func Compono.Metrics.CapturedMeasurement T ,bool )

Compono.Metrics

Compono.Metrics.MeasurementVerificationBuilder<T>

MeasurementVerificationBuilder\<T>.Matching(Func\<CapturedMeasurement\<T>,bool>) Method

Restricts matches to measurements satisfying an arbitrary predicate - the escape hatch for anything the named filters above don't cover (an exact tag-set match, a tolerance, and so on).

public Compono.Metrics.MeasurementVerificationBuilder<T> Matching(System.Func<Compono.Metrics.CapturedMeasurement<T>,bool> predicate);

Parameters

predicate System.Func<Compono.Metrics.CapturedMeasurement<T>,System.Boolean>

Returns

Compono.Metrics.MeasurementVerificationBuilder<T>

Exceptions

System.ArgumentNullException
predicate is null.