File size: 2,242 Bytes
a273844
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
  "$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" }
  }
}