{
    "title": "jobscheduler with delivry date (permanent part)",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.jobscheduler.JobSchedulerP200",
    "type": "object",
    "required": [
        "deliveryDate",
        "jobscheduler"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Date time. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "jobscheduler": {
            "javaType": "com.sos.joc.model.jobscheduler.JobSchedulerP",
            "type": "object",
            "required": [
                "surveyDate",
                "jobschedulerId",
                "version",
                "host",
                "port",
                "os",
                "timeZone",
                "clusterType",
                "startedAt"
            ],
            "properties": {
                "surveyDate": {
                    "description": "Date of the inventory data. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
                    "type": "string",
                    "format": "date-time"
                },
                "jobschedulerId": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                },
                "host": {
                    "type": "string"
                },
                "port": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 65535
                },
                "os": {
                    "javaType": "com.sos.joc.model.jobscheduler.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"
                },
                "url": {
                    "type": "string"
                },
                "clusterType": {
                    "javaType": "com.sos.joc.model.jobscheduler.ClusterMemberType",
                    "type": "object",
                    "required": [
                        "_type"
                    ],
                    "properties": {
                        "_type": {
                            "javaType": "com.sos.joc.model.jobscheduler.ClusterType",
                            "description": "Possible values are: 'standalone','active','passive'; JobScheduler doesn't run in a cluster (standalone) or is member of an active (distributed orders) or passive cluster (backup)",
                            "type": "string",
                            "enum": [
                                "standalone",
                                "active",
                                "passive"
                            ]
                        },
                        "precedence": {
                            "type": "integer",
                            "minimum": 0
                        }
                    }
                },
                "startedAt": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "supervisor": {
                    "javaType": "com.sos.joc.model.jobscheduler.HostPortParameter",
                    "type": "object",
                    "properties": {
                        "jobschedulerId": {
                            "type": "string",
                            "pattern": "^[^/\\<>?:\"|*]*$",
                            "maxLength": 100
                        },
                        "host": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        },
                        "port": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 65535
                        },
                        "filename": {
                            "type": "string",
                            "pattern": "^[^/\\<>?:\"|*]*$",
                            "maxLength": 255
                        },
                        "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
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}