{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "LogAnalysisResult", "type": "object", "required": [ "summary", "error_patterns", "timeline", "possible_causes", "suggested_actions", "risks", "need_human_review", "report_markdown" ], "properties": { "insufficient_context": { "type": "boolean" }, "summary": { "type": "string" }, "error_patterns": { "type": "array", "items": { "type": "object", "required": ["pattern", "count", "level", "sample_logs"], "properties": { "pattern": { "type": "string" }, "count": { "type": "number" }, "first_seen": { "type": "string" }, "last_seen": { "type": "string" }, "level": { "type": "string", "enum": ["high", "medium", "low"] }, "sample_logs": { "type": "array", "items": { "type": "string" } } } } }, "timeline": { "type": "array", "items": { "type": "object", "required": ["time", "event"], "properties": { "time": { "type": "string" }, "event": { "type": "string" } } } }, "possible_causes": { "type": "array", "items": { "type": "object", "required": ["cause", "confidence", "evidence"], "properties": { "cause": { "type": "string" }, "confidence": { "type": "string", "enum": ["high", "medium", "low"] }, "evidence": { "type": "array", "items": { "type": "string" } } } } }, "suggested_actions": { "type": "array", "items": { "type": "string" } }, "risks": { "type": "array", "items": { "type": "object", "required": ["risk", "level", "suggestion"], "properties": { "risk": { "type": "string" }, "level": { "type": "string", "enum": ["high", "medium", "low"] }, "suggestion": { "type": "string" } } } }, "need_human_review": { "type": "boolean" }, "confidence": { "type": "string", "enum": ["high", "medium", "low"] }, "evidence": { "type": "array", "items": { "type": "string" } }, "report_markdown": { "type": "string" } } }