# incident-log-and-uptime

Log incidents, compute monthly uptime per service and render a static status page

- **Space:** status-pages-public (https://github.com/Tech-Realm/space-status-pages-public/tree/main/incident-log-and-uptime)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3, docker
- **Routes:** stdlib-reference, uptime-kuma; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use status-pages-public/incident-log-and-uptime` or MCP `get_pack status-pages-public/incident-log-and-uptime`
- **Files:** CHANGELOG.md, code/refflow.py, code/schema.json, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/scenario.json, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (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

1. Log each incident: service, impact (degraded, partial, major, maintenance), start, resolve, status updates.
2. Monthly uptime = window minus partial/major outage time (degraded and maintenance don't count).
3. 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.



---

Canonical URL: https://logicpacks.io/packs/status-pages-public/incident-log-and-uptime

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
