{
    "title": "subagent clusters",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.agent.SubagentClusters",
    "type": "object",
    "required": [
        "deliveryDate",
        "subagentClusters"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "subagentClusters": {
            "type": "array",
            "items": {
                "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",
                                "type": "string",
                                "enum": [
                                    "IN_SYNC",
                                    "NOT_IN_SYNC",
                                    "NOT_DEPLOYED",
                                    "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
            }
        },
        "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
}