{
    "title": "event from monitoring",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.event.EventMonitoring",
    "type": "object",
    "required": [
        "level",
        "category",
        "source",
        "timestamp"
    ],
    "javaInterfaces": [
        "com.sos.joc.model.common.IEventObject"
    ],
    "properties": {
        "eventId": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        },
        "level": {
            "javaType": "com.sos.monitoring.notification.NotificationType",
            "type": "string",
            "enum": [
                "SUCCESS",
                "ERROR",
                "WARNING",
                "RECOVERED",
                "ACKNOWLEDGED"
            ]
        },
        "category": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 100
        },
        "source": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "request": {
            "type": "string"
        },
        "timestamp": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "message": {
            "type": "string"
        }
    },
    "additionalProperties": false
}