{
    "title": "log event",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.log.LogEvent",
    "type": "object",
    "required": [
        "host",
        "timestamp",
        "product",
        "level"
    ],
    "properties": {
        "timestamp": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "host": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "product": {
            "javaType": "com.sos.joc.model.log.Product",
            "type": "string",
            "enum": [
                "CONTROLLER",
                "AGENT"
            ]
        },
        "clusterId": {
            "alias": "controllerId,agentId",
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "instanceId": {
            "alias": "nodeId,subagentId,jocId",
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "role": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "thread": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "level": {
            "javaType": "com.sos.joc.model.log.Level",
            "type": "string",
            "enum": [
                "FATAL",
                "ERROR",
                "WARN",
                "INFO",
                "DEBUG",
                "TRACE"
            ]
        },
        "logger": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "message": {
            "type": "string"
        },
        "thrown": {
            "type": "string"
        }
    },
    "additionalProperties": false
}