From 104cb4e91e22879d31643e4f6901f0d1e9ad111b Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Mon, 7 Oct 2019 17:21:18 +1030 Subject: [PATCH] Add cpu and memory info. --- app/graphql/schema/types/info/cpu.graphql | 39 ++++++++++++++++++++ app/graphql/schema/types/info/memory.graphql | 7 ++++ 2 files changed, 46 insertions(+) create mode 100644 app/graphql/schema/types/info/cpu.graphql create mode 100644 app/graphql/schema/types/info/memory.graphql diff --git a/app/graphql/schema/types/info/cpu.graphql b/app/graphql/schema/types/info/cpu.graphql new file mode 100644 index 000000000..c0940738a --- /dev/null +++ b/app/graphql/schema/types/info/cpu.graphql @@ -0,0 +1,39 @@ +type Info { + cpu: InfoCpu @func(module: "info/get-cpu") +} + +type InfoCpu { + # 'Intel®' + manufacturer: String! + # 'Xeon® L5640' + brand: String! + # 'GenuineIntel' + vendor: String! + # '6' + family: String! + # '44' + model: String! + # '2' + stepping: Int! + # '' + revision: String! + # '' + voltage: Float + # '2.27' + speed: Float! + # '1.60' + speedmin: Float! + # '2.26' + speedmax: Float! + # 12 + threads: Int! + # 6 + cores: Int! + # 1 + processors: Long! + # 'LGA1366' + socket: String! + # { l1d: 196608, l1i: 196608, l2: 1, l3: 12 } + cache: JSON! + flags: [String!] +} \ No newline at end of file diff --git a/app/graphql/schema/types/info/memory.graphql b/app/graphql/schema/types/info/memory.graphql new file mode 100644 index 000000000..5ffc70e18 --- /dev/null +++ b/app/graphql/schema/types/info/memory.graphql @@ -0,0 +1,7 @@ +type Info { + memory: JSON @func(module: "info/get-memory") +} + +# type InfoMemory { + +# } \ No newline at end of file