Skip to content

Conversation

@98001yash
Copy link

Summary
When closing alerts in OpsGenie, the API requires the identifierType=alias parameter if the alias is used instead of the alert ID.
This change updates the buildUrl method in OpsGenieNotifier to append ?identifierType=alias when constructing the close alert URL.

Changes

  • Updated buildUrl to ensure identifierType=alias is included in the close alert request.
  • No other logic or behavior is modified.

Why
Without the identifierType parameter, closing alerts via the OpsGenie API would fail with an error, since the alias is used to identify the alert.

References

@98001yash 98001yash requested a review from a team as a code owner August 10, 2025 06:14
@hzpz
Copy link
Contributor

hzpz commented Aug 10, 2025

Hey @98001yash, any help is much appreciated, but there already it a pull request addressing this issue (see #4557).

@hzpz hzpz closed this Aug 10, 2025
@98001yash 98001yash deleted the fix/opsgenie-identifier-type branch August 12, 2025 13:06
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