{
    "title": "process class (volatile part)",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.processClass.ProcessClassV",
    "type": "object",
    "required": [
        "surveyDate",
        "path",
        "name",
        "numOfProcesses"
    ],
    "properties": {
        "surveyDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "path": {
            "description": "absolute path of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255,
            "minLength": 1
        },
        "name": {
            "type": "string"
        },
        "numOfProcesses": {
            "type": "integer",
            "minimum": 0
        },
        "processes": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.processClass.Process",
                "type": "object",
                "required": [
                    "job",
                    "taskId",
                    "pid",
                    "runningSince"
                ],
                "properties": {
                    "job": {
                        "description": "absolute path of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "taskId": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    },
                    "pid": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "runningSince": {
                        "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?://.+"
                    }
                }
            }
        }
    }
}