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