Record Class DevProblem
java.lang.Object
java.lang.Record
io.fluxzero.devserver.DevProblem
public record DevProblem(String id, DevLogEvent.Level severity, String category, String source, String serviceType, String serviceId, String instanceId, String operationId, String summary, String detail, int occurrences, long firstSeenAt, long lastSeenAt, long lastEventSequence)
extends Record
A currently active problem associated with a service or a specific service instance.
-
Constructor Summary
ConstructorsConstructorDescriptionDevProblem(String id, DevLogEvent.Level severity, String category, String source, String serviceType, String serviceId, String instanceId, String operationId, String summary, String detail, int occurrences, long firstSeenAt, long lastSeenAt, long lastEventSequence) Creates an instance of aDevProblemrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefirstSeenAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinstanceIdrecord component.longReturns the value of thelastEventSequencerecord component.longReturns the value of thelastSeenAtrecord component.intReturns the value of theoccurrencesrecord component.Returns the value of theoperationIdrecord component.Returns the value of theserviceIdrecord component.Returns the value of theserviceTyperecord component.severity()Returns the value of theseverityrecord component.source()Returns the value of thesourcerecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DevProblem
public DevProblem(String id, DevLogEvent.Level severity, String category, String source, String serviceType, String serviceId, String instanceId, String operationId, String summary, String detail, int occurrences, long firstSeenAt, long lastSeenAt, long lastEventSequence) Creates an instance of aDevProblemrecord class.- Parameters:
id- the value for theidrecord componentseverity- the value for theseverityrecord componentcategory- the value for thecategoryrecord componentsource- the value for thesourcerecord componentserviceType- the value for theserviceTyperecord componentserviceId- the value for theserviceIdrecord componentinstanceId- the value for theinstanceIdrecord componentoperationId- the value for theoperationIdrecord componentsummary- the value for thesummaryrecord componentdetail- the value for thedetailrecord componentoccurrences- the value for theoccurrencesrecord componentfirstSeenAt- the value for thefirstSeenAtrecord componentlastSeenAt- the value for thelastSeenAtrecord componentlastEventSequence- the value for thelastEventSequencerecord 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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
serviceType
Returns the value of theserviceTyperecord component.- Returns:
- the value of the
serviceTyperecord component
-
serviceId
Returns the value of theserviceIdrecord component.- Returns:
- the value of the
serviceIdrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
occurrences
public int occurrences()Returns the value of theoccurrencesrecord component.- Returns:
- the value of the
occurrencesrecord component
-
firstSeenAt
public long firstSeenAt()Returns the value of thefirstSeenAtrecord component.- Returns:
- the value of the
firstSeenAtrecord component
-
lastSeenAt
public long lastSeenAt()Returns the value of thelastSeenAtrecord component.- Returns:
- the value of the
lastSeenAtrecord component
-
lastEventSequence
public long lastEventSequence()Returns the value of thelastEventSequencerecord component.- Returns:
- the value of the
lastEventSequencerecord component
-