Record Class UsageEvent

java.lang.Object
java.lang.Record
io.jenkins.plugins.explain_error.UsageEvent

public record UsageEvent(long timestampMillis, UsageEvent.EntryPoint entryPoint, UsageEvent.Result result, String providerName, String model, long durationMillis, int inputLogLineCount, boolean downstreamLogsCollected) extends Record
Immutable event describing a single Explain Error request outcome.
  • Constructor Details

    • UsageEvent

      public UsageEvent(long timestampMillis, UsageEvent.EntryPoint entryPoint, UsageEvent.Result result, String providerName, String model, long durationMillis, int inputLogLineCount, boolean downstreamLogsCollected)
      Creates an instance of a UsageEvent record class.
      Parameters:
      timestampMillis - the value for the timestampMillis record component
      entryPoint - the value for the entryPoint record component
      result - the value for the result record component
      providerName - the value for the providerName record component
      model - the value for the model record component
      durationMillis - the value for the durationMillis record component
      inputLogLineCount - the value for the inputLogLineCount record component
      downstreamLogsCollected - the value for the downstreamLogsCollected 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 '=='.
      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.
    • timestampMillis

      public long timestampMillis()
      Returns the value of the timestampMillis record component.
      Returns:
      the value of the timestampMillis record component
    • entryPoint

      public UsageEvent.EntryPoint entryPoint()
      Returns the value of the entryPoint record component.
      Returns:
      the value of the entryPoint record component
    • result

      public UsageEvent.Result result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • providerName

      public String providerName()
      Returns the value of the providerName record component.
      Returns:
      the value of the providerName record component
    • model

      public String model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • durationMillis

      public long durationMillis()
      Returns the value of the durationMillis record component.
      Returns:
      the value of the durationMillis record component
    • inputLogLineCount

      public int inputLogLineCount()
      Returns the value of the inputLogLineCount record component.
      Returns:
      the value of the inputLogLineCount record component
    • downstreamLogsCollected

      public boolean downstreamLogsCollected()
      Returns the value of the downstreamLogsCollected record component.
      Returns:
      the value of the downstreamLogsCollected record component