360 Secure SkillHub
360 安全技能中心

API Health Monitor

该 Skill 以 JavaScript 模块形式提供 checkApiHealth(),读取本机 OpenClaw 会话日志目录,匹配 500 错误、令牌失败、冷却、service_busy 等 LLM API 错误模式,返回含 healthy、errors、recommendation 的 JSON 健康报告。

分类:数据
toller892
toller892
热度 32.47
最近更新 2026-05-11 17:45:14

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add toller892/api-health-monitor
兼容性
OpenClaw 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
name
api-health-monitor
description
Parses recent OpenClaw session logs for LLM API errors and returns a structured health report.

api-health-monitor

Scans ~/.openclaw/agents/main/sessions/ for recent LLM API error patterns (500 errors, token failures, cooldowns, service_busy) and produces a JSON health report.

Usage

const { checkApiHealth } = require('./skills/api-health-monitor');
const report = await checkApiHealth();
// { healthy: bool, errors: [...], recommendation: string }

Report Shape

Field Type Description
healthy boolean true if no errors found
errors array [{ type, message, count, lastSeen }]
recommendation string Suggested action based on findings