Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sending non-state notifications without an incident #188

Draft
wants to merge 6 commits into
base: non-state-notification-types-v1
Choose a base branch
from

Conversation

yhabteab
Copy link
Member

@yhabteab yhabteab commented Apr 25, 2024

Facilitates sending non-state notifications even without an active incident. See the individual commits separately for the details of why something was changed and most of them also contain their own reasons.

resolves #106

@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Apr 25, 2024
@yhabteab yhabteab force-pushed the yhabteab/support-non-state-notification-types branch from 0431265 to 62d1ceb Compare April 25, 2024 15:24
@yhabteab yhabteab force-pushed the send-incident-non-state-notifications branch 2 times, most recently from 796ff00 to 0ff79aa Compare April 26, 2024 10:19
@yhabteab yhabteab force-pushed the yhabteab/support-non-state-notification-types branch 5 times, most recently from c2743ba to 8ba8889 Compare April 26, 2024 15:30
@yhabteab yhabteab force-pushed the yhabteab/support-non-state-notification-types branch 3 times, most recently from b7dd933 to 68811f7 Compare May 8, 2024 14:44
@yhabteab yhabteab requested review from oxzi and julianbrost and removed request for julianbrost May 8, 2024 14:45
@yhabteab
Copy link
Member Author

yhabteab commented May 8, 2024

Please review concept and functionality, but be aware that there is no corresponding web PR yet.

@yhabteab yhabteab force-pushed the send-incident-non-state-notifications branch from 8c380a1 to e2269d2 Compare May 13, 2024 12:27
Base automatically changed from send-incident-non-state-notifications to main May 13, 2024 15:45
@yhabteab yhabteab force-pushed the yhabteab/support-non-state-notification-types branch from 68811f7 to 11b142c Compare May 15, 2024 09:20
internal/rule/rule.go Outdated Show resolved Hide resolved
internal/rule/rule.go Outdated Show resolved Hide resolved
Comment on lines 66 to 77
if i != nil {
if err := i.ProcessEvent(ctx, ev); err != nil {
if errors.Is(err, event.ErrSuperfluousStateChange) {
return err
}

// Expect the actual error to be logged with additional context in the incident package.
return event.ErrEventProcessing
}

return nil
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if an Incident exists, the other rules aren't even considered? That shouldn't be the case, if you configure that you want to be notified about downtimes, you should be notified about all of them.

@yhabteab yhabteab removed the request for review from oxzi May 17, 2024 07:46
@yhabteab yhabteab marked this pull request as draft May 17, 2024 07:46
@yhabteab yhabteab force-pushed the yhabteab/support-non-state-notification-types branch 3 times, most recently from 563d4f0 to a9c9105 Compare August 1, 2024 11:49
@yhabteab yhabteab force-pushed the yhabteab/support-non-state-notification-types branch from a9c9105 to 7d65e62 Compare August 5, 2024 13:12
@yhabteab yhabteab changed the base branch from main to non-state-notification-types-v1 August 5, 2024 13:13
@yhabteab yhabteab force-pushed the yhabteab/support-non-state-notification-types branch from 7d65e62 to 35d83ce Compare August 5, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support other notification types
2 participants