{
    "title": "cluster agent",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.agent.SubagentCluster",
    "type": "object",
    "required": [
        "agentId",
        "subagentClusterId",
        "subagentIds"
    ],
    "properties": {
        "controllerId": {
            "type": "string",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 100
        },
        "agentId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "subagentClusterId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "title": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "deployed": {
            "type": "boolean",
            "default": false
        },
        "syncState": {
            "javaType": "com.sos.controller.model.common.SyncState",
            "type": "object",
            "required": [
                "severity",
                "_text"
            ],
            "properties": {
                "severity": {
                    "type": "integer"
                },
                "_text": {
                    "javaType": "com.sos.controller.model.common.SyncStateText",
                    "description": "SUSPENDED, OUTSTANDING only for Workflows",
                    "type": "string",
                    "enum": [
                        "IN_SYNC",
                        "NOT_IN_SYNC",
                        "NOT_DEPLOYED",
                        "SUSPENDED",
                        "OUTSTANDING",
                        "UNKNOWN"
                    ]
                }
            }
        },
        "ordering": {
            "type": "integer",
            "minimum": 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
}