Java API
record

HostSnapshot

me.tamkungz.hostlens.HostSnapshot

Version
1.0.1
Java
21
Source file
me/tamkungz/hostlens/HostSnapshot.java
Repository
View source ↗
public record HostSnapshot( Instant capturedAt, RuntimeInfo runtime, OperatingSystemInfo operatingSystem, CpuInfo cpu, MemoryInfo memory, List<GpuInfo> gpus, List<DiskInfo> disks, List<NetworkInterfaceInfo> networks, Map<String, String> properties, List<HostLensError> errors )

Components 10

capturedAt

Instant capturedAt

runtime

RuntimeInfo runtime

operatingSystem

OperatingSystemInfo operatingSystem

cpu

CpuInfo cpu

memory

MemoryInfo memory

gpus

List<GpuInfo> gpus

disks

List<DiskInfo> disks

networks

List<NetworkInterfaceInfo> networks

properties

Map<String, String> properties

errors

List<HostLensError> errors

Methods 4

builder

public static Builder builder()

hasErrors

public boolean hasErrors()

toPrettyString

public String toPrettyString()

toJson

public String toJson()