Record Class NuggetIntrospection.RecentErrorEntry
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIntrospection.RecentErrorEntry
- Record Components:
timestamp- error timestampcorrelationId- correlation idcomponent- component idresourceSummary- safe resource summaryerrorCode- safe error codesafeMessage- redacted safe messageretryable- whether retry is saferemoteRuntimeId- safe remote runtime idrecurrenceCount- recurrence countmetadata- redacted metadata
- Enclosing class:
NuggetIntrospection
public static record NuggetIntrospection.RecentErrorEntry(Instant timestamp, String correlationId, String component, String resourceSummary, MiddlewareErrorCode errorCode, String safeMessage, boolean retryable, String remoteRuntimeId, long recurrenceCount, Map<String,String> metadata)
extends Record
Safe recent error entry.
-
Constructor Summary
ConstructorsConstructorDescriptionRecentErrorEntry(Instant timestamp, String correlationId, String component, String resourceSummary, MiddlewareErrorCode errorCode, String safeMessage, boolean retryable, String remoteRuntimeId, long recurrenceCount, Map<String, String> metadata) Creates immutable recent-error metadata. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentrecord component.Returns the value of thecorrelationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.longReturns the value of therecurrenceCountrecord component.Returns the value of theremoteRuntimeIdrecord component.Returns the value of theresourceSummaryrecord component.booleanReturns the value of theretryablerecord component.Returns the value of thesafeMessagerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecentErrorEntry
-
-
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. -
timestamp
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
component
-
resourceSummary
Returns the value of theresourceSummaryrecord component.- Returns:
- the value of the
resourceSummaryrecord component
-
errorCode
-
safeMessage
Returns the value of thesafeMessagerecord component.- Returns:
- the value of the
safeMessagerecord component
-
retryable
-
remoteRuntimeId
Returns the value of theremoteRuntimeIdrecord component.- Returns:
- the value of the
remoteRuntimeIdrecord component
-
recurrenceCount
public long recurrenceCount()Returns the value of therecurrenceCountrecord component.- Returns:
- the value of the
recurrenceCountrecord component
-
metadata
-