java.lang.Object
java.lang.Record
org.elasticsearch.health.HealthIndicatorResult
- All Implemented Interfaces:
ChunkedToXContent,ChunkedToXContentObject
public record HealthIndicatorResult(String name, HealthStatus status, String symptom, HealthIndicatorDetails details, List<HealthIndicatorImpact> impacts, List<Diagnosis> diagnosisList)
extends Record
implements ChunkedToXContentObject
-
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionHealthIndicatorResult(String name, HealthStatus status, String symptom, HealthIndicatorDetails details, List<HealthIndicatorImpact> impacts, List<Diagnosis> diagnosisList) Creates an instance of aHealthIndicatorResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondetails()Returns the value of thedetailsrecord component.Returns the value of thediagnosisListrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.impacts()Returns the value of theimpactsrecord component.name()Returns the value of thenamerecord component.status()Returns the value of thestatusrecord component.symptom()Returns the value of thesymptomrecord component.final StringtoString()Returns a string representation of this record class.Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params outerParams) Create an iterator ofToXContentchunks for a REST response.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContentObject
isFragment
-
Constructor Details
-
HealthIndicatorResult
public HealthIndicatorResult(String name, HealthStatus status, String symptom, HealthIndicatorDetails details, List<HealthIndicatorImpact> impacts, List<Diagnosis> diagnosisList) Creates an instance of aHealthIndicatorResultrecord class.- Parameters:
name- the value for thenamerecord componentstatus- the value for thestatusrecord componentsymptom- the value for thesymptomrecord componentdetails- the value for thedetailsrecord componentimpacts- the value for theimpactsrecord componentdiagnosisList- the value for thediagnosisListrecord component
-
-
Method Details
-
toXContentChunked
Description copied from interface:ChunkedToXContentCreate an iterator ofToXContentchunks for a REST response. Each chunk is serialized with the sameXContentBuilderandToXContent.Params, which is also the same as theToXContent.Paramspassed as theparamsargument. For best results, all chunks should beO(1)size. The last chunk in the iterator must always yield at least one byte of output. See alsoChunkedToXContentHelperfor some handy utilities.Note that chunked response bodies cannot send deprecation warning headers once transmission has started, so implementations must check for deprecated feature use before returning.
- Specified by:
toXContentChunkedin interfaceChunkedToXContent- Returns:
- iterator over chunks of
ToXContent
-
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
public final int 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
symptom
Returns the value of thesymptomrecord component.- Returns:
- the value of the
symptomrecord component
-
details
Returns the value of thedetailsrecord component.- Returns:
- the value of the
detailsrecord component
-
impacts
Returns the value of theimpactsrecord component.- Returns:
- the value of the
impactsrecord component
-
diagnosisList
Returns the value of thediagnosisListrecord component.- Returns:
- the value of the
diagnosisListrecord component
-