} else if (check.getState() == AlertType.OK) {
Resolution resolution = new Resolution.Builder(incidentKey(check))
.withDescription("Check '" + check.getName() + "' has been resolved.")
.addDetails(details(check, alerts))
.build();
result = pagerDuty.notify(resolution);
} else {
LOGGER.warn("Did not send notification to PagerDuty for check in state: {}", check.getState());
}
} catch (Exception e) {
throw new NotificationFailedException("Failed to send notification to PagerDuty", e);