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

claude-watchdog

بواسطة chapati23

DevOps & Cloud
357التنزيلات وفق ما يذكره clawskills.sh
2النجوم
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Monitor the Claude API for outages and latency spikes with rich Telegram alerts.

الوصف

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

Monitors the Anthropic API for outages and latency spikes via cron-based polling. Sends structured Telegram alerts for status incidents, latency spikes, and recoveries, tagging whether an incident affects your specific model. Status checks cost zero tokens; latency probes measure real end-to-end response time through the local OpenClaw gateway.

Status checks poll the official Anthropic status page directly at zero token cost, and the latency probe measures your actual gateway response path rather than relying on third-party synthetic monitoring.

متى تستخدمها

  • Getting notified on Telegram when the Claude API goes down
  • Detecting latency spikes before users report slow responses
  • Filtering out incidents that affect other models but not yours
  • Receiving an automatic all-clear message when the API recovers
  • Distinguishing whether slowdowns are Anthropic-side or local

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

الإدخال

User asks: set up Claude API watchdog alerts for my Sonnet usage

الوكيل
  1. 1

    Runs setup.sh interactively, prompting for Telegram bot token, chat ID, and gateway credentials

  2. 2

    Writes config to ~/.openclaw/skills/claude-watchdog/claude-watchdog.env with MONITOR_MODEL=sonnet

  3. 3

    Installs two cron jobs running every 15 minutes: status-check.py and latency-probe.py

  4. 4

    Runs an initial status check and latency probe to verify connectivity and establish a baseline

  5. 5

    Confirms setup by sending a test alert to the configured Telegram chat

الإخراج

Cron jobs installed; Telegram receives incident alerts tagged to your model and latency warnings with severity levels automatically going forward

المتطلبات

  • Telegram bot token from @BotFather (requires creating a Telegram bot)
  • Telegram chat ID for the channel or group where alerts will be delivered

التثبيت

clawhub install chapati23/claude-watchdog

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

الروابط