Record Class ExecutionLogger.ExecutionSummary
java.lang.Object
java.lang.Record
ai.nervemind.app.service.ExecutionLogger.ExecutionSummary
- Record Components:
executionId- unique execution IDworkflowId- associated workflow IDworkflowName- associated workflow namestartTime- execution start timeendTime- execution end timedurationMs- total execution timesuccess- true if execution succeedednodeCount- number of nodes executederrorCount- number of error log entrieswarnCount- number of warning log entriestotalEntries- total number of log entries
- Enclosing class:
ExecutionLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedurationMsrecord component.endTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theerrorCountrecord component.Returns the value of theexecutionIdrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thenodeCountrecord component.Returns the value of thestartTimerecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalEntriesrecord component.intReturns the value of thewarnCountrecord component.Returns the value of theworkflowIdrecord component.Returns the value of theworkflowNamerecord component.
-
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 aExecutionSummaryrecord class.- Parameters:
executionId- the value for theexecutionIdrecord componentworkflowId- the value for theworkflowIdrecord componentworkflowName- the value for theworkflowNamerecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord componentdurationMs- the value for thedurationMsrecord componentsuccess- the value for thesuccessrecord componentnodeCount- the value for thenodeCountrecord componenterrorCount- the value for theerrorCountrecord componentwarnCount- the value for thewarnCountrecord componenttotalEntries- the value for thetotalEntriesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
workflowId
Returns the value of theworkflowIdrecord component.- Returns:
- the value of the
workflowIdrecord component
-
workflowName
Returns the value of theworkflowNamerecord component.- Returns:
- the value of the
workflowNamerecord component
-
startTime
-
endTime
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
success
-
nodeCount
-
errorCount
public int errorCount()Returns the value of theerrorCountrecord component.- Returns:
- the value of the
errorCountrecord component
-
warnCount
-
totalEntries
public int totalEntries()Returns the value of thetotalEntriesrecord component.- Returns:
- the value of the
totalEntriesrecord component
-