Record Class LastErrorTracker.LastError
java.lang.Object
java.lang.Record
ai.pipestream.module.pipelineprobe.LastErrorTracker.LastError
- Record Components:
timestamp- the instant the error was recordedendpoint- the endpoint or location where the error occurredmethod- the HTTP method or label associated with the errorexceptionClass- the fully qualified class name of the throwablemessage- the throwable's messagestackTrace- the rendered stack trace, including causes
- Enclosing class:
LastErrorTracker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionClassrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.method()Returns the value of themethodrecord component.Returns the value of thestackTracerecord component.Returns the value of thetimestamprecord component.toMap()Renders this snapshot as a map with string values, substituting empty strings for any null fields, suitable for JSON serialization.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LastError
public LastError(Instant timestamp, String endpoint, String method, String exceptionClass, String message, String stackTrace) Creates an instance of aLastErrorrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentendpoint- the value for theendpointrecord componentmethod- the value for themethodrecord componentexceptionClass- the value for theexceptionClassrecord componentmessage- the value for themessagerecord componentstackTrace- the value for thestackTracerecord component
-
-
Method Details
-
toMap
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
timestamp
-
endpoint
-
method
-
exceptionClass
Returns the value of theexceptionClassrecord component.- Returns:
- the value of the
exceptionClassrecord component
-
message
-
stackTrace
Returns the value of thestackTracerecord component.- Returns:
- the value of the
stackTracerecord component
-