Skip to content

docs: 历史接口的 step 字段 - #34

Merged
stqfdyr merged 10 commits into
mainfrom
docs/history-step
Oct 2, 2026
Merged

stqfdyr merged 10 commits into
mainfrom
docs/history-step

Conversation

@stqfdyr

@stqfdyr stqfdyr commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

主题开发文档补上历史接口新返回的 step。

  • 响应顶层的 step 是每个点覆盖的秒数:7 天以内是 60 的倍数,更宽的窗口是 3600 的倍数
  • minutes 的满额改为按 step ÷ 60 说明,不再要主题自己推算点距
  • 注明最后一个点是还没过完的时段,minutes 只算到当前,不满额不代表离线
  • 版本说明加上 1.3.1 及更早没有 step

测试

  • npm run lint、npm run build(含站内链接检查)通过

对应 hub monitor-probe/monitor#86。基于 #33 的分支,#33 合入后改到 main 上

- 保留天数 1–365、默认 90,最近 7 天按分钟、更早按小时;推荐天数与占用;升级后的汇总与回收
- 回收空间需要约两倍于数据库的空闲磁盘
- 主题契约:/api/me 的 history_days、窗口上限、超过 7 天的窗口的口径
响应顶层的 step 是每个点覆盖的秒数,minutes 的满额改按 step ÷ 60 说明。
Base automatically changed from feat/history-tiers to main October 2, 2026 16:28
@stqfdyr
stqfdyr merged commit 06e63de into main Oct 2, 2026
1 check passed
@stqfdyr
stqfdyr deleted the docs/history-step branch October 2, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant