Merge pull request #81 from bluewave-labs/server/updateAlertModel
Updated the Alert model, ReadMe file
This commit is contained in:
2 files changed
+13
-1
No files matched your search
@@ -145,7 +145,9 @@ Example:
|
|||||||
|
|
||||||
| Name | Type | Notes |
|
| 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 |
|
| status | `boolean` | Indicates the service is Up or Down |
|
||||||
| message | `string` | Message for the user about the down service |
|
| message | `string` | Message for the user about the down service |
|
||||||
| notifiedStatus | `boolean` | Indicates whether the user is notified |
|
| notifiedStatus | `boolean` | Indicates whether the user is notified |
|
||||||
|
|||||||
@@ -7,6 +7,16 @@ const AlertSchema = mongoose.Schema(
|
|||||||
ref: 'Check',
|
ref: 'Check',
|
||||||
immutable: true,
|
immutable: true,
|
||||||
},
|
},
|
||||||
|
monitorId: {
|
||||||
|
type: mongoose.Schema.Types.ObjectId,
|
||||||
|
ref: 'Monitor',
|
||||||
|
immutable: true,
|
||||||
|
},
|
||||||
|
userId: {
|
||||||
|
type: mongoose.Schema.Types.ObjectId,
|
||||||
|
ref: 'User',
|
||||||
|
immutable: true,
|
||||||
|
},
|
||||||
status: {
|
status: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user