Skip to content

Commit c750248

Browse files
AE-RobertMcDonnellSteKoe
authored andcommitted
Added identifierType=alias to the OpsGenie close URL that is built in OpsGenieNotifier.buildUrl. This identifierType is required to successfully close an open alert when using an alias as the identifier.
1 parent 56ef640 commit c750248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/OpsGenieNotifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected Mono<Void> doNotify(InstanceEvent event, Instance instance) {
118118
protected String buildUrl(InstanceEvent event, Instance instance) {
119119
if ((event instanceof InstanceStatusChangedEvent statusChangedEvent)
120120
&& (StatusInfo.STATUS_UP.equals(statusChangedEvent.getStatusInfo().getStatus()))) {
121-
return String.format("%s/%s/close", url, generateAlias(instance));
121+
return String.format("%s/%s/close?identifierType=alias", url, generateAlias(instance));
122122
}
123123
return url.toString();
124124
}

0 commit comments

Comments
 (0)