{
 "CPU 使用率與系統負載#1": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ],
  "cards": [
   {
    "title": "優先 psutil / proc",
    "points": [
     "不啟動子程序",
     "少一層攻擊面"
    ]
   },
   {
    "title": "結構化且帶單位",
    "points": [
     "百分比、等級由 Python 算",
     "模型只負責解讀"
    ]
   },
   {
    "title": "一個工具做一件事",
    "points": [
     "描述寫清楚何時使用"
    ]
   }
  ]
 },
 "CPU 使用率與系統負載#2": {
  "type": "table",
  "head": [
   "每核心負載",
   "判讀"
  ],
  "rows": [
   [
    "小於 1",
    "大致還有餘裕"
   ],
   [
    "接近 1",
    "滿載的邊緣"
   ],
   [
    "持續明顯大於 1",
    "有程序在排隊"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ]
 },
 "CPU 使用率與系統負載#5": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   3,
   3
  ],
  "nodes": [
   {
    "label": "用指定秒數取樣",
    "color": 0
   },
   {
    "label": "讀三時段負載與核心數",
    "color": 1
   },
   {
    "label": "回傳結構化資料",
    "color": 2,
    "kind": "end"
   }
  ]
 },
 "記憶體與 Swap#1": {
  "type": "table",
  "head": [
   "情況",
   "判讀"
  ],
  "rows": [
   [
    "available 很低且 swap 增加",
    "記憶體有壓力"
   ],
   [
    "swap 有用但 available 充足",
    "不一定有問題"
   ],
   [
    "核心已殺掉程序",
    "查日誌 Out of memory"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "記憶體與 Swap#4": {
  "type": "bar",
  "labels": [
   "總量",
   "已用",
   "快取",
   "可用"
  ],
  "values": [
   7.7,
   2.1,
   5.2,
   5.3
  ],
  "unit": "Gi",
  "reveal": [
   0,
   0,
   4,
   4
  ],
  "highlight": 3
 },
 "磁碟空間與 inode#1": {
  "type": "cards",
  "reveal": [
   2,
   2,
   2,
   2,
   2,
   2
  ],
  "cards": [
   {
    "title": "容量用完",
    "points": [
     "df 看使用率"
    ]
   },
   {
    "title": "inode 用完",
    "points": [
     "每個檔案佔一個 inode",
     "容量有剩仍會空間不足"
    ]
   }
  ]
 },
 "程序排行與健康摘要#1": {
  "type": "table",
  "head": [
   "做法",
   "原因"
  ],
  "rows": [
   [
    "不回傳完整命令列",
    "可能含密碼、token"
   ],
   [
    "限制筆數上限",
    "避免 token 爆量"
   ],
   [
    "處理程序消失與拒絕存取",
    "避免掃描中途失敗"
   ],
   [
    "不用 root 執行助理",
    "看不到部分資訊是正常的"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 },
 "程序排行與健康摘要#4": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   4,
   4,
   4,
   4
  ],
  "nodes": [
   {
    "label": "先呼叫一次暖身",
    "color": 0
   },
   {
    "label": "等 0.5 秒",
    "color": 1
   },
   {
    "label": "再讀一次",
    "color": 2
   },
   {
    "label": "排序取前幾名",
    "color": 3,
    "kind": "end"
   }
  ]
 },
 "程序排行與健康摘要#5": {
  "type": "cards",
  "reveal": [
   0,
   0,
   3
  ],
  "cards": [
   {
    "title": "critical",
    "points": [
     "達到嚴重門檻"
    ]
   },
   {
    "title": "warn",
    "points": [
     "達到警告門檻"
    ]
   },
   {
    "title": "ok",
    "points": [
     "其他情況"
    ]
   }
  ]
 },
 "程序排行與健康摘要#6": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   0,
   4
  ],
  "nodes": [
   {
    "label": "檢查 CPU",
    "color": 0
   },
   {
    "label": "檢查記憶體",
    "color": 1
   },
   {
    "label": "檢查各磁碟分割區",
    "color": 2
   },
   {
    "label": "取最嚴重等級",
    "sub": "整體結論",
    "color": 3,
    "kind": "end"
   }
  ]
 }
}