-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 Plugin support schedules/teams ID and Name #44381
Conversation
Signed-off-by: Edward Dowling <edward.dowling@goteleport.com>
Signed-off-by: Edward Dowling <edward.dowling@goteleport.com>
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
@EdwardDowling See the table below for backport results.
|
* Opsgenie Plugin support schedules/teams ID and Name Signed-off-by: Edward Dowling <edward.dowling@goteleport.com> * Replace regex by UUID parser Signed-off-by: Edward Dowling <edward.dowling@goteleport.com> --------- Signed-off-by: Edward Dowling <edward.dowling@goteleport.com> Co-authored-by: Carlos Castro <carlos.castro@jumo.world>
Buddy PR for #44342
In a previous PR (#43535), we identified that the Opsgenie alert payload was using the schedule ID, while the documentation refers to the schedule name in the annotations.
To support backwards compatibility, both
ID
andName
were added to the payload. However, the Opsgenie API requires only one of these fields, not both.All Opsgenie IDs (schedules, teams, requests, etc.) are UUIDs. Therefore, in this PR, I propose checking if the schedule/team in the annotation is a UUID. If it is, we will include the
ID
in the payload; otherwise, we will include theName
.Example:
Results in following payload