{
    "title": "deploy cluster agents",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.agent.DeployClusterAgents",
    "type": "object",
    "required": [
        "controllerId",
        "clusterAgents"
    ],
    "properties": {
        "controllerId": {
            "type": "string",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 100,
            "minLength": 1
        },
        "clusterAgents": {
            "type": "array",
            "minItems": 1,
            "uniqueItems": true,
            "items": {
                "type": "object",
                "javaType": "com.sos.joc.model.agent.DeployClusterAgent",
                "required": [
                    "agentId",
                    "schedulingType"
                ],
                "properties": {
                    "agentId": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "schedulingType": {
                        "javaType": "com.sos.joc.model.agent.AgentClusterSchedulingType",
                        "type": "string",
                        "enum": [
                            "ROUND_ROBIN",
                            "FIXED_PRIORITY"
                        ],
                        "default": "ROUND_ROBIN"
                    }
                },
                "additionalProperties": false
            }
        },
        "auditLog": {
            "javaType": "com.sos.joc.model.audit.AuditParams",
            "type": "object",
            "properties": {
                "comment": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "timeSpent": {
                    "type": "integer",
                    "minimum": 0
                },
                "ticketLink": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            }
        }
    },
    "additionalProperties": false
}