Package io.vertigo.core.analytics.health
Record Class HealthCheck
java.lang.Object
java.lang.Record
io.vertigo.core.analytics.health.HealthCheck
- Record Components:
name- Health check identifierchecker- Component that performed the checkmodule- Technical or functional module (e.g., commons, administration)feature- Semantic grouping of related checks (e.g., database, billing)checkInstant- Timestamp of check executionhealthMeasure- Actual health measurement result
public record HealthCheck(String name, String checker, String module, String feature, Instant checkInstant, HealthMeasure healthMeasure)
extends Record
Represents a single health check measurement in the system.
Provides structured information about component health status.
Format: {plugin/component}.{test}
Example: dataStorePlugin.ping - Database connectivity check
- Author:
- mlaroche
-
Constructor Summary
ConstructorsConstructorDescriptionHealthCheck(String name, String checker, String module, String feature, Instant checkInstant, HealthMeasure healthMeasure) Creates an instance of aHealthCheckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchecker()Returns the value of thecheckerrecord component.Returns the value of thecheckInstantrecord component.final booleanIndicates whether some other object is "equal to" this one.feature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehealthMeasurerecord component.module()Returns the value of themodulerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HealthCheck
public HealthCheck(String name, String checker, String module, String feature, Instant checkInstant, HealthMeasure healthMeasure) Creates an instance of aHealthCheckrecord class.- Parameters:
name- the value for thenamerecord componentchecker- the value for thecheckerrecord componentmodule- the value for themodulerecord componentfeature- the value for thefeaturerecord componentcheckInstant- the value for thecheckInstantrecord componenthealthMeasure- the value for thehealthMeasurerecord component
-
-
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
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
-
checker
Returns the value of thecheckerrecord component.- Returns:
- the value of the
checkerrecord component
-
module
Returns the value of themodulerecord component.- Returns:
- the value of the
modulerecord component
-
feature
Returns the value of thefeaturerecord component.- Returns:
- the value of the
featurerecord component
-
checkInstant
Returns the value of thecheckInstantrecord component.- Returns:
- the value of the
checkInstantrecord component
-
healthMeasure
Returns the value of thehealthMeasurerecord component.- Returns:
- the value of the
healthMeasurerecord component
-