Record Class RequestExplanation

java.lang.Object
java.lang.Record
org.mockserver.client.RequestExplanation
Record Components:
correlationId - the correlation ID of the explained request's log entries
timestamp - when the explanation was computed (ISO-8601)
note - the server's reminder that the result is recomputed
request - the recorded request that was explained
atArrival - how the request was handled when it arrived
sameOutcomeAsAtArrival - whether it would be handled the same way now, or null when that cannot be told
expectationsChangedSince - whether the expectations changed at or after the moment the request arrived
expectationsLastChanged - when the expectations last changed (ISO-8601), or null if they never have
matchedExpectation - the expectation that would serve the request now, or null if none would
closestExpectationId - when none would, the expectation with the fewest differing fields, or null
skippedExpectations - the expectations evaluated ahead of the matched one, each with a reason
shadowedExpectations - lower-priority expectations that also match but are never reached
totalExpectations - how many expectations are stored
evaluatedExpectations - how many were evaluated
truncated - whether the evaluation budget ran out before every expectation was evaluated
maxExpectationsEvaluated - the evaluation budget when truncated, otherwise null

public record RequestExplanation(String correlationId, String timestamp, String note, RequestExplanation.ExplainedRequest request, RequestExplanation.Arrival atArrival, Boolean sameOutcomeAsAtArrival, boolean expectationsChangedSince, String expectationsLastChanged, RequestExplanation.ExplainedExpectation matchedExpectation, String closestExpectationId, List<RequestExplanation.ExplainedExpectation> skippedExpectations, List<RequestExplanation.ExplainedExpectation> shadowedExpectations, int totalExpectations, int evaluatedExpectations, boolean truncated, Integer maxExpectationsEvaluated) extends Record
Which expectation would serve a recorded request now, why each expectation evaluated ahead of it was passed over, and how the request was handled when it arrived; returned by MockServerClient.explain(String). The result is recomputed when asked for, against the current expectations, scenario states and remaining Times.