Merge pull request #81 from bluewave-labs/server/updateAlertModel

Updated the Alert model, ReadMe file
This commit is contained in:
Veysel authored and GitHub committed 2024-05-28 14:44:19 -04:00
commit 56c577456b
2 files changed
+13 -1

No files matched your search

+3 -1
View File
@@ -145,7 +145,9 @@ Example:
| Name | Type | Notes |
| ----------------- | --------- | ------------------------------------------------- |
| checkId | `string` | Unique ID for the check |
| checkId | `string` | Unique ID for the associated check |
| monitorId | `string` | Unique ID for the associated monitor |
| userId | `string` | Unique ID for the associated user |
| status | `boolean` | Indicates the service is Up or Down |
| message | `string` | Message for the user about the down service |
| notifiedStatus | `boolean` | Indicates whether the user is notified |
+10
View File
@@ -7,6 +7,16 @@ const AlertSchema = mongoose.Schema(
ref: 'Check',
immutable: true,
},
monitorId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Monitor',
immutable: true,
},
userId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
immutable: true,
},
status: {
type: Boolean,
},