{
    "title": "agents",
    "id": "schemas/report/agents",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.report.Agents",
    "type": "object",
    "required": [
        "deliveryDate",
        "agents"
    ],
    "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"
        },
        "agents": {
            "type": "array",
            "items": {
                "id": "schemas/report/agent",
                "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": {
                        "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"
                    },
                    "numOfJobs": {
                        "id": "schemas/common/nonNegativeLong",
                        "type": "string",
                        "format": "utc-millisec"
                    }
                }
            }
        },
        "totalNumOfSuccessfulTasks": {
            "id": "schemas/common/nonNegativeLong",
            "type": "string",
            "format": "utc-millisec"
        },
        "totalNumOfJobs": {
            "id": "schemas/common/nonNegativeLong",
            "type": "string",
            "format": "utc-millisec"
        }
    }
}