Record Class ExecutionLogger.ExecutionSummary

java.lang.Object
java.lang.Record
ai.nervemind.app.service.ExecutionLogger.ExecutionSummary
Record Components:
executionId - unique execution ID
workflowId - associated workflow ID
workflowName - associated workflow name
startTime - execution start time
endTime - execution end time
durationMs - total execution time
success - true if execution succeeded
nodeCount - number of nodes executed
errorCount - number of error log entries
warnCount - number of warning log entries
totalEntries - total number of log entries
Enclosing class:
ExecutionLogger

public static record ExecutionLogger.ExecutionSummary(String executionId, String workflowId, String workflowName, Instant startTime, Instant endTime, long durationMs, boolean success, int nodeCount, int errorCount, int warnCount, int totalEntries) extends Record
Execution summary record.
  • Constructor Details

    • ExecutionSummary

      public ExecutionSummary(String executionId, String workflowId, String workflowName, Instant startTime, Instant endTime, long durationMs, boolean success, int nodeCount, int errorCount, int warnCount, int totalEntries)
      Creates an instance of a ExecutionSummary record class.
      Parameters:
      executionId - the value for the executionId record component
      workflowId - the value for the workflowId record component
      workflowName - the value for the workflowName record component
      startTime - the value for the startTime record component
      endTime - the value for the endTime record component
      durationMs - the value for the durationMs record component
      success - the value for the success record component
      nodeCount - the value for the nodeCount record component
      errorCount - the value for the errorCount record component
      warnCount - the value for the warnCount record component
      totalEntries - the value for the totalEntries 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.
    • executionId

      public String executionId()
      Returns the value of the executionId record component.
      Returns:
      the value of the executionId record component
    • workflowId

      public String workflowId()
      Returns the value of the workflowId record component.
      Returns:
      the value of the workflowId record component
    • workflowName

      public String workflowName()
      Returns the value of the workflowName record component.
      Returns:
      the value of the workflowName record component
    • startTime

      public Instant startTime()
      Returns the value of the startTime record component.
      Returns:
      the value of the startTime record component
    • endTime

      public Instant endTime()
      Returns the value of the endTime record component.
      Returns:
      the value of the endTime record component
    • durationMs

      public long durationMs()
      Returns the value of the durationMs record component.
      Returns:
      the value of the durationMs record component
    • success

      public boolean success()
      Returns the value of the success record component.
      Returns:
      the value of the success record component
    • nodeCount

      public int nodeCount()
      Returns the value of the nodeCount record component.
      Returns:
      the value of the nodeCount record component
    • errorCount

      public int errorCount()
      Returns the value of the errorCount record component.
      Returns:
      the value of the errorCount record component
    • warnCount

      public int warnCount()
      Returns the value of the warnCount record component.
      Returns:
      the value of the warnCount record component
    • totalEntries

      public int totalEntries()
      Returns the value of the totalEntries record component.
      Returns:
      the value of the totalEntries record component