Add software and hardware statistics api
This commit is contained in:
11
src/main/kotlin/top/fatweb/api/vo/system/HardwareInfoVo.kt
Normal file
11
src/main/kotlin/top/fatweb/api/vo/system/HardwareInfoVo.kt
Normal file
@@ -0,0 +1,11 @@
|
||||
package top.fatweb.api.vo.system
|
||||
|
||||
data class HardwareInfoVo(
|
||||
val cpu: String,
|
||||
val arch: String,
|
||||
val is64Bit: Boolean,
|
||||
val cpuPhysicalPackageCount: Int,
|
||||
val cpuPhysicalProcessorCount: Int,
|
||||
val cpuLogicalProcessorCount: Int,
|
||||
val microarchitecture: String
|
||||
)
|
||||
20
src/main/kotlin/top/fatweb/api/vo/system/SoftwareInfoVo.kt
Normal file
20
src/main/kotlin/top/fatweb/api/vo/system/SoftwareInfoVo.kt
Normal file
@@ -0,0 +1,20 @@
|
||||
package top.fatweb.api.vo.system
|
||||
|
||||
import java.time.LocalDateTime
|
||||
|
||||
data class SoftwareInfoVo(
|
||||
val os: String,
|
||||
val bitness: Int,
|
||||
val javaVersion: String,
|
||||
val javaVersionDate: String,
|
||||
val javaVendor: String,
|
||||
val javaRuntime: String,
|
||||
val javaRuntimeVersion: String,
|
||||
val jvm: String,
|
||||
val jvmVersion: String,
|
||||
val jvmInfo: String,
|
||||
val jvmVendor: String,
|
||||
val javaClassVersion: String,
|
||||
val osBootTime: LocalDateTime,
|
||||
val serverStartupTime: LocalDateTime
|
||||
)
|
||||
Reference in New Issue
Block a user