{
    "title": "store cluster agents",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.agent.StoreClusterAgents",
    "type": "object",
    "required": [
        "controllerId",
        "clusterAgents"
    ],
    "properties": {
        "controllerId": {
            "type": "string",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 100,
            "minLength": 1
        },
        "clusterAgents": {
            "type": "array",
            "minItems": 1,
            "items": {
                "javaType": "com.sos.joc.model.agent.ClusterAgent",
                "type": "object",
                "required": [
                    "agentId",
                    "subagentClusterId",
                    "subagentIds"
                ],
                "properties": {
                    "agentId": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "subagentClusterId": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "subagentIds": {
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.joc.model.agent.SubAgentId",
                            "type": "object",
                            "required": [
                                "subagentId",
                                "priority"
                            ],
                            "properties": {
                                "subagentId": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255,
                                    "minLength": 1
                                },
                                "priority": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 1024
                                }
                            },
                            "additionalProperties": false
                        }
                    }
                },
                "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
}