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

Feature: alert rearm setting which allows periodic resending of alert messages. #631

Merged
merged 7 commits into from
Dec 10, 2015

Conversation

nielsdraaisma
Copy link
Contributor

This pull request adds a setting which matches against a rearm timer after query execution, this allows users to receive daily emails for alerts that are trigger over a longer period of time.

logger.info("Alert %d new state: %s", alert.id, new_state)
old_state = alert.state
alert.update_instance(state=new_state)
alert.update_instance(state=new_state, last_triggered_at=datetime.datetime.now())
Copy link
Member

Choose a reason for hiding this comment

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

I think that if you use the utcnow function from redash.utils module here and on line 246, you won't need to replace the timezone.

Copy link
Member

Choose a reason for hiding this comment

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

@nielsdraaisma can you make this change?

@arikfr arikfr changed the title Added alert rearm setting which allows periodic resending of alert messages. Feature: alert rearm setting which allows periodic resending of alert messages. Nov 3, 2015
@blu35ky
Copy link

blu35ky commented Dec 1, 2015

@arikfr thanks for the PR, sorry I just noticed it. @nielsdraaisma is busy with his new role.

…chat

Feature: send alert notifications to HipChat or web hook
@arikfr
Copy link
Member

arikfr commented Dec 1, 2015

@blu35ky thanks! do you mind also rebasing it w/ latest master, so I can easily merge it?

@blu35ky
Copy link

blu35ky commented Dec 1, 2015

@arikfr np, done. 👍

arikfr added a commit that referenced this pull request Dec 10, 2015
Feature: alert rearm setting which allows periodic resending of alert messages.
@arikfr arikfr merged commit 63f0a8c into getredash:master Dec 10, 2015
@arikfr
Copy link
Member

arikfr commented Dec 10, 2015

Merged now. Apologies that it took so long.

@arikfr arikfr added this to the v0.9 milestone Dec 10, 2015
dairyo pushed a commit to KiiCorp/redash that referenced this pull request Mar 1, 2019
Feature: alert rearm setting which allows periodic resending of alert messages.
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.

None yet

3 participants