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

Retrieve blackouts from the alerta Model code #21

Conversation

headphonejames
Copy link
Contributor

Retrieve blackouts from the alerta model code instead of the db code. This standardizes the data, so it is the same regardless of the database being used (postgres or MongoDB).

Added the NOTIFICATION_BLACKOUT config param, which changes the behavior for alerts that are being raised during the blackout period.

…om db code. This standardizes the data, so it is the same regardless of the database being used.

Added the NOTIFICATION_BLACKOUT config param, which changes the behavior for alerts that are being raised during the blackout period.
Copy link
Owner

@mirceaulinic mirceaulinic left a comment

Choose a reason for hiding this comment

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

Not sure how I missed this PR. I think the changes make sense. I believe you've tested this against an Alerta instance with some regex blackouts @headphonejames?

@headphonejames
Copy link
Contributor Author

I did test it with an instance. Thanks.

@mirceaulinic mirceaulinic merged commit 4c6caeb into mirceaulinic:master Jul 3, 2023
mirceaulinic added a commit that referenced this pull request Jul 18, 2023
mirceaulinic added a commit that referenced this pull request Jul 18, 2023
Fix unit tests after the changes from #21
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.

2 participants