mirror of
https://github.com/unraid/api.git
synced 2026-04-24 08:20:53 -05:00
feat(schema:info/memory): add basic types
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user