Files
rongtongjin/.env.example
T
hughhuangandClaude Sonnet 4.5 00d6683bb1 docs: 归档 LLM 趋势告警历史上下文判断变更
将 add-llm-alert-history-context 变更归档到 archive 目录,
并更新 silver-trend-analysis 规格文档。

主要变更:
- 归档变更到 2026-01-15-add-llm-alert-history-context
- 更新规格文档:新增 2 个需求,修改 5 个需求
- 补充 MySQL 数据库配置示例到 .env.example

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-15 23:58:03 +08:00

40 lines
1.5 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 监控间隔(毫秒),默认 60000(1 分钟)
MONITOR_INTERVAL=60000
# Webhook 地址(可选,用于企业微信、钉钉等告警)
# WEBHOOK_URL=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY
# 飞书 Webhook 地址(用于接收每小时汇总报告和白银基线告警)
# FEISHU_WEBHOOK_URL=https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxxxxxxxxxxxxxx
# 白银基线监控阈值(默认 0.2)
# 当白银价格相对于基线变化超过此值时触发告警
SILVER_BASELINE_THRESHOLD=0.2
# LLM API 配置(用于趋势分析功能)
# LLM API 基础 URL(可选,默认 OpenAI API)
# LLM_API_BASE=https://api.openai.com/v1
# LLM API 密钥(必需,如果未配置则跳过趋势分析功能)
# LLM_API_KEY=sk-xxxxxxxxxxxxxxxxxxxx
# LLM 模型(可选,默认 gpt-4o-mini)
# LLM_MODEL=gpt-4o-mini
# 趋势分析间隔(毫秒),默认 300000(5 分钟)
# TREND_ANALYSIS_INTERVAL=300000
# MySQL 数据库配置(可选,用于 MySQL 只读查询 skill)
# 数据库连接方式 1:使用连接字符串(密码不含特殊字符)
# MYSQL_URL=mysql://username:password@localhost:3306/database_name
# 数据库连接方式 2:分开配置(密码包含特殊字符时推荐)
# MYSQL_HOST=localhost
# MYSQL_PORT=3306
# MYSQL_USERNAME=username
# MYSQL_PASSWORD=your_password
# MYSQL_DATABASE=database_name
# MySQL 连接池配置(可选)
# MYSQL_CONNECTION_LIMIT=10
# MYSQL_QUEUE_LIMIT=0
# MYSQL_CONNECT_TIMEOUT=10000