target-tracking-analysis
v3.0
门店目标追踪分析工具,支持日/周/月三周期目标追踪,T-N数据延迟,黄绿黄灯状态预警。
daily) - 晨会、实时预警weekly) - 周会复盘monthly) - 月度考核python
# T-1数据(默认)
analyze(store_id, store_code, period="daily", current_date="2026-03-25")
# 定时任务检查
check_alerts(store_id, store_code, period="daily", t_minus=1)
达成率图标状态告警级别≥100%🟢正常normal95-100%🟡关注watch85-95%🟠警告warning70-85%🔴告警alert<70%🔴紧急critical
python
from analyze import check_alerts_batch
# 检查所有门店
alerts = check_alerts_batch(period="daily", t_minus=1)
# 返回按优先级排序的告警列表
python
from analyze import analyze, format_report
# 单门店分析
result = analyze(
store_id="1e7653_1750409683578",
store_code="420111020",
period="monthly",
current_date="2026-03-25"
)
print(format_report(result))
bash
# 每日9:00检查T-1数据
0 9 * * * python3 -c "
from target_tracking.analyze import check_alerts_batch
alerts = check_alerts_batch('daily', t_minus=1)
# 接入通知渠道
"
~/.openclaw/workspace-store-ops-analyst/targets/daily_targets.json~/.openclaw/cache/user_stores_114.jsonv3.0.0 - 三周期追踪、T-N数据延迟、黄绿黄灯预警