Skip to content

feat(monitor): status page subscribers - #19

Merged
jansvabik merged 5 commits into
mainfrom
feat/status-subscribers
Nov 5, 2026
Merged

jansvabik merged 5 commits into
mainfrom
feat/status-subscribers

Conversation

@jansvabik

Copy link
Copy Markdown
Member

nrc monitor status-pages subscribers list | delete, --notify on incidents create and incidents updates create, --auto-post on status-pages create and update.

Depends on the backend PR feat/status-subscribers in backend-mono. The client is generated from that branch, so codegen-drift may fail until it lands. Do not release before it is in production.

Addresses are personal data: a token without monitor.statuspages gets a clear refusal, and delete completes the page but not the subscriber, so no address lands in the completion cache.

Checks: make build, vet, test, go test -race, go mod tidy -diff, govulncheck, golangci-lint, make codegen-check against the backend branch, goldens. Tested against the mock server, not a running backend.

Regenerates the Norcube Monitor client and spec. Posted incidents gain
autoPosted and autoManaged and their updates notifySubscribers, which
show in JSON and YAML output.

Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
nrc monitor status-pages subscribers list and delete. Pages are named by
id or exact slug, a subscriber by id. Delete confirms and takes --yes.

Addresses are personal data. A token without monitor.statuspages gets a
refusal that names what was refused, since the API's sentence speaks of
changing pages even on a list. A person without the permission is told
which one it takes. Completion offers the page only, because candidates
are cached on disk.

Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
--notify on incidents create and incidents updates create emails the
update to the page's subscribers. --auto-post on status-pages create and
update lets a page post confirmed critical monitor incidents by itself.
It stays optional on create, since requiring a flag added after 0.23.0
would break scripts that create pages.

status-pages get and incidents get show the new state.

Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
@jansvabik
jansvabik merged commit 19aec15 into main Nov 5, 2026
3 checks passed
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