Alert model#
Example#
{
"alert": {
"id": 3,
"type": "Fire alert",
"message": "Hi",
"location": "Parking",
"report_status": "safe",
"reported_at": "2021-05-15T12:05:15.639Z",
"created_at": "2021-05-15T11:41:02.543Z",
"updated_at": "2021-05-15T11:41:04.049Z",
"last_seen_at": "2021-05-15T13:00:27.966Z"
}
}
Definition#
Key | Type | Optional | Description |
---|
id | integer | no | |
type | string | no | One of available alert types names |
message | string | no | Content of message sent to recipients |
location | string | yes | |
report_status | enum: ['safe', 'need_help'] | yes | Status reported by member |
reported_at | datetime | yes | Time of report |
created_at | datetime | no | Time of creation |
updated_at | datetime | no | Time of last update |
last_seen_at | datetime | yes | Last time when the recipient retrieved the Alert record |
Modified at 2024-04-22 22:18:16