{
    "title": "agent",
    "id": "schemas/report/agent",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.report.Agent",
    "type": "object",
    "required": [
        "agent",
        "cause",
        "numOfSuccessfulTasks"
    ],
    "properties": {
        "jobschedulerId": {
            "type": "string"
        },
        "agent": {
            "description": "Url of an Agent",
            "type": "string",
            "pattern": "https?://.+"
        },
        "cause": {
            "id": "schemas/job/taskCause",
            "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": {
            "id": "schemas/common/nonNegativeLong",
            "type": "string",
            "format": "utc-millisec"
        }
    }
}