{
  "title": "agentsFilter",
  "id": "schemas/report/agentsFilter",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "javaType": "com.sos.joc.model.report.AgentsFilter",
  "type": "object",
  "required": [
    "jobschedulerId",
    "dateFrom",
    "dateTo"
  ],
  "properties": {
    "jobschedulerId": {
      "type": "string"
    },
    "agents": {
      "type": "array",
      "items": {
        "description": "Url of an Agent",
        "type": "string",
        "pattern": "https?://.+"
      }
    },
    "dateFrom": {
      "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": {
      "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"
    }
  }
}
