Repository navigation
feat: nrc monitor status-pages - #16
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-linklayout get,layout set --file(-for stdin)incidents list [--status open|resolved],get,create,updateincidents updates create <page> <incident> --status --messagePages are named by id or exact slug. Writes that publish something say so in their help.
deleteandunpublishconfirm and take--yes. CI tokens need themonitor.statuspagesscope.Choices to review
createhas no client-side defaults: every setting is a required flag, unlikemonitors create. Recorded in the DESIGN.md decision log.incidents updates createrather than apostverb, 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
make codegen-checkfails 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 intools/swagger2openapi/main.gofrom the worktree, a file this PR doesn't touch; the main checkout is clean on the same commit. CI will show which is right.