Record Class GateRequest

java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.GateRequest
Record Components:
candidateRunId - the terminal run to gate; required
baselineRunId - 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 (and baselineRunId is 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 Details

    • GateRequest

      public GateRequest(@NotNull(message="candidateRunId is required") @NotNull(message="candidateRunId is required") UUID candidateRunId, UUID baselineRunId, String baselineBranch)
      Creates an instance of a GateRequest record class.
      Parameters:
      candidateRunId - the value for the candidateRunId record component
      baselineRunId - the value for the baselineRunId record component
      baselineBranch - the value for the baselineBranch record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • candidateRunId

      @NotNull(message="candidateRunId is required") public @NotNull(message="candidateRunId is required") UUID candidateRunId()
      Returns the value of the candidateRunId record component.
      Returns:
      the value of the candidateRunId record component
    • baselineRunId

      public UUID baselineRunId()
      Returns the value of the baselineRunId record component.
      Returns:
      the value of the baselineRunId record component
    • baselineBranch

      public String baselineBranch()
      Returns the value of the baselineBranch record component.
      Returns:
      the value of the baselineBranch record component