{
    "title": "agents",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.report.Agents",
    "type": "object",
    "required": [
        "deliveryDate",
        "agents"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Date time. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "agents": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.report.Agent",
                "type": "object",
                "required": [
                    "agent",
                    "cause",
                    "numOfSuccessfulTasks",
                    "numOfJobs"
                ],
                "properties": {
                    "jobschedulerId": {
                        "type": "string"
                    },
                    "agent": {
                        "description": "Url of an Agent",
                        "type": "string",
                        "pattern": "^https?://.+$"
                    },
                    "cause": {
                        "description": "For order jobs only cause=order possible",
                        "javaType": "com.sos.joc.model.job.TaskCause",
                        "type": "string",
                        "enum": [
                            "NONE",
                            "MIN_TASKS",
                            "PERIOD_ONCE",
                            "PERIOD_SINGLE",
                            "PERIOD_REPEAT",
                            "QUEUE",
                            "QUEUE_AT",
                            "DIRECTORY",
                            "DELAY_AFTER_ERROR",
                            "ORDER"
                        ]
                    },
                    "numOfSuccessfulTasks": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    },
                    "numOfJobs": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    }
                }
            }
        },
        "totalNumOfSuccessfulTasks": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        },
        "totalNumOfJobs": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        }
    }
}