Record Class ShardIntelligence

java.lang.Object
java.lang.Record
com.shaft.doctor.shard.ShardIntelligence
Record Components:
shardId - shard identifier (blob directory name)
primaryCause - deterministic primary cause name
confidence - deterministic confidence name
failingAttempts - failed or broken attempt count reported by the shard's doctor run
hiddenRetryFailures - retry-hidden failure count reported by the shard's doctor run
recurringFailures - recurring failure count reported by the shard's doctor run
summary - concise per-shard doctor summary

public record ShardIntelligence(String shardId, String primaryCause, String confidence, int failingAttempts, int hiddenRetryFailures, int recurringFailures, String summary) extends Record
One shard's doctor ExecutionIntelligence digest, reduced to the fields useful for cross-shard doctor-triage aggregation in the merged speedboard -- SHAFT's differentiator over Playwright's plain merge-reports, which carries no failure intelligence.
  • Constructor Details

    • ShardIntelligence

      public ShardIntelligence(String shardId, String primaryCause, String confidence, int failingAttempts, int hiddenRetryFailures, int recurringFailures, String summary)
      Creates an instance of a ShardIntelligence record class.
      Parameters:
      shardId - the value for the shardId record component
      primaryCause - the value for the primaryCause record component
      confidence - the value for the confidence record component
      failingAttempts - the value for the failingAttempts record component
      hiddenRetryFailures - the value for the hiddenRetryFailures record component
      recurringFailures - the value for the recurringFailures record component
      summary - the value for the summary 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • shardId

      public String shardId()
      Returns the value of the shardId record component.
      Returns:
      the value of the shardId record component
    • primaryCause

      public String primaryCause()
      Returns the value of the primaryCause record component.
      Returns:
      the value of the primaryCause record component
    • confidence

      public String confidence()
      Returns the value of the confidence record component.
      Returns:
      the value of the confidence record component
    • failingAttempts

      public int failingAttempts()
      Returns the value of the failingAttempts record component.
      Returns:
      the value of the failingAttempts record component
    • hiddenRetryFailures

      public int hiddenRetryFailures()
      Returns the value of the hiddenRetryFailures record component.
      Returns:
      the value of the hiddenRetryFailures record component
    • recurringFailures

      public int recurringFailures()
      Returns the value of the recurringFailures record component.
      Returns:
      the value of the recurringFailures record component
    • summary

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