feat(schema:info/memory): add basic types

This commit is contained in:
Alexis Tyler
2019-10-14 14:25:03 +10:30
parent a529f75c18
commit 4d91b8be62
+37 -3
View File
@@ -1,7 +1,41 @@
type Info {
memory: JSON @func(module: "info/get-memory")
memory: InfoMemory @func(module: "info/get-memory")
}
# type InfoMemory {
type InfoMemory {
max: Long!
total: Long!
free: Long!
used: Long!
active: Long!
available: Long!
buffcache: Long!
swaptotal: Long!
swapused: Long!
swapfree: Long!
layout: [MemoryLayout!]
}
# }
type MemoryLayout {
size: Long!
bank: String
type: MemoryType
clockSpeed: Long
formFactor: MemoryFormFactor
manufacturer: String
partNum: String
serialNum: String
voltageConfigured: Long
voltageMin: Long
voltageMax: Long
}
enum MemoryType {
DDR2
DDR3
DDR4
}
enum MemoryFormFactor {
DIMM
}