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

[Opsgenie] Added possibility to specify source and entity attrs #315

Merged
merged 4 commits into from
Jul 1, 2021

Conversation

konstantin-kornienko
Copy link
Contributor

  • Opsgenie alert's source attribute now can be specified in rule.
    Previously it was hardcoded to ElastAlert, now it just the default. So this PR will not break previous behavior.
  • Opsgenie alert's entity attribute now can be specified in rule.
  • priority attribute can now be templated from the first match.

Konstantin Kornienko added 2 commits June 30, 2021 13:01
Priority attr can now be templated from first match
@konstantin-kornienko konstantin-kornienko changed the title [Opsgenie] Added possibility to specify source and entity attrs. [Opsgenie] Added possibility to specify source and entity attrs Jun 30, 2021
Copy link
Owner

@jertel jertel left a comment

Choose a reason for hiding this comment

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

Thank you!

@jertel jertel merged commit 96c0066 into jertel:master Jul 1, 2021
priority = self.priority
if priority:
priority = priority.format(**matches[0])
if priority and priority not in ('P1', 'P2', 'P3', 'P4', 'P5'):
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Could this block be indented as well? The second priority check won't be successful if the first one fails

jertel added a commit that referenced this pull request Jul 4, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants