{
    "title": "agents",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.agent.AgentsTasks",
    "type": "object",
    "required": [
        "deliveryDate"
    ],
    "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": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "agents": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.agent.AgentTasks",
                "type": "object",
                "required": [
                    "agentId",
                    "agentName",
                    "runningTasks"
                ],
                "properties": {
                    "controllerId": {
                        "type": "string",
                        "pattern": "^[^/\\<>?!&:;()\"|*^]*$",
                        "maxLength": 100
                    },
                    "agentId": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "agentName": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "orders": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "javaType": "com.sos.joc.model.agent.AgentTaskOrder",
                            "required": [
                                "orderId"
                            ],
                            "properties": {
                                "orderId": {
                                    "type": "string"
                                },
                                "subagentId": {
                                    "type": "string"
                                }
                            },
                            "additionalProperties": false
                        }
                    },
                    "processLimit": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "runningTasks": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "isClusterWatcher": {
                        "type": "boolean",
                        "default": false
                    }
                },
                "additionalProperties": false
            }
        }
    },
    "additionalProperties": false
}