chore: prepare repository for publishing

This commit is contained in:
phamnazage-jpg
2026-05-13 14:42:45 +08:00
parent 55e506b2b5
commit 77e6610fd2
118 changed files with 27373 additions and 1009 deletions

30
scripts/feishu_alert.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# feishu_alert.sh - 飞书告警脚本
# 用法: ./feishu_alert.sh "告警消息"
WEBHOOK_URL="${FEISHU_WEBHOOK:-}"
if [ -z "$WEBHOOK_URL" ]; then
echo "错误: FEISHU_WEBHOOK 环境变量未设置" >&2
exit 1
fi
MESSAGE="${1:-LLM Hub 告警}"
DATE=$(date '+%Y-%m-%d %H:%M:%S')
# 构造飞书文本消息
PAYLOAD=$(cat <<EOF
{
"msg_type": "text",
"content": {
"text": "🚨 LLM Intelligence Hub 告警\\n时间: ${DATE}\\n消息: ${MESSAGE}\\n请检查系统状态。"
}
}
EOF
)
curl -s -X POST \
-H "Content-Type: application/json" \
-d "$PAYLOAD" \
"$WEBHOOK_URL"
echo "告警已发送"