تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

bot-status-api-test

بواسطة suspect80

Web & Frontend Development
1.2kالتنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Deploy a lightweight status API that exposes.

الوصف

ما الذي تفعله هذه المهارة

A configurable HTTP service that exposes an OpenClaw bot's runtime status as JSON. Reports bot health, context usage, cron job state, installed skills, service connectivity, and system metrics. Runs with zero npm dependencies using Node.js built-ins only.

Zero npm dependencies means no install step, no lockfile churn, and no version conflicts that come with typical monitoring stacks.

متى تستخدمها

  • Checking bot uptime from a monitoring dashboard
  • Verifying external service health before a deployment
  • Tracking CPU and RAM usage during heavy agent workloads
  • Building a status page for a self-hosted OpenClaw agent

مثال على سير العمل

الإدخال

User asks: Is my bot and its connected services healthy right now?

الوكيل
  1. 1

    Start the status server with node server.js

  2. 2

    Read config.json to load service definitions, workspace paths, and cache settings

  3. 3

    Run all configured health checks (HTTP, command, file-exists) in parallel

  4. 4

    Serve the aggregated result from cache at GET /status

  5. 5

    Return a JSON object with bot vitals, service statuses, cron jobs, skills list, and system metrics

الإخراج

JSON response containing uptime, context percent used, per-service health status, cron job list, installed skills, and CPU/RAM/disk readings

التثبيت

clawhub install suspect80/bot-status-api-test

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط