{
    "title": "process classes (volatile part)",
    "id": "schemas/processClass/processClasses_v",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.processClass.ProcessClassesV",
    "type": "object",
    "required": [
        "deliveryDate",
        "processClasses"
    ],
    "properties": {
        "deliveryDate": {
            "id": "schemas/common/deliveryDate",
            "description": "Current date of the JOC server/REST service. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "processClasses": {
            "type": "array",
            "items": {
                "id": "schemas/processClass/processClass_v",
                "javaType": "com.sos.joc.model.processClass.ProcessClassV",
                "type": "object",
                "required": [
                    "surveyDate",
                    "path",
                    "name",
                    "numOfProcesses"
                ],
                "properties": {
                    "surveyDate": {
                        "id": "schemas/common/surveyDate_p",
                        "description": "Date of the inventory data. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
                        "type": "string",
                        "format": "date-time"
                    },
                    "path": {
                        "id": "schemas/common/path",
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "/([^/]+/)*[^/]+"
                    },
                    "name": {
                        "type": "string"
                    },
                    "numOfProcesses": {
                        "id": "schemas/common/nonNegativeInteger",
                        "type": "integer",
                        "minimum": 0
                    },
                    "processes": {
                        "type": "array",
                        "items": {
                            "id": "schemas/processClass/process",
                            "javaType": "com.sos.joc.model.processClass.Process",
                            "type": "object",
                            "required": [
                                "job",
                                "taskId",
                                "pid",
                                "runningSince"
                            ],
                            "properties": {
                                "job": {
                                    "id": "schemas/common/path",
                                    "description": "absolute path based on live folder of a JobScheduler object.",
                                    "type": "string",
                                    "pattern": "/([^/]+/)*[^/]+"
                                },
                                "taskId": {
                                    "type": "string"
                                },
                                "pid": {
                                    "id": "schemas/common/nonNegativeInteger",
                                    "type": "integer",
                                    "minimum": 0
                                },
                                "runningSince": {
                                    "id": "schemas/common/timestamp",
                                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                    "type": "string",
                                    "format": "date-time"
                                },
                                "agent": {
                                    "description": "url",
                                    "type": "string",
                                    "pattern": "https?://.+"
                                }
                            }
                        }
                    },
                    "configurationStatus": {
                        "id": "schemas/common/configurationStatus",
                        "javaType": "com.sos.joc.model.common.ConfigurationState",
                        "type": "object",
                        "required": [
                            "severity",
                            "_text"
                        ],
                        "properties": {
                            "severity": {
                                "description": "4=ok; 5=replacement_is_standing_by,removing_delayed; 2=error_in_configuration_file,changed_file_not_loaded,resource_is_missing",
                                "type": "integer"
                            },
                            "_text": {
                                "id": "schemas/common/configurationStatusText",
                                "javaType": "com.sos.joc.model.common.ConfigurationStateText",
                                "type": "string",
                                "enum": [
                                    "ERROR_IN_CONFIGURATION_FILE",
                                    "CHANGED_FILE_NOT_LOADED",
                                    "REMOVING_DELAYED",
                                    "RESOURCE_IS_MISSING",
                                    "REPLACEMENT_IS_STANDING_BY",
                                    "OK"
                                ]
                            },
                            "message": {
                                "description": "contains e.g. error message",
                                "type": "string"
                            }
                        }
                    }
                }
            }
        }
    }
}