Merge pull request #1137 from bluewave-labs/feat/be/hardware-monitor-update

feat/be/hardware monitor update
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-11-11 15:17:34 -08:00
commit 642e6b6170
2 files changed
+18 -4

No files matched your search

+9
View File
@@ -30,6 +30,11 @@ const hostSchema = mongoose.Schema({
kernel_version: { type: String, default: "" },
});
const errorSchema = mongoose.Schema({
metric: { type: [String], default: [] },
err: { type: String, default: "" },
});
const HardwareCheckSchema = mongoose.Schema(
{
...BaseCheckSchema.obj,
@@ -49,6 +54,10 @@ const HardwareCheckSchema = mongoose.Schema(
type: hostSchema,
default: () => ({}),
},
errors: {
type: [errorSchema],
default: () => [],
},
},
{ timestamps: true }
);