diff options
| author | nasr <nsrddyn@gmail.com> | 2025-12-01 00:17:20 +0100 |
|---|---|---|
| committer | nasr <nsrddyn@gmail.com> | 2025-12-01 00:17:20 +0100 |
| commit | a9b5026b5a1fc3f042d82ed25c6769ebef15efc2 (patch) | |
| tree | e0319eedb3c185e9c1eb5d29a1efa06f7d732e58 | |
| parent | 3da4bb782e17665ae476b4ed6e52f75952ef292a (diff) | |
feature: DTO for API endpoints
| -rw-r--r-- | src/main/scala/main/domain/ResourceModels.scala | 19 |
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) + |
