Skip to content

feat: nrc monitor status-pages - #16

Merged
jansvabik merged 1 commit into
mainfrom
feat/monitor-status-pages
Nov 4, 2026
Merged

jansvabik merged 1 commit into
mainfrom
feat/monitor-status-pages

Conversation

@jansvabik

Copy link
Copy Markdown
Member

nrc monitor status-pages: every Norcube Monitor status page operation. The API is on staging; production follows the backend release, so don't tag a release that advertises this before then.

Commands

  • list [--monitor], get, create, update, delete, publish, unpublish, preview-link
  • layout get, layout set --file (- for stdin)
  • incidents list [--status open|resolved], get, create, update
  • incidents updates create <page> <incident> --status --message

Pages are named by id or exact slug. Writes that publish something say so in their help. delete and unpublish confirm and take --yes. CI tokens need the monitor.statuspages scope.

Choices to review

  • create has no client-side defaults: every setting is a required flag, unlike monitors create. Recorded in the DESIGN.md decision log.
  • incidents updates create rather than a post verb, per DESIGN.md's standard verbs on nested resources.

Tested

gofmt, go vet, go test -race ./..., go mod tidy -diff, govulncheck (only the already accepted GO-2026-5932), against the in-process fake backend.

Not tested

  • Nothing has run against a live service.
  • make codegen-check fails locally on billing, domainradar and langsync, which had already drifted from the backend; their files are restored here, and the Monitor client has no diff.
  • golangci-lint ./... reports one errcheck in tools/swagger2openapi/main.go from the worktree, a file this PR doesn't touch; the main checkout is clean on the same commit. CI will show which is right.

nrc monitor status-pages list, get, create, update, delete, publish,
unpublish and preview-link; layout get and set; incidents list, get,
create and update; incidents updates create. Pages are named by id or
exact slug. Create fills in no settings. Writes that go public say so.

Regenerates the Norcube Monitor client from the status pages API, which
adds the monitor.statuspages scope.

Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
@jansvabik
jansvabik merged commit 118372c into main Nov 4, 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