Record Class NuggetIntrospection.DiskVolumeSummary
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIntrospection.DiskVolumeSummary
- Record Components:
rootId- safe root idrole- primary storage roleroles- deterministic set of storage roles for this physical rootpathSummary- redacted path summarytotalBytes- total bytes, or-1usableBytes- usable bytes, or-1availableBytes- available bytes, or-1usedBytes- used bytes, or-1percentUsed- percent used, or-1health- disk healthreadOnly- whether root is read-onlyavailability- availabilitycollectedAt- collection timestampsafeErrorCode- safe unavailable error codemetadata- 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 Summary
ConstructorsConstructorDescriptionDiskVolumeSummary(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) Creates immutable disk root metadata. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavailabilityrecord component.longReturns the value of theavailableBytesrecord component.Returns the value of thecollectedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.health()Returns the value of thehealthrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of thepathSummaryrecord component.doubleReturns the value of thepercentUsedrecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.role()Returns the value of therolerecord component.roles()Returns the value of therolesrecord component.rootId()Returns the value of therootIdrecord component.Returns the value of thesafeErrorCoderecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesrecord component.longReturns the value of theusableBytesrecord component.longReturns the value of theusedBytesrecord component.
-
Constructor Details
-
DiskVolumeSummary
public 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) Creates immutable disk root metadata.
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
rootId
-
role
-
roles
-
pathSummary
Returns the value of thepathSummaryrecord component.- Returns:
- the value of the
pathSummaryrecord component
-
totalBytes
public long totalBytes()Returns the value of thetotalBytesrecord component.- Returns:
- the value of the
totalBytesrecord component
-
usableBytes
public long usableBytes()Returns the value of theusableBytesrecord component.- Returns:
- the value of the
usableBytesrecord component
-
availableBytes
public long availableBytes()Returns the value of theavailableBytesrecord component.- Returns:
- the value of the
availableBytesrecord component
-
usedBytes
-
percentUsed
public double percentUsed()Returns the value of thepercentUsedrecord component.- Returns:
- the value of the
percentUsedrecord component
-
health
-
readOnly
-
availability
Returns the value of theavailabilityrecord component.- Returns:
- the value of the
availabilityrecord component
-
collectedAt
Returns the value of thecollectedAtrecord component.- Returns:
- the value of the
collectedAtrecord component
-
safeErrorCode
Returns the value of thesafeErrorCoderecord component.- Returns:
- the value of the
safeErrorCoderecord component
-
metadata
-