public class HardwareMetric extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static HardwareMetric |
fromSystem()
Runs
fromSystem(SystemInfo)
with a fresh SystemInfo |
static HardwareMetric |
fromSystem(oshi.json.SystemInfo systemInfo)
Returns the relevant information
needed for system diagnostics
based on the
SystemInfo |
static HardwareMetric |
fromSystem(oshi.json.SystemInfo systemInfo,
String name)
Returns the relevant information
needed for system diagnostics
based on the
SystemInfo |
static HardwareMetric |
fromYaml(@NonNull String yaml) |
String |
toYaml() |
public static HardwareMetric fromSystem()
fromSystem(SystemInfo)
with a fresh SystemInfopublic static HardwareMetric fromSystem(oshi.json.SystemInfo systemInfo)
SystemInfosystemInfo - the system info to useHardwareMetric for the
system this process runs onpublic static HardwareMetric fromSystem(oshi.json.SystemInfo systemInfo, String name)
SystemInfosystemInfo - the system info to useHardwareMetric for the
system this process runs onpublic String toYaml()
public static HardwareMetric fromYaml(@NonNull @NonNull String yaml)
Copyright © 2020. All rights reserved.