{
    "title": "jobscheduler",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.controller.JobScheduler",
    "type": "object",
    "extends": {
        "javaType": "com.sos.joc.model.controller.JobSchedulerP",
        "type": "object",
        "required": [
            "id",
            "controllerId",
            "url",
            "role"
        ],
        "properties": {
            "id": {
                "type": "number",
                "format": "utc-millisec",
                "minimum": 0
            },
            "surveyDate": {
                "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                "type": "string",
                "format": "date-time"
            },
            "controllerId": {
                "type": "string",
                "pattern": "^[^/\\<>?:\"|*]*$",
                "maxLength": 100
            },
            "title": {
                "type": "string"
            },
            "host": {
                "type": "string"
            },
            "url": {
                "type": "string"
            },
            "clusterUrl": {
                "type": "string"
            },
            "role": {
                "javaType": "com.sos.joc.model.controller.Role",
                "type": "string",
                "enum": [
                    "STANDALONE",
                    "PRIMARY",
                    "BACKUP"
                ]
            },
            "startedAt": {
                "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                "type": "string",
                "format": "date-time"
            },
            "version": {
                "type": "string"
            },
            "os": {
                "javaType": "com.sos.joc.model.controller.OperatingSystem",
                "type": "object",
                "required": [
                    "name",
                    "architecture",
                    "distribution"
                ],
                "properties": {
                    "name": {
                        "description": "Windows, Linux, AIX, Solaris, other",
                        "type": "string"
                    },
                    "architecture": {
                        "type": "string"
                    },
                    "distribution": {
                        "description": "e.g. Windows 2012, CentOS Linux release 7.2.1511 (Core)",
                        "type": "string"
                    }
                }
            },
            "timeZone": {
                "type": "string"
            }
        }
    },
    "required": [
        "id",
        "controllerId",
        "url",
        "role",
        "state"
    ],
    "properties": {
        "state": {
            "javaType": "com.sos.joc.model.controller.JobSchedulerState",
            "type": "object",
            "required": [
                "severity",
                "_text"
            ],
            "properties": {
                "severity": {
                    "description": "0=running, 1=waiting_for_activation, 2=unreachable",
                    "type": "integer"
                },
                "_text": {
                    "javaType": "com.sos.joc.model.controller.JobSchedulerStateText",
                    "type": "string",
                    "enum": [
                        "RUNNING",
                        "WAITING_FOR_ACTIVATION",
                        "UNREACHABLE"
                    ]
                }
            }
        }
    }
}