{
    "title": "auditLogFilter",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.audit.AuditLogFilter",
    "type": "object",
    "required": [
        "jobschedulerId"
    ],
    "properties": {
        "jobschedulerId": {
            "type": "string",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 100
        },
        "jobs": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.audit.JobPath",
                "type": "object",
                "required": [
                    "job"
                ],
                "properties": {
                    "job": {
                        "description": "path with possibly % for sql like syntax in search requests",
                        "type": "string",
                        "pattern": "^[^\\<>?:\"|*]+$",
                        "maxLength": 255
                    }
                }
            }
        },
        "jobStreams": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.audit.JobStreamPath",
                "type": "object",
                "required": [
                    "jobStream"
                ],
                "properties": {
                    "jobStream": {
                        "description": "path with possibly % for sql like syntax in search requests",
                        "type": "string",
                        "pattern": "^[^\\<>?:\"|*]+$",
                        "maxLength": 255
                    }
                }
            }
        },
        "orders": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.audit.OrderPath",
                "type": "object",
                "properties": {
                    "jobChain": {
                        "description": "path with possibly % for sql like syntax in search requests",
                        "type": "string",
                        "pattern": "^[^\\<>?:\"|*]+$",
                        "maxLength": 255
                    },
                    "orderId": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    }
                }
            }
        },
        "calendars": {
            "type": "array",
            "items": {
                "description": "path with possibly % for sql like syntax in search requests",
                "type": "string",
                "pattern": "^[^\\<>?:\"|*]+$",
                "maxLength": 255
            }
        },
        "folders": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.common.Folder",
                "type": "object",
                "required": [
                    "folder"
                ],
                "properties": {
                    "folder": {
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255
                    },
                    "recursive": {
                        "type": "boolean",
                        "default": true
                    }
                }
            }
        },
        "account": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "requests": {
            "type": "array",
            "items": {
                "description": "path with possibly % for sql like syntax in search requests",
                "type": "string",
                "pattern": "^[^\\<>?:\"|*]+$",
                "maxLength": 255
            }
        },
        "regex": {
            "description": "regular expression to filter JobScheduler objects by matching the path",
            "type": "string",
            "pattern": "^((?!<script( |>)|<svg/on).)*$"
        },
        "dateFrom": {
            "description": "0 or [number][smhdwMy] (where smhdwMy unit for second, minute, etc) or ISO 8601 timestamp",
            "type": "string",
            "pattern": "^([+-]?0|([+-]?[0-9]+[smhdwMy])+|\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}([,.]\\d{1,3})?)(Z|[+-]\\d{2}(:?\\d{2})?)?$"
        },
        "dateTo": {
            "description": "0 or [number][smhdwMy] (where smhdwMy unit for second, minute, etc) or ISO 8601 timestamp",
            "type": "string",
            "pattern": "^([+-]?0|([+-]?[0-9]+[smhdwMy])+|\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}([,.]\\d{1,3})?)(Z|[+-]\\d{2}(:?\\d{2})?)?$"
        },
        "timeZone": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "limit": {
            "description": "restricts the number of responsed records; -1=unlimited",
            "type": "integer",
            "default": 10000
        },
        "ticketLink": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        }
    }
}