{
    "title": "agent",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "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
        }
    }
}