java.lang.Object
java.lang.Record
org.elasticsearch.health.Diagnosis.Definition
- Record Components:
indicatorName- The name of the health indicator service that will generate this diagnosisid- An identifier unique to this diagnosis across the health indicator that generates itcause- A description of the cause of the problemaction- A description of the action to be taken to remedy the problemhelpURL- Optional evergreen url to a help document
- Enclosing class:
Diagnosis
public static record Diagnosis.Definition(String indicatorName, String id, String cause, String action, String helpURL)
extends Record
Details a diagnosis - cause and a potential action that a user could take to clear an issue identified by a
HealthService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.cause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.helpURL()Returns the value of thehelpURLrecord component.id()Returns the value of theidrecord component.Returns the value of theindicatorNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Definition
Creates an instance of aDefinitionrecord class.- Parameters:
indicatorName- the value for theindicatorNamerecord componentid- the value for theidrecord componentcause- the value for thecauserecord componentaction- the value for theactionrecord componenthelpURL- the value for thehelpURLrecord component
-
-
Method Details
-
getUniqueId
-
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). -
indicatorName
Returns the value of theindicatorNamerecord component.- Returns:
- the value of the
indicatorNamerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
helpURL
Returns the value of thehelpURLrecord component.- Returns:
- the value of the
helpURLrecord component
-