summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornasr <nsrddyn@gmail.com>2025-12-01 00:17:20 +0100
committernasr <nsrddyn@gmail.com>2025-12-01 00:17:20 +0100
commita9b5026b5a1fc3f042d82ed25c6769ebef15efc2 (patch)
treee0319eedb3c185e9c1eb5d29a1efa06f7d732e58 /src
parent3da4bb782e17665ae476b4ed6e52f75952ef292a (diff)
feature: DTO for API endpoints
Diffstat (limited to 'src')
-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)
+