summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/scala/main/domain/ResourceModels.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/scala/main/domain/ResourceModels.scala b/src/main/scala/main/domain/ResourceModels.scala
new file mode 100644
index 0000000..d473fd6
--- /dev/null
+++ b/src/main/scala/main/domain/ResourceModels.scala
@@ -0,0 +1,19 @@
+package main.domain
+
+/**
+ *
+ * Using case classes for immutable resource data
+ * These will store the averages for everything we've gathered
+ * and will be used for the API endpoints
+ * */
+
+enum Status:
+ case PASS
+ case FAIL
+
+case class CpuInfo(load: Double, temperature: Double, cores: Int, physicalCores: Int, status: Status)
+
+case class RamInfo(usage: Double, total: Double, status: Status)
+
+case class PlatformInfo(currentPlatform: String)
+