Packs / status-pages-public
incident-log-and-uptime
Log incidents, compute monthly uptime per service and render a static status page
Install
logicpacks pack use status-pages-public/incident-log-and-uptimeget_pack status-pages-public/incident-log-and-uptimeThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
stdlib-referenceuptime-kuma - Checks: 2 in
outcome/checks.yaml - Code:
refflow.pyschema.json - Tools: python3, docker
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Log incidents, compute monthly uptime per service and render a static status page. Our reference flow (code/refflow.py, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.
Steps
- Log each incident: service, impact (degraded, partial, major, maintenance), start, resolve, status updates.
- Monthly uptime = window minus partial/major outage time (degraded and maintenance don't count).
- Render
status.html(static) and publish it on Cloudflare Pages next to the product.
Edge cases
- Open incidents count until the end of the window.
- Overlapping incidents on one service are counted twice; merge them first.
Don'ts
- Don't backdate resolutions.
Check
lp pack check status-pages/incident-log-and-uptime runs outcome/checks.yaml.