Repository navigation
fix(alerts): subscribe alert templates to create and update events - #513
Merged
Merged
Conversation
Alert events follow the CRUD pattern now: create when an alert opens, update when it is acknowledged, unacknowledged or resolved. An acknowledgement keeps the alert firing, so the chat and incident templates act on a create or a resolved update and ignore the rest.
Code review
The alert templates now use CRUD-style alert event names: the chat and uptime incident handlers process alert creation and resolution updates, while the usage-spike template subscribes only to creates. The Rust starter lockfile also updates Latest changes: The latest commit updates the Rust starter's locked Walkthrough (6)
Reviewed the commits since Tip Comment |
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.

Alert events now follow the CRUD naming (appwrite/appwrite#16119).
monitors.*.alerts.*.firingmonitors.*.alerts.*.create.resolved,.acknowledged,.unacknowledgedmonitors.*.alerts.*.updateAn acknowledged alert keeps
status: firing, soalerts-to-chatanduptime-incident-lognow act on acreateevent or an update whose status isresolved, and ignore acknowledgements:pause-on-usage-spikeonly subscribes tocreate; its README changes.Part of: appwrite-labs/cloud#6564