{
    "title": "agent log filter",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.log.AgentLogRequest",
    "type": "object",
    "extends": {
        "javaType": "com.sos.joc.model.log.LogBaseRequest",
        "type": "object",
        "required": [
            "controllerId",
            "dateFrom"
        ],
        "properties": {
            "controllerId": {
                "type": "string",
                "pattern": "^[^/\\<>?:\"|*]*$",
                "maxLength": 100,
                "minLength": 1
            },
            "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": {
                "description": "see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones",
                "type": "string",
                "pattern": "^[^<>]*$",
                "maxLength": 255
            },
            "numOfLines": {
                "type": "number",
                "format": "utc-millisec"
            }
        },
        "additionalProperties": false
    },
    "required": [
        "controllerId",
        "agentId",
        "dateFrom"
    ],
    "properties": {
        "agentId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "subagentId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        }
    },
    "additionalProperties": false
}