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

Updated to use the new Pagerduty API library, which allows resolving incidents. #353

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

joshuamckenty
Copy link

No description provided.

Copy link
Member

@satterly satterly left a comment

Choose a reason for hiding this comment

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

Thanks for the PR I have a few comments.

LOG.warning('PagerDuty notice sent')

def status_change(self, alert, status, text, **kwargs):
LOG.warn('PagerDuty status change ignored.')
Copy link
Member

Choose a reason for hiding this comment

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

Why would you ignore status changes?

def post_receive(self, alert):
def post_receive(self, alert, **kwargs):

LOG.warning('Sending PagerDuty notice')
Copy link
Member

Choose a reason for hiding this comment

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

Why does this need to be a "warning" ?

except Exception as e:
raise RuntimeError("PagerDuty connection error: %s" % e)

LOG.debug('PagerDuty response: %s - %s', r.status_code, r.text)
LOG.warning('PagerDuty notice sent')
Copy link
Member

Choose a reason for hiding this comment

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

Probably shouldn't be a warning. "info" or "debug"?

@satterly satterly added the needs work This pull request needs work label Oct 18, 2021
legovaer added a commit to legovaer/alerta-contrib that referenced this pull request Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs work This pull request needs work
Projects
Status: 🪵 Backlog
Development

Successfully merging this pull request may close these issues.

None yet

2 participants