Module io.jstach.rainbowgum
Package io.jstach.rainbowgum
Record Class LogResponse.Status.AggregateStatus
java.lang.Object
java.lang.Record
io.jstach.rainbowgum.LogResponse.Status.AggregateStatus
- Record Components:
status- a list of statuses.level- severity.
- All Implemented Interfaces:
LogResponse.Status
- Enclosing interface:
LogResponse.Status
public static record LogResponse.Status.AggregateStatus(List<LogResponse.Status> status, System.Logger.Level level)
extends Record
implements LogResponse.Status
A Status of Statuses. The severity is the status with the highest severity if
severity is not provided.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jstach.rainbowgum.LogResponse.Status
LogResponse.Status.AggregateStatus, LogResponse.Status.ErrorStatus, LogResponse.Status.MetricStatus, LogResponse.Status.QueueStatus, LogResponse.Status.StandardStatus -
Constructor Summary
ConstructorsConstructorDescriptionAggregateStatus(List<LogResponse.Status> status) A Status of Statuses.AggregateStatus(List<LogResponse.Status> status, System.Logger.Level level) A Status of Statuses. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AggregateStatus
A Status of Statuses.- Parameters:
status- a list of statuses.level- severity.
-
AggregateStatus
A Status of Statuses. The severity is the status with the highest severity.- Parameters:
status- a list of statuses.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
level
Returns the value of thelevelrecord component.- Specified by:
levelin interfaceLogResponse.Status- Returns:
- the value of the
levelrecord component
-