Package dev.dokimos.server.dto.v1
Record Class GateRequest
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.GateRequest
- Record Components:
candidateRunId- the terminal run to gate; requiredbaselineRunId- an explicit baseline run to compare against; when null the baseline is resolved automatically (most recent terminal run of the same experiment)baselineBranch- when set (andbaselineRunIdis null), restricts automatic baseline resolution to runs on this git branch
public record GateRequest(@NotNull(message="candidateRunId is required") UUID candidateRunId, UUID baselineRunId, String baselineBranch)
extends Record
Request to evaluate a CI regression gate for an already-ingested candidate run.
-
Constructor Summary
ConstructorsConstructorDescriptionGateRequest(@NotNull(message="candidateRunId is required") UUID candidateRunId, UUID baselineRunId, String baselineBranch) Creates an instance of aGateRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaselineBranchrecord component.Returns the value of thebaselineRunIdrecord component.@NotNull(message="candidateRunId is required") UUIDReturns the value of thecandidateRunIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GateRequest
public GateRequest(@NotNull(message="candidateRunId is required") @NotNull(message="candidateRunId is required") UUID candidateRunId, UUID baselineRunId, String baselineBranch) Creates an instance of aGateRequestrecord class.- Parameters:
candidateRunId- the value for thecandidateRunIdrecord componentbaselineRunId- the value for thebaselineRunIdrecord componentbaselineBranch- the value for thebaselineBranchrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
candidateRunId
@NotNull(message="candidateRunId is required") public @NotNull(message="candidateRunId is required") UUID candidateRunId()Returns the value of thecandidateRunIdrecord component.- Returns:
- the value of the
candidateRunIdrecord component
-
baselineRunId
Returns the value of thebaselineRunIdrecord component.- Returns:
- the value of the
baselineRunIdrecord component
-
baselineBranch
Returns the value of thebaselineBranchrecord component.- Returns:
- the value of the
baselineBranchrecord component
-