{
    "title": "event snapshot",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.event.EventSnapshot",
    "type": "object",
    "required": [
        "eventType",
        "objectType"
    ],
    "properties": {
        "path": {
            "description": "absolute path of an object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
            "maxLength": 255,
            "minLength": 1
        },
        "eventId": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        },
        "eventType": {
            "description": "e.g. JOCStateChanged, ControllerStateChanged, WorkflowStateChanged, JobStateChanged, InventoryUpdated",
            "type": "string"
        },
        "objectType": {
            "javaType": "com.sos.joc.model.event.EventType",
            "type": "string",
            "enum": [
                "JOCCLUSTER",
                "CONTROLLER",
                "CONTROLLERCLUSTER",
                "AGENT",
                "PROBLEM",
                "FOLDER",
                "WORKFLOW",
                "ORDER",
                "LOCK",
                "JOB",
                "FILEORDERSOURCE",
                "NOTICEBOARD",
                "JOBCLASS",
                "JOBRESOURCE",
                "SCHEDULE",
                "INCLUDESCRIPT",
                "CALENDAR",
                "DAILYPLAN",
                "ORDERHISTORY",
                "TASKHISTORY",
                "FILETRANSFER",
                "MONITORINGNOTIFICATION",
                "MONITORINGCONTROLLER",
                "MONITORINGAGENT",
                "AUDITLOG"
            ]
        },
        "workflow": {
            "javaType": "com.sos.controller.model.workflow.WorkflowId",
            "type": "object",
            "required": [
                "path"
            ],
            "properties": {
                "path": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "versionId": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            },
            "additionalProperties": false
        },
        "accessToken": {
            "type": "string",
            "pattern": "^[1-9a-fA-F_]{32}$",
            "maxLength": 32,
            "minLength": 32
        },
        "message": {
            "type": "string"
        }
    }
}