Record Class NuggetIntrospection.ComponentSummary
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIntrospection.ComponentSummary
- Record Components:
component- stable component idavailability- component availabilityhealth- health statereadiness- readiness staterequired- whether component is required for this nuggetsafeReason- safe status reasonmetadata- redacted metadata
- Enclosing class:
NuggetIntrospection
public static record NuggetIntrospection.ComponentSummary(String component, NuggetIntrospection.Availability availability, NuggetIntrospection.HealthState health, NuggetIntrospection.ReadinessState readiness, boolean required, String safeReason, Map<String,String> metadata)
extends Record
Component status summary.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentSummary(String component, NuggetIntrospection.Availability availability, NuggetIntrospection.HealthState health, NuggetIntrospection.ReadinessState readiness, boolean required, String safeReason, Map<String, String> metadata) Creates immutable component metadata. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavailabilityrecord component.Returns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.health()Returns the value of thehealthrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of thereadinessrecord component.booleanrequired()Returns the value of therequiredrecord component.Returns the value of thesafeReasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComponentSummary
public ComponentSummary(String component, NuggetIntrospection.Availability availability, NuggetIntrospection.HealthState health, NuggetIntrospection.ReadinessState readiness, boolean required, String safeReason, Map<String, String> metadata) Creates immutable component metadata.
-
-
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. -
component
-
availability
Returns the value of theavailabilityrecord component.- Returns:
- the value of the
availabilityrecord component
-
health
-
readiness
-
required
-
safeReason
Returns the value of thesafeReasonrecord component.- Returns:
- the value of the
safeReasonrecord component
-
metadata
-