Record Class HealthCheck

java.lang.Object
java.lang.Record
io.vertigo.core.analytics.health.HealthCheck
Record Components:
name - Health check identifier
checker - Component that performed the check
module - Technical or functional module (e.g., commons, administration)
feature - Semantic grouping of related checks (e.g., database, billing)
checkInstant - Timestamp of check execution
healthMeasure - 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 Details

    • HealthCheck

      public HealthCheck(String name, String checker, String module, String feature, Instant checkInstant, HealthMeasure healthMeasure)
      Creates an instance of a HealthCheck record class.
      Parameters:
      name - the value for the name record component
      checker - the value for the checker record component
      module - the value for the module record component
      feature - the value for the feature record component
      checkInstant - the value for the checkInstant record component
      healthMeasure - the value for the healthMeasure record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • checker

      public String checker()
      Returns the value of the checker record component.
      Returns:
      the value of the checker record component
    • module

      public String module()
      Returns the value of the module record component.
      Returns:
      the value of the module record component
    • feature

      public String feature()
      Returns the value of the feature record component.
      Returns:
      the value of the feature record component
    • checkInstant

      public Instant checkInstant()
      Returns the value of the checkInstant record component.
      Returns:
      the value of the checkInstant record component
    • healthMeasure

      public HealthMeasure healthMeasure()
      Returns the value of the healthMeasure record component.
      Returns:
      the value of the healthMeasure record component