Record Class OperationalResilienceEvidence

java.lang.Object
java.lang.Record
org.j7m.middleware.evidence.OperationalResilienceEvidence
Record Components:
rto - configured recovery time objective
rpo - configured recovery point objective
haStatus - HA/HP status text
discoveryStatus - discovery status text
backupRestoreHookStatus - backup/restore hook status
failoverDrillResult - failover drill result
overloadControls - overload control status
dependencyHealth - dependency health text
recoveryProcedureReference - recovery procedure reference
lastResilienceTest - last resilience test timestamp
attributes - additional safe attributes

public record OperationalResilienceEvidence(Duration rto, Duration rpo, String haStatus, String discoveryStatus, String backupRestoreHookStatus, String failoverDrillResult, String overloadControls, String dependencyHealth, String recoveryProcedureReference, Instant lastResilienceTest, Map<String,String> attributes) extends Record
Operational resilience evidence metadata.
  • Constructor Details

  • 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.
    • rto

      public Duration rto()
      Returns the value of the rto record component.
      Returns:
      the value of the rto record component
    • rpo

      public Duration rpo()
      Returns the value of the rpo record component.
      Returns:
      the value of the rpo record component
    • haStatus

      public String haStatus()
      Returns the value of the haStatus record component.
      Returns:
      the value of the haStatus record component
    • discoveryStatus

      public String discoveryStatus()
      Returns the value of the discoveryStatus record component.
      Returns:
      the value of the discoveryStatus record component
    • backupRestoreHookStatus

      public String backupRestoreHookStatus()
      Returns the value of the backupRestoreHookStatus record component.
      Returns:
      the value of the backupRestoreHookStatus record component
    • failoverDrillResult

      public String failoverDrillResult()
      Returns the value of the failoverDrillResult record component.
      Returns:
      the value of the failoverDrillResult record component
    • overloadControls

      public String overloadControls()
      Returns the value of the overloadControls record component.
      Returns:
      the value of the overloadControls record component
    • dependencyHealth

      public String dependencyHealth()
      Returns the value of the dependencyHealth record component.
      Returns:
      the value of the dependencyHealth record component
    • recoveryProcedureReference

      public String recoveryProcedureReference()
      Returns the value of the recoveryProcedureReference record component.
      Returns:
      the value of the recoveryProcedureReference record component
    • lastResilienceTest

      public Instant lastResilienceTest()
      Returns the value of the lastResilienceTest record component.
      Returns:
      the value of the lastResilienceTest record component
    • attributes

      public Map<String,String> attributes()
      Returns the value of the attributes record component.
      Returns:
      the value of the attributes record component