Record Class DevDiagnostics
java.lang.Object
java.lang.Record
io.fluxzero.devserver.DevDiagnostics
public record DevDiagnostics(String sessionId, int activeCount, int errors, int warnings, List<DevProblem> problems, long lastEventSequence, long updatedAt)
extends Record
Snapshot of problems that are still active in a Fluxzero dev environment.
-
Constructor Summary
ConstructorsConstructorDescriptionDevDiagnostics(String sessionId, int activeCount, int errors, int warnings, List<DevProblem> problems, long lastEventSequence, long updatedAt) Creates an instance of aDevDiagnosticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveCountrecord component.final booleanIndicates whether some other object is "equal to" this one.interrors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastEventSequencerecord component.problems()Returns the value of theproblemsrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theupdatedAtrecord component.intwarnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
DevDiagnostics
public DevDiagnostics(String sessionId, int activeCount, int errors, int warnings, List<DevProblem> problems, long lastEventSequence, long updatedAt) Creates an instance of aDevDiagnosticsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentactiveCount- the value for theactiveCountrecord componenterrors- the value for theerrorsrecord componentwarnings- the value for thewarningsrecord componentproblems- the value for theproblemsrecord componentlastEventSequence- the value for thelastEventSequencerecord componentupdatedAt- the value for theupdatedAtrecord 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. -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
activeCount
public int activeCount()Returns the value of theactiveCountrecord component.- Returns:
- the value of the
activeCountrecord component
-
errors
public int errors()Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-
warnings
public int warnings()Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-
problems
Returns the value of theproblemsrecord component.- Returns:
- the value of the
problemsrecord component
-
lastEventSequence
public long lastEventSequence()Returns the value of thelastEventSequencerecord component.- Returns:
- the value of the
lastEventSequencerecord component
-
updatedAt
public long updatedAt()Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-