Repository navigation
feat(monitor): status page subscribers - #19
Merged
Merged
Conversation
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>
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 subscribers list | delete,--notifyonincidents createandincidents updates create,--auto-postonstatus-pages createandupdate.Depends on the backend PR
feat/status-subscribersin backend-mono. The client is generated from that branch, socodegen-driftmay fail until it lands. Do not release before it is in production.Addresses are personal data: a token without
monitor.statuspagesgets a clear refusal, anddeletecompletes 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-checkagainst the backend branch, goldens. Tested against the mock server, not a running backend.