{
    "title": "Events",
    "id": "schemas/event/customEvents",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.event.custom.Events",
    "type": "object",
    "required": [
        "deliveryDate",
        "events"
    ],
    "properties": {
        "deliveryDate": {
            "id": "schemas/common/deliveryDate",
            "description": "Current date of the JOC server/REST service. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "events": {
            "type": "array",
            "items": {
                "id": "schemas/event/customEvent",
                "javaType": "com.sos.joc.model.event.custom.Event",
                "type": "object",
                "required": [
                    "jobschedulerId"
                ],
                "properties": {
                    "jobschedulerId": {
                        "type": "string"
                    },
                    "id": {
                        "id": "schemas/common/nonNegativeLong",
                        "type": "string",
                        "format": "utc-millisec"
                    },
                    "eventId": {
                        "type": "string"
                    },
                    "eventClass": {
                        "type": "string"
                    },
                    "exitCode": {
                        "id": "schemas/common/nonNegativeInteger",
                        "type": "integer",
                        "minimum": 0
                    },
                    "job": {
                        "id": "schemas/common/path",
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "/([^/]+/)*[^/]+"
                    },
                    "jobChain": {
                        "id": "schemas/common/path",
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "/([^/]+/)*[^/]+"
                    },
                    "orderId": {
                        "type": "string"
                    },
                    "created": {
                        "id": "schemas/common/timestamp",
                        "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                        "type": "string",
                        "format": "date-time"
                    },
                    "expires": {
                        "id": "schemas/common/timestamp",
                        "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                        "type": "string",
                        "format": "date-time"
                    },
                    "remoteJobSchedulerHost": {
                        "type": "string"
                    },
                    "remoteJobSchedulerPort": {
                        "id": "schemas/common/port",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 65535
                    },
                    "params": {
                        "id": "schemas/common/nameValuePairs",
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.joc.model.common.NameValuePair",
                            "type": "object",
                            "required": [
                                "name",
                                "value"
                            ],
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "value": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}