{
    "title": "orders overview snapshot",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.OrdersSnapshot",
    "type": "object",
    "required": [
        "deliveryDate",
        "surveyDate"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "surveyDate": {
            "description": "Current date of the JobScheduler Master/Agent. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "orders": {
            "description": "only relevant for order jobs and is empty if job's order queue is empty",
            "javaType": "com.sos.joc.model.order.OrdersSummary",
            "type": "object",
            "properties": {
                "pending": {
                    "type": "integer",
                    "minimum": 0
                },
                "running": {
                    "type": "integer",
                    "minimum": 0
                },
                "suspended": {
                    "type": "integer",
                    "minimum": 0
                },
                "setback": {
                    "type": "integer",
                    "minimum": 0
                },
                "waitingForResource": {
                    "type": "integer",
                    "minimum": 0
                },
                "blacklist": {
                    "type": "integer",
                    "minimum": 0
                }
            }
        }
    }
}