{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://api.ilert.com/schemas/Notification", "title": "Notification", "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "method": { "type": "string", "enum": [ "PUSH", "VOICE", "SMS", "EMAIL", "WHATSAPP" ] }, "target": { "type": "string" }, "subject": { "type": "string" }, "alertId": { "type": "integer", "format": "int64" }, "user": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "firstname": { "type": "string" }, "lastname": { "type": "string" } } }, "notificationTime": { "type": "string", "format": "date-time" }, "status": { "type": "string", "enum": [ "SCHEDULED", "SUCCESS", "ERROR" ] }, "errorMessage": { "type": "string", "description": "An error message in case the notification status is ERROR." } } }