{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "correlate_events",
  "type": "object",
  "properties": {
    "keyword": {
      "description": "Filter logs by keyword (IP address, interface name, error message). Omit to show all error/warning/critical events.",
      "type": "string"
    },
    "topics": {
      "description": "Comma-separated log topics to search (e.g. 'firewall,dhcp,system'). Default: error, warning, critical, firewall, system, interface.",
      "type": "string"
    },
    "time_window": {
      "default": "30m",
      "description": "How far back to search: '10m', '1h', '6h', '1d' (default: 30m).",
      "type": "string"
    },
    "limit": {
      "default": 100,
      "description": "Maximum log entries to return (default: 100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 500
    }
  },
  "required": ["time_window", "limit"],
  "additionalProperties": false
}
