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 theaction
record component.cause()
Returns the value of thecause
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.helpURL()
Returns the value of thehelpURL
record component.id()
Returns the value of theid
record component.Returns the value of theindicatorName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Definition
Creates an instance of aDefinition
record class.- Parameters:
indicatorName
- the value for theindicatorName
record componentid
- the value for theid
record componentcause
- the value for thecause
record componentaction
- the value for theaction
record componenthelpURL
- the value for thehelpURL
record 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 theindicatorName
record component.- Returns:
- the value of the
indicatorName
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
cause
Returns the value of thecause
record component.- Returns:
- the value of the
cause
record component
-
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-
helpURL
Returns the value of thehelpURL
record component.- Returns:
- the value of the
helpURL
record component
-