Record Class NuggetIntrospection.DiskVolumeSummary

java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIntrospection.DiskVolumeSummary
Record Components:
rootId - safe root id
role - primary storage role
roles - deterministic set of storage roles for this physical root
pathSummary - redacted path summary
totalBytes - total bytes, or -1
usableBytes - usable bytes, or -1
availableBytes - available bytes, or -1
usedBytes - used bytes, or -1
percentUsed - percent used, or -1
health - disk health
readOnly - whether root is read-only
availability - availability
collectedAt - collection timestamp
safeErrorCode - safe unavailable error code
metadata - redacted metadata
Enclosing class:
NuggetIntrospection

public static record NuggetIntrospection.DiskVolumeSummary(String rootId, String role, List<String> roles, String pathSummary, long totalBytes, long usableBytes, long availableBytes, long usedBytes, double percentUsed, NuggetIntrospection.DiskHealth health, boolean readOnly, NuggetIntrospection.Availability availability, Instant collectedAt, String safeErrorCode, Map<String,String> metadata) extends Record
Disk/storage root summary.
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • rootId

      public String rootId()
      Returns the value of the rootId record component.
      Returns:
      the value of the rootId record component
    • role

      public String role()
      Returns the value of the role record component.
      Returns:
      the value of the role record component
    • roles

      public List<String> roles()
      Returns the value of the roles record component.
      Returns:
      the value of the roles record component
    • pathSummary

      public String pathSummary()
      Returns the value of the pathSummary record component.
      Returns:
      the value of the pathSummary record component
    • totalBytes

      public long totalBytes()
      Returns the value of the totalBytes record component.
      Returns:
      the value of the totalBytes record component
    • usableBytes

      public long usableBytes()
      Returns the value of the usableBytes record component.
      Returns:
      the value of the usableBytes record component
    • availableBytes

      public long availableBytes()
      Returns the value of the availableBytes record component.
      Returns:
      the value of the availableBytes record component
    • usedBytes

      public long usedBytes()
      Returns the value of the usedBytes record component.
      Returns:
      the value of the usedBytes record component
    • percentUsed

      public double percentUsed()
      Returns the value of the percentUsed record component.
      Returns:
      the value of the percentUsed record component
    • health

      Returns the value of the health record component.
      Returns:
      the value of the health record component
    • readOnly

      public boolean readOnly()
      Returns the value of the readOnly record component.
      Returns:
      the value of the readOnly record component
    • availability

      public NuggetIntrospection.Availability availability()
      Returns the value of the availability record component.
      Returns:
      the value of the availability record component
    • collectedAt

      public Instant collectedAt()
      Returns the value of the collectedAt record component.
      Returns:
      the value of the collectedAt record component
    • safeErrorCode

      public String safeErrorCode()
      Returns the value of the safeErrorCode record component.
      Returns:
      the value of the safeErrorCode record component
    • metadata

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